Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2012
    Rep Power

    Default Java Resultset exception

    The process I am following are the following:
    1. I am getting a ResultSet, which is a set of rows to be updated one by one.
    2. So I put them in a while loop while( { ... }
    3. Within the while loop, I need to update a value for which I need to do another search query (I need value from a previous row). This throws an exception.

    Any solutions?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Java Resultset exception

    Moved from Advanced Java. A question asking the meaning of an unspecified Exception isn't advanced anyways.

    What exception? From what code? Recommended reading: How to ask questions the smart way

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: Java Resultset exception

    What exception?
    We're not mind readers...

  4. #4
    Join Date
    Jan 2012
    Rep Power

    Default Re: Java Resultset exception

    Sorry, my mistake. The question was about nested resultsets. I used the same Statement and ResultSet for both which led to this trouble. Also my first time using this site. I tried to remove this post, but could not. If anyone can help me remove the same, would be helpful.

    I hope to be active on this forum though.

    Thanks to all,


Similar Threads

  1. unreported exception java.lang.Exception
    By Marisabel in forum New To Java
    Replies: 6
    Last Post: 05-01-2011, 03:21 AM
  2. Replies: 5
    Last Post: 02-15-2011, 12:39 AM
  3. Replies: 4
    Last Post: 10-25-2010, 07:42 PM
  4. Replies: 2
    Last Post: 06-07-2010, 08:45 AM
  5. Exception : ResultSet is closed
    By nanimtech in forum JDBC
    Replies: 5
    Last Post: 08-06-2009, 03:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts