0 pts.
 ThreadDeath Error when closing Session using recycle() method
I'm developing a web app using OC4J as the container. After connecting to our domino server and recycling the session using session.recycle(), I am receiving a ThreadDeath error. I noticed that the session creates two threads: ReaderThread and RecycleThread. It looks as if the ReaderThread has trouble closing, which may be the source of the problem. Has anyone else had this problem? It doesn't seem to occur when I run my code as a standalone Java application. 06/06/27 09:41:12 java.lang.ThreadDeath 06/06/27 09:41:12 at java.lang.Thread.stop(Thread.java:630) 06/06/27 09:41:12 at lotus.priv.CORBA.iiop.IIOPConnection.purge_calls(Unknown Source) 06/06/27 09:41:12 at lotus.priv.CORBA.iiop.ReaderThread.run(Unknown Source)

Software/Hardware used:
ASKED: June 27, 2006  9:51 AM
UPDATED: June 27, 2006  1:15 PM

Answer Wiki:
I'm not familiar with OC4J or domino, but... purge_calls() is calling Thread.stop(). That's really bad. The stopped thread could be sitting on locks. Sun deprecated it and disparaged the method, starting in like 1996. It's not safe at all. (Have a look at the JDK5 javadocs for this little gremlin.) You might double-check that you've got an up-to-date orb. If you do, send the crew at lotus a bug report. Hope that helps, Dave
Last Wiki Answer Submitted:  June 27, 2006  1:15 pm  by  Dwalend   0 pts.
All Answer Wiki Contributors:  Dwalend   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _