File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Reference counting error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Reference counting error" Watch "Reference counting error" New topic

Reference counting error

Rashmi Birur

Joined: Aug 29, 2001
Posts: 4
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.

Rishi Singh
Ranch Hand

Joined: Dec 09, 2000
Posts: 321
dear rashmi,
try catching the exception in your servlet code or mention throws throwable in your service method
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
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.


So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: Reference counting error
It's not a secret anymore!