Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RMI server application exits because no non-daemon threads

843793Jan 17 2006 — edited Mar 24 2008
Hi,
I have a very small RMI server application which, when I start it, sometimes exits immediately with no error. I did a bit of debugging and it seems that the only RMI thread which is non-daemon is the RMI Reaper thread, which sometimes doesn't get started by the time my principal thread terminates.

Is there any way to tell the RMI processes to run in non-daemon mode - or is there any way to keep my server running, apart from creating my own non-daemon thread that doesn't do anything? (I'm running on RH Linux with JDK 1.5.0_06 if that makes any difference.)

Thanks,
R
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 21 2008
Added on Jan 17 2006
11 comments
696 views