This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
Unable to call a servlet using the HTTPClient from an applet with https
posted 3 years ago
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.
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.