aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Reference counting error" Watch "Reference counting error" New topic
Author

Reference counting error

Rashmi Birur
Greenhorn

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

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: 1506
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


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reference counting error
 
Similar Threads
How to call a EnterpriseJavaBean from a static class( on iPlanet6)
Resultset is closed
How to call a EnterpriseJavaBean from a static class( on iPlanet6)
How to call a EnterpriseJavaBean from a static class( on iPlanet6)
applet-servlet - creating objects from resultset