• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reference counting error

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
dear rashmi,
try catching the exception in your servlet code or mention throws throwable in your service method
 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic