File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reference counting error

 
Rashmi Birur
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Have u ever encountered this error ?
Error 500
An error has occured while processing request:http://localhost:8080/servlet/test.dbaccess.ConnTest1
Message: Server caught unhandled exception from servlet [test.dbaccess.ConnTest1]: Reference counting error
I have written one java class which access database by using Statement and PrepareStatement interface and i am calling this class from a servlet.i am returning resultset from the bean to the servlet and iterate thru the resultset and print those values on a page
If i write the same code in servlet then it works but i do it thru a bean its giving me this error .
i had given some println statements to track the flow , it calls the bean , executes the query and return to servlet but afterwards it abends.
If u have any idea about this kind of error then please let me know.
thanks
rashmi

 
Rishi Singh
Ranch Hand
Posts: 321
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear rashmi,
try catching the exception in your servlet code or mention throws throwable in your service method
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Referencing counting error sounds like memory problem to me. I guess the garbage collector is trying to determine how many references you are still using or something like that. This is more like an "out of memory" problem.

Bosun
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic