Invalid Handle Error

Is anyone who is current on NCF updates still seeing the Invalid Handle error or is having any other difficulties when opening either the Log Viewer or Auto Update?
You're current if your aupdhist.log file has an entry for "New package dated 02.26.2004 [ID=20040226_1142] "
We've closed this defect as it seemed to get fixed with the changes we made in Update 1 that allow you to limit the log file size. Was kind of a "free" bug fix, if you will. Got resolved accidentally. ;) But I just wanted to poll the room and make sure everyone's ok on this issue.
Thanks,
Scott

Scott,
It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
- Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
- You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/

Similar Messages

  • Why do I get an invalid handle error when debugging, on a call to ncReset?

    I am working with the example program obj2obj.c
    I have a PCI-CAN/2 card installed.
    I must call ncReset for *both* ports (CAN0 and CAN1), prior to any other commands or I will get a driver error (NC_ERR_DRIVER, Bxxx0002).
    This happens even if the program terminates properly, closing all handles, and I then remove the ncReset commands.
    Fine, I can live with the ncResets.
    However, if I then try and debug the program using Microsoft Visual C++, it immediately chokes on the second call to ncReset( "CAN1", 0 ) and complains about an invalid handle.
    If I add a status check to both of the ncResets and run the program from the DOS command line, I don't get any errors printed out
    so the calls are working fine just running the program.
    The driver updates listed do not appear to address this problem (1.4.1 uses LabView which I do not have and 1.4.2 is for Windows 2000)
    Why are the ncResets required in the first place?
    And why can't I single step through the second call to ncReset?
    Thanks in advance for your help.
    System details:
    PC running Windows NT 4.00.1381
    PCI-CAN/2 w/driver 1.4
    Microsoft Visual C++ 6.0 Professional

    bsat, thank you for helping out!
    I had tried using only one ncReset previously and was experiencing driver errors. I removed the second ncReset as you suggested and now it seems to work with only one. I cannot get it to fail like it was doing.
    However, at least one ncReset must be used or I get the following error:
    ERROR ncConfig CAN1: Driver error (qual=000b000)
    Press any key to continue
    I get this error even when the program terminates normally. For example:
    1) Build obj2obj with the ncReset command.
    2) Execute and allow to terminate normally.
    3) Edit obj2obj and remove ncReset command.
    4) Execute and the error message is displayed.
    Amazingly, I was also able to single step through most of the program this morning. I got the first three messages (of 10 total) before ge
    tting the error:
    Microsoft Visual C++
    First-chance exception in cctool.exe (NTDLL.DLL): 0xC0000008: Invalid Handle
    It seems to be more random than first appeared and perhaps more related to MSVC than to the NI-CAN card. Any insight?
    Also, having to include an ncReset is undesireable since I'd like to develop a CAN driver that could be called from multiple threads. I'd be very interested in your opinion on why I'm having trouble getting it to work without one.
    Thanks again for your help, it is greatly appreciated!

  • Invalid Handle Error for WSRP Struts Portlet

    Hi,
    I am in process of modifying our existing struts application so that I can access it as remote portlet. I followed the Integrating Existing Struts Application guide and created a portlet. When I tried to use this portlet, I started getting following error. Does anyone know where I might be going wrong? Thanks.
    Fault: {urn:oasis:names:tc:wsrp:v1:types}InvalidHandle
    The given portletHandle [portlet_1] is invalid or none of the supported portlet containers can handle this portlet.
    2005-04-22T16:32:08.282+01:00com.bea.wsrp.faults.InvalidHandleException: The given portletHandle [portlet_1] is invalid or none of the supported portlet containers can handle this portlet. at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doGetMarkup(MarkupServiceHandler.java:407) at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doService(MarkupServiceHandler.java:306) at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doService(MarkupServiceHandler.java:282) at com.bea.wsrp.producer.handlers.AbstractServiceHandler.service(AbstractServiceHandler.java:78) at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.service(MarkupServiceHandler.java:262) at com.bea.wsrp.producer.WsrpServer.processServiceRequest(WsrpServer.java:299) at com.bea.wsrp.producer.WsrpServer.service(WsrpServer.java:198) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at com.bea.wsrp.producer.adapter.pageflow.WsrpPageflowFilter.doFilter(WsrpPageflowFilter.java:73) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    Hi Shanta,
    I have started writing a struts 1.1 based module and expose it as a wsrp portlet. Can you pls help me where and how to start on this?
    Thanks,
    Ravi

  • Shared 64-bit Adobe PDF Converter, "Invalid Handle" error. (Print request from 32-bit computer)

    I have at my disposal a Windows 7, 64-bit, Laptop and a Windows Server 2008, 32-bit.
    My Adobe CC suite is installed on the laptop, but the server needs to stay as bare-bones as possible.
    There are embedded help files in some of the software (on the server) that I wanted to convert to a PDF rather than print out. As with many printers, I figured I could share the PDF driver installed by the Acrobat Pro software, and then simply send the spool over from the server. I initially ran into missing driver issues, so I googled a solution where there are additional drivers found in the Program Files (x86). However, there were several cryptically named "*.inf" files that all pointed to some 6 driver certificates that all had the same name. Talk about directions being useless, even if they were right. In any case, the first driver installation came with promising results but no final file. I figured I could just update the shared, 32-bit, driver, but go figure that the option to refresh the secondary driver was nowhere to be found. The shared dialogue recognized that I clearly installed one, but a manual update or removal option was not provided.
    I am at a point where I would like Adobe to just show me some love, and throw me the 32-bit Adobe PDF Converter installer that would have been embedded in earlier versions of Adobe Acrobat. If anybody could lead me in the right direction to solving my problem, it would be greatly appreciated.

    Acrobat is not licensed for use on the server. If you can print to postscript on the server, you can take the postscript files and distill them on your version of Distiller.

  • Invalid handel error?Urgent

    Hi,
    I am frequently getting invalid handle error in my
    jsp response from the server.I had created the connection pool which I use in my jsp pages.The
    pool has the application scope.In certain pages
    I use multiple statements,after processing the logic
    then I am closing the statements and returning the
    connection object back to the pool.
    The logic goes like this
    1)Get available connection object from the pool.
    Connection ocon=getfromPool();
    2) use the ocon to get the statement objects
    and use them.
    3)finally I am returning the ocon back to the pool
    prior to which i close all the statements.
    4) over all code goes like this
    try
    open connection
    generate statement object
    logic
    close statement
    catch(Exception e)
    finally
    close all the open statement
    return the connection object back to pool
    Is the above flow fine?If so then why do I get the
    sql error invalid error in my jsp page?
    regards vicky

    Your close of the Statement in the 'finally' block will be redundant when you have reached your close in the 'try' block. Do this only in the 'finally' block.

  • Invalid Handle Exception!

    Background: I have a SQL database created and maintained via MS Access 2003. I use JDBC to connect and interact with this database. So far my program has been able to do everything from querying a table to inserting new rows to deleting others, but has had no luck with updating rows either through the execute()/executeUpdate() methods or the ResulSet updateInt()/UpdateString() methods.
    So currently I'm recieving an Invalid Handle error during runtime for this program. I ran a stack trace and the line that gave the error was where I was creating a ResultSet from an executeQuery(). I'm unsure what Invalid Handle means, and am further baffled at this error since I have another method with the EXACT SAME line for the query and it receives no errors. To put it into better veiw I have my main class/main method, and from there I call a few different methods from this other class I have. I call this one method, works fine; I call this other method a little while afterwards and it has the exact same few lines at the beginning as the previously mentioned method. Suddenly I get this Invalid Handle error. Like I said, the error said it's happening when I'm doing ResultSet rs = stmnt.executeQuery("SELECT columns FROM table WHERE column LIKE 'string'");
    Please help! Thank you!

    i cant ever open adobe or other pdf files im not new to computers but i am far from profficient. when i ask adobe and others about invalid handles, broken ? whatever and dont have permission etc. all i get is silence or blank looks....i think adobe suks very hard and all the rest of this stuff is just terrible and i want to change to linux....i sure wish i knew more but when i ask a lot of people who claim to be knowledgable i find that all they can do is type well and open and parse documents where i know much more about most hardware and software......anyone out there able to help a dyslexic non typer???

  • OCILobwrite gives invalid hanlde error

    When I try to use ocilobwrite it gives invalid handle error , i.e rc =-2
    rc = OCILobWrite(dbsess->svcHandle() , pErrHandle, pLob, &amtp, 1, (char*) TSString,
    fileLen, OCI_ONE_PIECE, 0,
    (sb4 (*)(dvoid *, dvoid *, ub4 *, ub1 *)) 0,
    (ub2) 0, SQLCS_IMPLICIT );
    For the same seesion ocilobread ,OCIDateFrom text etc. seem to work. I am using a 10g client with a 11g database.
    Can, anyone give me any idea why is this happening?

    ahh , I see, thank you
    EDIT:
    Wait, wtf, I just went to modify it, and found I already have that line with the --no-check-certificate option already set for https
    EDIT-AGAIN:
    OK I got it, makepkg was using the regular http, and wget was redirected to https afterward but still using the regular http options from makepkg. Simply had to change http to https in pkgbuild
    Last edited by tjwoosta (2011-02-18 20:26:37)

  • ORABPEL-05002 - Message handle error - Session has timed out or was invalid

    In our production environment we are facing this issue.
    We are trying to find the root cause to fix the issue.
    My Understanding:*
    In the below error message,
    we are able to see the Session has timed out or invalidated.
    Also we are able to see the Non-fatal connection error. I believe that when the MDB trying to process the dispatched message, it will invoke the message from invoke_message table of dehydration store. At this point of time it gets non-fatal connection error so we are gettign this error.
    I need to know the difference between fatal and non-fatal connection error. Is my understanding correct or not ?
    ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message *"com.collaxa.cube.engine.dispatch.message.system.RemoveMessage"; the exception is: Session has timed out or was invalidated*
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:207)
    at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
    at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
    at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
    at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
    at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
    at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
    at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
    at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
    at java.lang.Thread.run(Thread.java:619)
    <2010-08-11 23:05:10,131> <ERROR> <WorkExecutorWorkerThread-129> <engine.dispatch> <DispatchHelper::handleMessage> failed to handle message
    java.rmi.NoSuchObjectException: Session has timed out or was invalidated
    at com.evermind.server.ejb.StatefulSessionEJBObject.throwPassivisationException(StatefulSessionEJBObject.java:335)
    at com.evermind.server.ejb.StatefulSessionEJBObject.remove_X(StatefulSessionEJBObject.java:174)
    at com.evermind.server.ejb.StatefulSessionEJBObject.remove_X(StatefulSessionEJBObject.java:159)
    at com.evermind.server.ejb.LocalStatefulSessionEJBObject.remove(LocalStatefulSessionEJBObject.java:25)
    at com.collaxa.cube.engine.util.EngineBeanCache.releaseMessageBean(EngineBeanCache.java:293)
    at com.collaxa.cube.engine.dispatch.message.system.RemoveMessageHandler.handle(RemoveMessageHandler.java:36)
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:142)
    at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
    at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
    at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
    at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
    at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
    at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
    at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
    at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
    at java.lang.Thread.run(Thread.java:619)
    <2010-08-11 23:05:10,132> <ERROR> <WorkExecutorWorkerThread-129> <engine.dispatch> *<DispatchHelper::handleMessage> Not fatal connection error ... not retrying: class com.oracle.bpel.client.ServerException: Session has timed out or was invalidated*
    <2010-08-11 23:05:10,132> <ERROR> <WorkExecutorWorkerThread-129> <engine.dispatch> *<BaseScheduledWorker::process> Failed to handle dispatch message ... exception ORABPEL-05002*
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.system.RemoveMessage"; the exception is: Session has timed out or was invalidated
    -----

    I'm having the same problem. I posted to VSM sample and Pooled ApplicationModule Maximum Inactive Age
    which seems to be a similar situation.
    Does anyone have any information on where this time out parameter is set on either the app module or OAS and how to handle this error correctly?
    Thanks,
    Brian

  • XML Publisher Report ends with Warning -- Invalid Character Error in XML

    Hi,
    I have migrated the standard report 'Invoice Print Selected Invoices' from Reports 6i to XML Publisher. It has to print a Euro(€) in the report. It does not even generate the XML File fully. It gives the below error in the XML File. When i remove the special character, it works fine.
    Please let me know the settings to ensure that XML file also accepts the special characters. How do i get the Euro symbol printed in XML File with out giving Invalid Character Error?
    ===========================================================The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again
    later.
    An invalid character was found in text content. Error processing resource 'http://dfw1svdevapp03.ora.rackspace.com:8040/OA_...
    <C_INV_CURRENCY_SYMBOL>
    N class="m">>
    <LINE_UOM />
    <LINE_UNIT_SELLING_PRICE />
    ===========================================================
    The XML File even does not show which character set it uses. The output file starts with:
    ===========================================================
    <?xml version="1.0" ?>
    - <!-- Generated by Oracle Reports version 6.0.8.25.0
    -->
    ===========================================================

    Hi Tim,
    Thanks for your adhoc response.
    I have gone thru the Document 222663.1 and it says that the Developer 6.0.8.23 is required to handle this problem. We are using almost the updated Developer version i.e., Developer 6.0.8.25. So, this should be handled automatically, but it still errors out. Please suggest.
    Thanks,
    Kesava

  • Invalid Handle SQL Exception

    Everytime I call this method from my JSP page, I get the error Invalid Handle. I changed my query statement at the most bottom part to a hard-coded update statement (this one update wirtech.orders_temp set BOOKCODE ='12345678', QUANTITY = '150', SUPPLIER = 'rain', STAT = 'pending', FULFILLED = '0', CONSOLIDATED = '1', CONSOLIDATEID ='1' where POID = '10003) but i still get that error. I traced my program and found out the error comes out at After System.out.println("hereba2"+query);. That's the line before stmt.executeupdate(query); at the bottom part of the consolidatePOS method.
    Please help, we've been stuck here for one week already.
         public void consolidatePOS(Vector v, String code)
              try{
                   String poidfinal = "";
                   int y = 0;
                   int qty = 0;
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   con = DriverManager.getConnection(url, username, password);
                stmt = con.createStatement();
                System.out.println("before big while."+v.size());
                   while(y<v.size())
                query = "select QUANTITY from wirtech.orders_temp where POID = '"+v.elementAt(y)+"'";
                System.out.println("first stmt.execute");
                rs=stmt.executeQuery(query);
                System.out.println("inside medium while.");
                while (rs.next())
                     System.out.println("inside small while.");
                     qty = qty + rs.getInt("QUANTITY");
                if(y == v.size()-1)
                     poidfinal = ""+v.elementAt(y);
                y++;
                rs.close();
                System.out.println("after big while.");
                int ea = getConsolidateID();
                System.out.println("ea"+ea);
                System.out.println("here ba/!?");
                query = "update wirtech.orders_temp set BOOKCODE ='12345678', QUANTITY = '150', SUPPLIER = 'rain', STAT = 'pending', FULFILLED = '0', CONSOLIDATED = '1', CONSOLIDATEID ='1' where POID = '10003'";
                System.out.println("here ba2"+query);
                stmt.executeUpdate(query);
                System.out.println("after big while. LASTT");
                stmt.close(); con.close();
                } catch(Exception ex) {
                     System.out.println("error in consolidatePOS()" + ex);     
              public int getConsolidateID()
              {int x =0;
                   try {
                Class.forName(driver);
                con = DriverManager.getConnection(url, username, password);
                stmt = con.createStatement();
                query = "SELECT COUNT(DISTINCT CONSOLIDATEID) AS count FROM wirtech.orders_temp";
                rs = stmt.executeQuery(query);
                while (rs.next()) {
                    x = rs.getInt("count");
                rs.close();
                stmt.close();
                con.close();
            } catch (Exception e) {
                System.out.println("getTransactionCount has an Exception: " + e);
            }

    This is a complete guess! ... perhaps the
    rs.close();also closes the Statement (or invalidates it) which you use later to execute the update. The API does not seem to indicate this though:
    void close()
               throws SQLException
        Releases this ResultSet object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.
        Note: A ResultSet object is automatically closed by the Statement object that generated it when that Statement object is closed, re-executed, or is used to retrieve the next result from a sequence of multiple results. A ResultSet object is also automatically closed when it is garbage collected. But perhaps it may still be worthwhile seeing if removing that close will fix the problem.

  • Invalid Handle Exception grr.

    I get this every time i try to update my database. not when i read from it, that goes error free but writing to it, ug. Here's whats goin on:
    the setup for the table is:
    Verb Type
    String Integer
    Con is the Connection that is always successful when used to read data
    the Method FindData returns "Yes" if the verb exists in the table and "No" if it doesn't and yes i have my reasons for making it return a string instead of a boolean
    Command is a Statement: Statement Command = Con.createStatement();
    Update is a String
    i is an int
    if (FindData(Con, Verb).compareTo("No") == 0)
         Update = "insert into [Sheet1$] (Verb, Type) values('"+Verb+"', "+Integer.parseInt(Data)+")";
         System.out.println("Update: "+Update);
         i = Command.executeUpdate(Update);
         if (i == 1) System.out.println("Success!!!"); else System.out.println("Failed");
         Command.close();
         Con.close();
         System.out.println("EXISTS:: "+FindData(Con, Verb));                    
    here's what i get as output:
    ----jGRASP exec: java UpdateData
    Update: insert into [Sheet1$] (Verb, Type) values('Mentir', 1)
    Invalid handle
    ----jGRASP: operation complete.
    Which means it throws an exception at the i = Command.executeUpdate(Update); line and doesn't go further than that.
    Does anyone know what this function even means?
    Does anyone know how to fix this?
    if you need more information pleas let me know
    Thanks, Lateralus

    yep it's an excel driver that allows you to connect to excel databases. here's my getConnection function:
    public static Connection getConnection(String FilePath, String FileName)
         String Driver = "";
         String Url = "";
         String Username = "";
         String Password = "";
         Connection Con = null;
         try
              Driver = "sun.jdbc.odbc.JdbcOdbcDriver";
              Url = "jdbc:odbc:Excel Files;DBQ=";
              Url += FilePath+"\\"+FileName;
              Username = "";
              Password = "";
              Class.forName(Driver); // load JDBC-ODBC driver
              return DriverManager.getConnection(Url, Username, Password);
         catch (Exception e) {System.out.println("getConnection:  "+e.getMessage());}
         return(Con);
    }

  • Invalid Handle Exception-What is the reason?

    I face with "Invalid Handle exception" (SQLException) while using the following code.
    Could anybody tell me the possible reasons/Situation the error rise?
    stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery(SQLStmt);
         if(rs!=null){
    ResultSetMetaData rsm = rs.getMetaData();
         int totalcols = rsm.getColumnCount();
         Vector temp;
         while (rs.next()) {
         Vector temp = new Vector();
         for (int i = 1; i <= totalcols; i++) {
              String value = rs.getString(i);
              if (value == null) {
              value = "";
         temp.addElement(value);
         }//for loop ends here
         valueVector.addElement(temp);
         rs.close();
         stmt.close();     
    Thank you all

    Vector temp;
    while (rs.next()) {
    Vector temp = new Vector();Are you sure that this is the code you are running? The reason I ask is that I'm pretty sure that it won't compile, at least under JDK1.4. You should get a compile error something like "temp is already defined".
    If thats not the problem you need to find out on which line the error actually occurs. You can get this from the exception by calling the printStackTrace() method.
    Col

  • About a exception: Invalid request., error key: RFC_ERROR_SYSTEM_FAILURE

    Hello:
       <b>I am using an adaptive RFC model inside a Web Dynpro Application.i encountered  a exception:</b>
       com.sap.tc.webdynpro.
    modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Invalid request., error key: RFC_ERROR_SYSTEM_FAILURE
            at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:101)
            at com.sap.shineway.InputField.exec(InputField.java:169)
            at com.sap.shineway.wdp.InternalInputField.exec(InternalInputField.java:291)
            at com.sap.shineway.ShineWay_InputView.onActionGoCreate(ShineWay_InputView.java:192)
            at com.sap.shineway.wdp.InternalShineWay_InputView.wdInvokeEventHandler(InternalShineWay_InputView.java:248)
            at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
            at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
            at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
            at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
            at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
            at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
            at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
            at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
            at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
            at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessag
    eListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(AccessController.java:214)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.aii.proxy.framework.core.BaseProxyException: Invalid request., error key: RFC_ERROR_SYSTEM_FAILURE
    what it means??
    thank you
                            yours
                                           zunxian.cheng

    Zunxian,
    The error message "Invalid request., error key: RFC_ERROR_SYSTEM_FAILURE" makes it seem like there's something wrong with the request. You generally get an error message of the group  RFC_ERROR_SYSTEM_FAILURE when there's something wrong with the backend system, or when you send a request that makes it dump.
    What Bapi/RFM are you trying to call?
    have a look at <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/f6/daea401675752ae10000000a155106/content.htm">this explaination of different JCO Exceptions</a> for more information.
    Regards
    Mattias

  • Invalid Number Error Please help Urgent

    Hi,
    I am trying to create a report in discoverer where in I get an invalid number error for the statement
    ,DECODE(final.TYP,'Sales',to_char(final.future_supplpy),'B/O','B/O') sale_type.
    We have the requirement that when TYP is Sales i need to display future supply and when the TYP is B/O i need to display B/O.
    The query runs perfectly fine in TOAD but in Discoverer Desktop when i run the report i get an error message
    invalid number.
    Please help its urgent
    Thanks
    Ashwini

    Hi Ashwani
    First of all, your statement appears to not be handling anything other than Sales or B/O. Is that deliberate? If not, you need a default, catch all value at the end like this:
    DECODE(final.TYP,'Sales',NVL(final.future_supply,to_char(final.future_supply),'B/O','B/O', default_value) sale_type
    You also might want to make sure there aren't any NULL values in future_supply or in TYP and if there are you might want to consider using an NVL for these, like this:
    DECODE(final.TYP,'Sales',NVL(to_char(final.future_supply,NULL),'B/O','B/O', default_value) sale_type
    Also, when using DECODE you don't always need to use TO_CHAR as the DECODE conversion to a string typically takes place automatically. CASE is different as it insists that all results are of the same data type.
    Hope this helps
    Best wishes
    Michael

  • Invalid handle to path? Help!

    I dowloaded a program LOGOS and it keeps on crashing. Their tech people said it came down to this problem. Can anyone help me with this 'path'? She said it may be something with LION and not being downloaded properly?
    Error detail: IOException: Invalid handle to path "/var/folders/15/bq7_xhf94zv6z1byk1rvjmf00000gn/T/tmp7bcd7658.tmp"

    Run through this list of fixes, I suspect by #8 all will be well.
    Step by Step to fix your Mac

Maybe you are looking for