ThreadDeath Error when closing Session using recycle() method

0 pts.
Tags:
Java
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)
ASKED: June 27, 2006  9:51 AM
UPDATED: June 27, 2006  1:15 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following