Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ResultSet Exhausted Error

 
sovan chatt
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following java class which is called from a servlet ...Whenever I try to retrieve the data using getString()method I get a resultset exhausted message...But when I replaced withit worked...I am totally confused...I am giving both the sevlet code and java class code here....

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the JDBC forum.
 
Sandeep Sanaboyina
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are saying the issue is solved, just by replacing s1 with "700x900", the issue can't be with your code.
It could either be a data issue or that s1 does not have the correct value during execution. Better check your data.

Since you are already printing s1 before execution, I can only guess that there may be an extra space in the end.
 
Sandeep Sanaboyina
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, is the below code supposed to be inside the while loop



If it is in the while loop, I don't think the s1 will have proper values everytime.
 
sovan chatt
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, is the below code supposed to be inside the while loop

If it is in the while loop, I don't think the s1 will have proper values everytime.

@Sandeep Sanaboyina Why do you think if s is inside while loop s1 wont get proper values...?And there is no extra space in values of s1...please reply..
 
See where your hand is? Not there. It's next to this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!