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(Dasho A6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Dasho A6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Dasho A6275)
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.startHa ndshake(DashoA6275)

at sun.net.http://www.protocol.https.HttpsClien...ect(DashoA6275)
at sun.net.http://www.protocol.https.AbstractDe...ection.connect
(DashoA6275)
at sun.net.http://www.protocol.http.HttpURLConn...Stream(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 somebody help me with this