Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Operation not allowed after ResultSet closed

 
Singh Anisha
Ranch Hand
Posts: 100
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This function is returning null pointer Exception.
SQL Exception Operation not allowed after ResultSet closed
 
Arun Giridhar
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Singh Anisha wrote:

What these Line says to You ? ..
 
Singh Anisha
Ranch Hand
Posts: 100
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its closing the connection not the statement.. so that it could throw exception.
 
Arun Giridhar
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Singh Anisha wrote:Its closing the connection not the statement.


Huh ?! ... If you close the Connection then your closing statement and resultset too. This post has to moved to Jdbc Forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic