Software caused connection abort: recv failed

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Strange Exception
    via GitHub by dfarina
  • Oracle JDBC thin driver SSL
    via Stack Overflow by user3657792
  • Bug reported at ---------------------------------------------------------- Hi, while supporting an app development team, I'm facing a tough TLS issue - maybe you experts have an idea. They try to open an HTTPS connection to the server URL This is a Web Service of some Brazilian financial authority. So, what I'm basically doing is this: --code snippet-- URL url = new URL(""); HttpsURLConnection con = (HttpsURLConnection)url.openConnection(); con.setHostnameVerifier(new DefaultHostnameVerifier()); // optional default is GET con.setRequestMethod("GET"); System.out.println("Sending 'GET' request to URL: " + url); int responseCode = con.getResponseCode(); System.out.println("Response Code: " + responseCode); --end code snippet- I expect it to return "403 - not authorized". The coding will work with JDK7. However, with JDK8, I get this type of exception: Unrecognized Windows Sockets error: 0: recv failed at Method) at at at at at at at at at at at at at at at at at at ... I can get it to work in JDK8 by forcing it to TLSv1 only, e.g. by setting property -Djdk.tls.client.protocols=TLSv1. For JDK9 I even get a different exception: java.nio.BufferOverflowException at at at at at at at at at at at at at at at at at at Caused by: java.nio.BufferOverflowException at java.nio.HeapByteBuffer.put( at at at at at ... 12 more I've debugged a lot today and tried to get something out of the output but I didn't get any further with this - probably due to my lack of understanding the details of TLS communication and its implementation. I know the server is using some legacy protocol but still I think it should work. Maybe someone has any helpful idea? Is it a bug? You can simply try to run my test code snippet and should see the issue immediately... Thanks Christoph
    via by Xue-Lei Fan,
    • Software caused connection abort: recv failed at Method) at at at at at at at$ at$ at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.readFully( at at at com.hpe.snow.utils.snowwstester.Main2.main(

    Users with the same issue

    tvrmsmith1 times, last one,
    Михайло Тітов
    Михайло Тітов1 times, last one,
    rocday1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    103 more bugmates