This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

RMI SSL Server failing silently on startup after 60s

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Noticed the silent fail happens immediately if the keystore can be found but no server certificate is present.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!