Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problems with a SSL Client

0 views
Skip to first unread message

Giorgio Franceschetti

unread,
Aug 29, 2003, 10:58:04 AM8/29/03
to
I'm trying to make a small client using SSL.
I'have made a client and a server class.
It works quite fine. The problem starts when I execute the client more
then once.
Then, sometimes, I receive the following exception in the client:
java.net.SocketException: Software caused connection abort: JVM_recv in
socket input stream read
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:116)
at com.sun.net.ssl.internal.ssl.InputRecord.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.InputRecord.read(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.AppInputStream.read(DashoA6275)
at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:404)
at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:442)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:179)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at org.javasourcemaint.client.Client.connect(Client.java:92)

I cannot understand why. I tryed to delay the closing of the socket on
the server, but it didn't work.
It looks like the server worked...The problem seems to be on the client
side.

The problem is that it work fine 50% of cases.
I'm testing it on the same machine, could it be?
Please help, I'm getting crazy.....
Thanks,
Giorgio

0 new messages