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

Similar Messages

  • What,s the reason to stop iphone 5?? Is there any problem with that phone?? Because still 4s is in market but iphone 5 is stopped.... What,s wrong with apple??

    Why apple stoped iphone 5? What's the reason?? Is there any problem with that phone... Because iphone 4s is still in market.. But they stopped iphone 5.. What's wrong with iphone 5????

    It was replaced by the iPhone 5C, which is essentially the same phone except for the case, better LTE converage and a larger battery.

  • How can I fix my mac mini g4 1.5ghz which gets the must reboot message?  what is the reason?

    How can I fix my mac mini g4 1.5ghz with 2gig ram which gets the must reboot message randomlly?  what is the reason?  Hard disk has no errors.

    Based on your description, you are having a kernel panic.
    Can you post some of your crash logs? Might be a clue. See Mac OS X: How to log a kernel panic http://support.apple.com/kb/HT2546
    Understanding crash logs isn’t easy and it’s hard (sometimes impossible) to decipher the cause of the problem. Take a look at Apple’s Crash Reporter document at http://developer.apple.com/technotes/tn2004/tn2123.html Also look at Tutorial: An introduction to reading Mac OS X crash reports
    http://www.macfixit.com/article.php?story=20060309075929717
    Kernel panics are usually caused by a hardware problem – frequently RAM, a USB device or a Firewire device. What external devices do you have connected? When trying to troubleshoot problems, disconnect all external devices except your monitor, keyboard and mouse. Do you experience the same problems?
    To eliminate RAM being the problem, Look at this link: Testing RAM @ http://guides.macrumors.com/Testing_RAM Then download & use Memtest & Ramber.
    Do you have an Apple Hardware Test disc (the AHT is on the Install/Restore DVD that came with your Mac)? Running the Apple Hardware Test in Loop Mode is an excellent troubleshooting step for finding intermittent hardware problems. It is especially useful when troubleshooting intermittent kernel panics. If Loop Mode is supported by the version of the Apple Hardware Test you are using, you run the Extended Test in Loop Mode by pressing Control-L before starting the test. Looping On should appear in the right window. Then click the Extended Test button.The test will run continuously until a problem is found. If a problem is found, the test will cease to loop, indicating the problem it found. If the test fails, be sure to write down the exact message associated with the failure.In some cases, RAM problems did not show up until nearly 40 loops, so give it a good run.
    May be a solution on one of these links.
    http://docs.info.apple.com/article.html?artnum=106227 What's a "kernel panic"? (Mac OS X)
    http://www.macmaps.com/kernelpanic.html Mac OS X Kernel Panic FAQ
    http://www.index-site.com/kernelpanic.html Mac OS X Kernel Panic FAQ
    http://www.thexlab.com/faqs/kernelpanics.html Resolving Kernel Panics
    http://www.macfixit.com/article.php?story=20060911080447777 Avoiding and eliminating Kernel panics
    http://macosg.com/group/viewtopic.php?t=800 12-Step Program to Isolate Freezes and/or Kernel Panics
     Cheers, Tom

  • Grafhic not work...  what is the reason ?

    hello,
    In the foolowing code I reproduced an "anomalous" behavior that I get when I use graphic functions.
    In the JPanel "PanelToDiplayGraphic", I simply write some words....
    This usually works;
    but if I (before to create the panel) read some data from a database, then the words are not displayed...._
    (I need to get informations from the database to use in the grafhic functions).
    I am not able to understand the reason why this can happen .
    Same one is able to explain me what is the reason ???
    // To use this program requires to have a valid connection to a database.
    // Here the connection comes from MakeConnectionToDataBaseMedident class and his the getConnection() function.
    // Of course, the String sqlStr in the accessToDataBase() function have to be properly changed too...
    package prove.volanti.storePicImages;
    import databaseManagement.MakeConnectionToDataBaseMedident;
    import java.awt.BorderLayout;
    import java.awt.Graphics;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class TestForBug extends JFrame {
        public TestForBug() { // constructor
            setTitle("title");
            setVisible(true);
            setSize(200, 150);
            this.setDefaultCloseOperation(EXIT_ON_CLOSE);
            // ======== part of program to chang to apply the test ...
            accessToDataBase(); // To test the anaomalus behavior put this row in comment
            // ======== part of program to chang to apply the test ...
            PanelToDiplayGraphic panelToDiplayGraphic = new PanelToDiplayGraphic();
            setLayout(new BorderLayout());
            this.add(panelToDiplayGraphic, BorderLayout.CENTER);
        }  // constructor
         * Simple function to access to tatabase
        private void accessToDataBase() {
            MakeConnectionToDataBaseMedident makeConnectionToDataBaseMedident = new MakeConnectionToDataBaseMedident();
            Connection connection = makeConnectionToDataBaseMedident.getConnection();
            Statement statement = null;
            ResultSet resultSet = null;
            String sqlStr = "Select * from skdPzPicsDetails   ";
            boolean validState = true;
            try {
                statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
                resultSet = statement.executeQuery(sqlStr);
                validState = resultSet.last();
                int rowsNmbr = resultSet.getRow();
                System.out.println("Nmbr. rows = " + rowsNmbr);
                validState = resultSet.first();
                System.out.println("validState = " + validState);
                String tit = resultSet.getString("picTitle");
                System.out.println("Title =  " + tit);
            } catch (SQLException e) {
                System.out.println("Errrore = " + e.getMessage());
                e.printStackTrace();
        }  // accessToDataBase()
        static public void main(String[] args) {
            TestForBug xxxx =
                    new TestForBug();
        } // main()
         * Panel to display graphic
        class PanelToDiplayGraphic extends JPanel {
            @Override
            public void paintComponent(Graphics g) {
              g.drawString("TEST for use of the Graphic " , 10, 20);
    //            g.drawImage(image, 0, 0, this.WIDTH, this.HEIGHT, null);
        }// DiplayGraphicPanel
    } // TestForBugthank you regards
    tonyMrsangelo.

    thank you Encefophalopathic...
    The window seem to be normal (not froze), but I understand now that the cause of the anomaly could
    came from the parallelism of the threads ....
    I'll look in this way...
    Thank you
    By the course... I remember you gave me an advice some days ago ..
    you said :
    Finally, don't add a mouse listener to a JButton when an action listener,
    a class specifically built to capture button presses, is available.
    There are exceptions to this rule, but I don't see any here. I didn't answer then, but I should like know where I could learn more about how and where to use the listener class...
    I see this tip is more complex than it seemed to be...
    Now, for example, I need to catch event when an element in a checkBox is selected..
    I use event listner for this purpouse, but in this way I get the attivation of the event also
    when the comboBox component is created...
    How I sayd, I only should like to have a good link to read more about..
    thank you again
    regards
    tonyMrsangelo

  • When I try to install CS6 Design and Web Premium from a disk I get this message "We are unable to validate this serial number..." What is the reason for this?

    I purchased a disk copy of CS6 Design and Web Premium from a reputable seller last week and when I try to install it with the serial number I got it says "We are unable to validate this serial number for CS6 Design and Web Premium. Please contact Customer Support." What is the reason for this?
    Is the serial number invalid?

    Hi Ned,
    Thanks for the suggestion. I eventually got in touch with Adobe Technical Support and it turned out that my Adobe Application Manager was not the latest version. They downloaded the latest version and installed it and that seemed to solve the problem. I was able to install my CS6 Creative Suite and validate the serial number. All seems to be going well at the moment.

  • Adobe creative cloud product online help not working. Any idea what is the reason ??

    Adobe creative cloud product online help not working. Any idea what is the reason ??
    I have to manually copy pdf file to open help for all suite....

    Please try another browser, if still it is not working, check the internet connectivity http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    In case the issue is still not resolved, do contact Adobe Support.
    Regards
    Rajshree

  • When I turn on my iPad 1it stops the network connection to my windows xp pro computer. Ican fix the network connection by repairing  the windows machine network.  What is the reason thia is happening?windows

    When I turn on my iPad 1it stops the network connection to my windows xp pro computer. Ican fix the network connection by repairing  the windows machine network.  What is the reason this is happening?windows

    Are you using DHCP to allocate IP addresses via your router or Static IP allocation?
    You may have an IP conflict in your network.
    Check on your various network configuration parameters in your iPad, PC and WiFi router.

  • Hi i have a macbook pro and when i changed the hard drive the screen wasn't as it was supposed to be which is it had a green colour on it's side.what can i do to fix it and what is the reason for it?

    hi i have a macbook pro and when i changed the hard drive the screen wasn't as it was supposed to be it was green on it's side and blurred.what can i do to fix it and what is the reason?

    either something got damaged when you installed the hard drive or you need to perform a pram reset (other possibilites could have occured, these are the ones I think)
    PRAM http://support.apple.com/kb/ht1379

  • Illustrator keeps quitting-notice others have had similar issues, not resolved-so what it the reason for "sending a report" to Adobe if nothing can be done with it????? paying for a product that I can't use when I need to use it and no help-come on-someon

    Illustrator keeps quitting…notice others have had similar issues…so what it the reason for "sending a report" to Adobe if nothing can be done with it????? paying for a product that I can't use when I need to use it and no help…come on…someone has to have an answer…HELP Pleeeeease

    <moved from Adobe Creative Cloud to Illustrator>
    reset your preferences -
    acrobat:  http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7feb.w .html
    adobe media encoder: https://forums.adobe.com/thread/1713540
    after effects:  http://helpx.adobe.com/after-effects/using/preferences.html
    dreamweaver:  https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs6-cc.html
    flash:  http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
    illustrator:  http://helpx.adobe.com/illustrator/using/setting-preferences.html
    indesign:  https://forums.adobe.com/thread/526990
    lightroom: https://helpx.adobe.com/lightroom/help/setting-preferences-lightroom.html
    muse (mac): https://forums.adobe.com/thread/1246022?tstart=0
    photoshop:  https://forums.adobe.com/thread/375776
    photoshop elements:  https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html,  http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm
    premiere elements:  https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html
    premiere pro: http://www.mediacollege.com/adobe/premiere/pro/troubleshooter/trash-preferences.html
    if that fails, uninstall, clean (http://www.adobe.com/support/contact/cscleanertool.html) and reinstall

  • Listener and gsd are unknown, what is the reason

    I just install 10g RAC on linux, everything was good. However, I shutdowned the whole system and started it again,
    my listener and gsd are unknown, what is the reason?
    rac1-> crs_stat -t -v
    Name Type R/RA F/FT Target State Host
    ora.devdb.db application 0/1 0/1 ONLINE ONLINE rac1
    ora....b1.inst application 0/5 0/0 ONLINE ONLINE rac1
    ora....b2.inst application 0/5 0/0 ONLINE ONLINE rac2
    ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
    ora....C1.lsnr application 0/5 0/0 ONLINE UNKNOWN rac1
    ora.rac1.gsd application 0/5 0/0 ONLINE UNKNOWN rac1
    ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
    ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
    ora....SM2.asm application 0/5 0/0 ONLINE ONLINE rac2
    ora....C2.lsnr application 0/5 0/0 ONLINE UNKNOWN rac2
    ora.rac2.gsd application 0/5 0/0 ONLINE UNKNOWN rac2
    ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
    ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
    rac1-> srvctl start listener -n rac1
    CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.rac1.LISTENER_RAC1.lsnr' has placement error.
    rac1-> srvctl start listener -n rac2
    CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.rac2.LISTENER_RAC2.lsnr' has placement error.
    rac1-> tail -30 alert_+ASM1.log
    SUCCESS: diskgroup RECOVERYDEST was mounted
    Wed Aug 31 17:24:48 2011
    NOTE: recovering COD for group 2/0xc8787a38 (RECOVERYDEST)
    SUCCESS: completed COD recovery for group 2/0xc8787a38 (RECOVERYDEST)
    Wed Aug 31 17:25:01 2011
    Starting background process ASMB
    ASMB started with pid=17, OS id=6498
    Wed Aug 31 17:28:07 2011
    NOTE: ASMB process exiting due to lack of ASM file activity
    Wed Aug 31 17:29:00 2011
    Reconfiguration started (old inc 1, new inc 2)
    List of nodes:
    0 1
    Global Resource Directory frozen
    Communication channels reestablished
    Master broadcasted resource hash value bitmaps
    Non-local Process blocks cleaned out
    Wed Aug 31 17:29:01 2011
    LMS 0: 0 GCS shadows cancelled, 0 closed
    Set master node info
    Submitted all remote-enqueue requests
    Dwn-cvts replayed, VALBLKs dubious
    All grantable enqueues granted
    Wed Aug 31 17:29:01 2011
    LMS 0: 43 GCS shadows traversed, 0 replayed
    Wed Aug 31 17:29:01 2011
    Submitted all GCS remote-cache requests
    Post SMON to start 1st pass IR
    Fix write in gcs resources
    Reconfiguration complete
    rac1-> tail -30 alert_devdb1.log
    Communication channels reestablished
    Master broadcasted resource hash value bitmaps
    Non-local Process blocks cleaned out
    Wed Aug 31 17:29:35 2011
    LMS 0: 0 GCS shadows cancelled, 0 closed
    Set master node info
    Submitted all remote-enqueue requests
    Dwn-cvts replayed, VALBLKs dubious
    All grantable enqueues granted
    Wed Aug 31 17:29:35 2011
    LMS 0: 3118 GCS shadows traversed, 1733 replayed
    Wed Aug 31 17:29:35 2011
    Submitted all GCS remote-cache requests
    Post SMON to start 1st pass IR
    Fix write in gcs resources
    Reconfiguration complete
    Wed Aug 31 17:31:25 2011
    Shutting down archive processes
    Wed Aug 31 17:31:30 2011
    ARCH shutting down
    ARC2: Archival stopped
    Wed Aug 31 17:40:11 2011
    db_recovery_file_dest_size of 1500 MB is 14.40% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Wed Aug 31 22:00:14 2011
    Thread 1 advanced to log sequence 3
    Current log# 2 seq# 3 mem# 0: +DG1/devdb/onlinelog/group_2.262.760635995
    Current log# 2 seq# 3 mem# 1: +RECOVERYDEST/devdb/onlinelog/group_2.258.760635997                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    add an entry in on both the nodes /etc/sysconfig/network DEFAULT_GATEWAY
    eg:-
    [oracle@rac1 ~]$ cat /etc/sysconfig/network
    NETWORKING=yes
    HOSTNAME=rac1.localdomain
    DEFAULT_GATEWAY=192.168.1.10
    and try to start the service.
    if you would like refer:-http://oracleinstance.blogspot.com/2009/12/crs-0215-could-not-start-resource.html

  • I am writing datas into a FIFO ,i am reading datas from fifo .but when i am writing datas like a a(0),a(1),a(2 like that.when i am reading dating datas a(0)comes to a(3 ) rd place .what is the reason ?

    I am writing datas into a FIFO in FPGA Target side  ,i am reading datas from fifo in windows host side  .but when i am writing datas like a a(0),a(1),a(2 like that.when i am reading dating datas a(0)comes to a(3 ) rd place, a(1) comes to a a(0) .what is the reason ?

    Please use a shorter title in your subject line and not post the entire question in therre.  (See the subject line I created.)   There is also no such word as "datas".  Data is already plural.
    Please read http://stackoverflow.com/help/how-to-ask.  Your question is hard to read because you aren't using proper punctuation and capitalization of your sentences.  It looks like one run-on sentence.
    Beyond that, it is impossible to help you solve our problem with just your question.  Please provide some more information.  Perhaps even attach code we can look at.  Show us what the data you are sending is supposed to look like, and what it actually looks like.

  • I was able to see app updates in my appstore but now there are no updates available suddenly what is the reason?

    I was able to see app updates in my appstore but now suddenly there are no updates available what is the reason?

    Hello, I have the same problem but 2 days ago I switched from an iPhone 4 to a 5 so I don't know if is a general issue or related from my iPhone upgrade.
    I know I have some apps to update but EVERYWHERE (iPad store, iPhone and iMac) it says "no app updates available".
    Please reply me if you got any fix!

  • Does anyone know why or what is the reason when starting a new iMac with Lion a gray bar sometimes appears when loading software?

    Does anyone know why or what is the reason when starting a new iMac with Lion, sometimes a gray bar appears under the Apple that begins to shade to dark as it loads OS?  It does this on occasion.  One time the system loaded was VERY slow and terrible colors.  Pulled the plug, re-started the computer and it did not do this.  As I say, its only on occasion, not every time.  I noticed in the discussion page there were problems listed for 10.6 nothing for Lion.
    Please advise, if possible.

    You should see this 4 option menu.  Click on Disk Utility:
    In Disk Utility, Select FIRST AID and then VERIFY and then REPAIR the disk.
    Ciao.

  • ANY BODY TELL ME WHAT IS THE REASON FOR THIS ERROR

    hi... experts....
        Iam having one screen in my previous module pool program....and now as per my requirement i added on e new field...
    for that...
      1. i declared one variable in top include...
      2. cretaed one more new block with help of box in layout screen..
      3. added some text field and inputput out field...
      4. and in that block i also added one line with test like... following...
    " NOTE: PLEASE ENTER THE ..... VALUE..."   Like this.... just for to give direction...
    so these are  the steps i taken to add new field to my screen... but here i am geting error ... while entering the value in that field and press any push button.... including back in that screen... like....
      "INVAILD FIELD FORMAT (SCREEN ERROR)"
    .... ANY BODY TELL ME WHAT IS THE REASON FOR THIS ERROR... COMMONLY???
    THANK YOU,,,
    NAVEEN..

    hi naveen,
    there can be problem from ur layout side.
    Goto SE51. in Layout editor make sure that the type in screen and in TOP Include is same.
    and if you are using currency field than it can also give error to you.
    if still you any error .
    give me type of variable whcih you defined in TOP and also code.
    give reward if helpfull.

  • Could you tell me what is the reason behind all this?

    Hi
      Zp0001, we have 510 pcs in stock, but for some reasons we can’t commit the orders that we have on the system. When we go into a xyz order 308 for example), the system commits only to February, even if we could do a partial shipment.
    Could you tell me what is the reason behind all this?

    Please look into availability check for that particular material,
    based on the availability check the system determines whether to
    confirm the sales order (if the sales order qty > inshe stock (either
    rejection/partial confirmation - depends upon the availability check),
    followed by determination of delivery date

Maybe you are looking for

  • How do I get AI to stop moving design elements in .0139 in (1 pt) increments?

    For the life of me, I cannot find any way to get Illustrator to NOT align or move every item in every document according to 1.0 pt increments. This has been happening for a week or two now and it is driving me POSITIVELY BATTY!!!!!!!!!!!!!!! I have n

  • MRP for make to order

    Dear All, I have a material with make to order strategy 20. now when sales order comes, MRP plans material on the basis of that order. but client wants that when order comes then they can start production. but in sap, after order mrp plans material t

  • How Can I define itab for VBFA in SD_SALES_DOCUMENT_PREFETCH??

    Hi Experts, Am using FM of SD_SALES_DOCUMENT_PREFETCH to pull the data, like, CALL FUNCTION 'SD_SALES_DOCUMENT_PREFETCH'     EXPORTING       i_sales_view  = wa_view       i_memory_read = 'A'     TABLES       i_vbak_keytab = t_vbeln       fxvbak      

  • MacBook Air slow wifi at times, unreliable internet

    i have the 2012 macbook air.version 10.8.5 it works super good HOWEVER, sometimes my wifi and internet can get really slow. I doubt its my new AC airport extreme because the internet on every other device in my house works perfectly. its just my macb

  • Reuse of Context node field into another

    Hi All, My Reuirement is to add "Product Configuration" field into Crdit Memo item List. Whereas this standard field already avaialble in standard order item list. But "Credit Memo Item list" Context node is different fro "Standard order item list" C