wood burning stoves 2.0*
The moose likes JNLP and Web Start and the fly likes Unable to call a servlet using the HTTPClient from an applet with https 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 » JNLP and Web Start
Bookmark "Unable to call a servlet using the HTTPClient from an applet with https" Watch "Unable to call a servlet using the HTTPClient from an applet with https" New topic
Author

Unable to call a servlet using the HTTPClient from an applet with https

vijay veneer
Greenhorn

Joined: Feb 18, 2013
Posts: 1
HI
I am using a java webstart(which will be loaded by a servlet running on a server) and trying to select a file from the desktop and upload to remote ftp location.
During this upload i need to call a servlet for getting some details from the server, for this i use the HTTPClient class to invoke the server and This works fine with http protocol.
But if the server is running on https then the below exception is raised when the HTTPclient.execute method is called.

i am using jdk 1.6

java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)

Further more in a drill down exeption it shows

Caused by: java.io.EOFException
at java.io.DataInputStream.readInt(Unknown Source)
at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore(Unknown Source)
at sun.security.ssl.SSLContextImpl$DefaultSSLContext.getDefaultTrustManager(Unknown Source)

i searched on forums but could not get any useful information
Please help with any solution or suggestion.

Thanks
Vijay Sunder
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to call a servlet using the HTTPClient from an applet with https
 
Similar Threads
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
Downloading files from a HTTPS server
Applet not working
unexpected exception:please help
java.io.IOException: Server returned HTTP response code: 500 for URL: