• Post Reply Bookmark Topic Watch Topic
  • New Topic

Operation not allowed after ResultSet closed  RSS feed

 
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: 188
  • 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: 188
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!