Skip to main content

SSL problems with some Java versions

1 reply [Last post]
jprt23
Offline
Joined: 2006-09-15
Points: 0

I use Java Web Start to launch an application which uses https to talk to the web server. The problem is, I get SocketException with Java versions 142_07, 08, 09 and 10. While it works fine with versions 142_03, 04, 05, 06 and 1.5+.

StackTrace:
java.net.SocketException: Default SSL context init failed: jks not found
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getOutputStream(Unknown Source)

Has anyone come across anything like this ?

- jp

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
c96mud
Offline
Joined: 2007-05-02
Points: 0

I doubt that this problem is related to different java versions. I ran into the same problem when an extra whitespace had sneaked into the end of a line in one of my property files.

When you look at the error message you can see that it complains about the string "jks " (note the whitespace).

My guess is that you too have an extra whitespace somewhere where you assign a value to either the "javax.net.ssl.trustStoreType" or "javax.net.ssl.keyStoreType" system property.

/Markus Umefjord