Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSEE

 
dhanya s pillai s
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Indicates some kind of error detected by an SSL subsystem. This class is the general class of exceptions produced by failed SSL-related operations.

The exception classes allow for the recovery of the error string by the code:


Which will provide additional details needed to accomplish your needs.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic