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

    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(resultSet.next()) { ... }
    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 Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    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

    db
    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
    Posts
    11,861
    Rep Power
    19

    Default Re: Java Resultset exception

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

  4. #4
    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    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,

    Vijay

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-14-2011, 11:39 PM
  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
  •