permaculture playing cards*
The moose likes Java in General and the fly likes JSEE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JSEE" Watch "JSEE" New topic
Author

JSEE

dhanya s pillai s
Greenhorn

Joined: Dec 10, 2007
Posts: 4
Hi
My application failed for secure server.Now i have converted my application to secure.
I have setup Secure Apache Tomat for testing purpose.I have also created by own certificate.
now when my application is running on this server it gives the following exception

javax.net.ssl.SSLException: error while writing to socket
javax.net.ssl.SSLException: error while writing to socket
javax.net.ssl.SSLException: error while writing to socket
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)

at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(DashoA6275)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown S
ource)


url = new URL(URL);
URLConnection conn = url.openConnection();
HttpsURLConnection connection = (HttpsURLConnection) conn;

connection .setDoOutput(false);
connection .setDoInput(true);
connection .setRequestProperty("content-type", "application/x-www-form-urlencoded");
connection .setRequestProperty("content-length", "0");
connection .connect();


can someday help me with this



at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Das
hoA6275)

The changes made to my java code are
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSEE