title: "Connection reset" when using SOAP
body: <p>I have a REST service and some clients get a "Connection reset" error. But SOAP is stateless, so why doesn't it just simply reconnect and resend the request? It actually sends multiple messages in my use case, but the very first fails, and that is just to get some config data from the server. Is this something I need to configure? Should the client programmatically try to resend the message? Some users tried multiple times with the same result.</p>
  
  <p>It never happened in the last years but now I get some reports of this problem.<br>
  The client uses in implementation of <code>javax.xml.ws.Service</code>, not just a raw socket. But even though I use JAX I get the low level error. It is wrapped by a <code>WebServiceException</code>, but that doesn't really help me fixing this problem.
  The clients all use Java 8. It's either Update 66 or Update 74. </p>
  
  <p>I am not able to reproduce the problem myself, I only have log files from users.</p>
  
  <p>Here's the complete stack trace:</p>
  
  <pre><code>javax.xml.ws.WebServiceException: java.net.SocketException: Connection reset
      at com.sun.xml.internal.ws.transport.http.client.HttpClientTransport.readResponseCodeAndMessage(Unknown Source)
      at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.createResponsePacket(Unknown Source)
      at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(Unknown Source)
      at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(Unknown Source)
      at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(Unknown Source)
      at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Unknown Source)
      at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Unknown Source)
      at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Unknown Source)
      at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Unknown Source)
      at com.sun.xml.internal.ws.client.Stub.process(Unknown Source)
      at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(Unknown Source)
      at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
      at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
      at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source)
      at com.sun.proxy.$Proxy31.getLimits(Unknown Source)
      at xxxxxxxxxxxxx.SOAPServerAdapter.connect(Unknown Source)
      at xxxxxxxxxxxxxxxxxxxx(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
  Caused by: java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(Unknown Source)
      at java.net.SocketInputStream.read(Unknown Source)
      at sun.security.ssl.InputRecord.readFully(Unknown Source)
      at sun.security.ssl.InputRecord.read(Unknown Source)
      at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
      at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
      at sun.security.ssl.AppInputStream.read(Unknown Source)
      at java.io.BufferedInputStream.fill(Unknown Source)
      at java.io.BufferedInputStream.read1(Unknown Source)
      at java.io.BufferedInputStream.read(Unknown Source)
      at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
      at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
      at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
      at java.net.HttpURLConnection.getResponseCode(Unknown Source)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
      ... 18 more
  </code></pre>