Results 1 to 4 of 4

Thread: [Resolved] Invalid Cursor State error...

Threaded View

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    [Resolved] Invalid Cursor State error...

    I posted this in the Database forum, but I feel that I might get a response here as well.

    I am trying to get a ResultSet from a database, and I keep getting this SQLException..."Invaid Cursor State". Now, I know that several things could cause this, but what could those things be? I am using almost identical code on a different servlet, and am not getting any errors...
    Code:
    //...
    Statement stmt = conn.createStatement() //connection created earlier in the code
    ResultSet rs      = stmt.executeQuery("SELECT * FROM Products WHERE ISBN='" + ISBN + '"); //exception is thrown here
    //...
    any thoughts?

    Last edited by crptcblade; Sep 4th, 2001 at 11:47 PM.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

Posting Permissions

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



Click Here to Expand Forum to Full Width