aspose file tools*
The moose likes Security and the fly likes JSEE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
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
Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282

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.


"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSEE