Wednesday, September 07, 2005

Java Source Code -- Online

sun.rmi.transport.ObjectTable

Lets say you are trying to debug why your servlet container isn't exiting cleanly, even though you think you have done everything right. At first you'll poke around google and run some kill -3's. But at some point, you'll need to poke around the Java source.

I found the above site, which makes it very easy to look around the source code of the usually hidden implementation of SUN's Java objects.

In the end, I figured out my problem: I wasn't unexporting all the references to RMI objects I had exported, which caused the RMI Reaper thread to stay alive -- and we all know what happens when the RMI Reaper thread stays alive. Your application won't die.

Anyway, it's a cool site -- and hopefully you'll never need it.

No comments:

Post a Comment