This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes RMI SSL Server failing silently on startup after 60s Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI SSL Server failing silently on startup after 60s" Watch "RMI SSL Server failing silently on startup after 60s" New topic
Author

RMI SSL Server failing silently on startup after 60s

Igor Vujosevic
Greenhorn

Joined: Jun 12, 2009
Posts: 2
Hi all, I have a piece of code that exports an object using SSL RMI socket factories if a secure flag is set. I am providing the location and password of the keystore on startup as a JVM parameter.

Basically everything works fine unless the JVM cannot find or access the keystore. In that case the server appears to start (my thread that starts the RMI server exists immediately after only leaving the RMI threads) but then the program exists silently almost exactly a minute later (I'm guessing some bind timeout). I can't find anything on Google and my next step would be to look at the Sun code if no one here has come across this.

It would be nice to trap this case.

I saw a similar topic posted a few years ago, but no answers were given.

Thanks for reading!
-I


Igor Vujosevic
Greenhorn

Joined: Jun 12, 2009
Posts: 2
Noticed the silent fail happens immediately if the keystore can be found but no server certificate is present.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI SSL Server failing silently on startup after 60s
 
Similar Threads
object already exported exception with RMI
difference between socket programming and rmi in java??
RMI with JavaSE 6 - UnicastRemoteObject.exportObject(Remote object) fails
no-JRMP server at remote endpoint Error
Small Question on UnicastRemoteObject