Reason: java.net.SocketException: Unexpected end of file from server

I get the following error rather intermittently when I start WS through the SOAP interface. Sometimes it does not work, and then it continues to work, and then again sometimes it does not work. Another problem is that the test web service works perfectly with the client without any problems, but at the moment when we switch to the production one that it gives. Googled and made some changes (timeout on HttpConfig, jetty maxIdleTime), but still can't get it to work :( Any ideas how I can narrow it down, what's the problem?

org.apache.cxf.interceptor.Fault: Could not send Message. at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)[147:org.apache.cxf.cxf-api:2.6.0.redhat-60024] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)[147:org.apache.cxf.cxf-api:2.6.0.redhat-60024] Caused by: java.net.SocketException: SocketException invoking https://www.website:443/gateway/ServicePortV2: Unexpected end of file from server at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.7.0_25] Caused by: java.net.SocketException: Unexpected end of file from server at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:718)[:1.7.0_25] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)[:1.7.0_25] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1322)[:1.7.0_25] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)[:1.7.0_25] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)[:1.7.0_25] at org.apache.cxf.transport.http.HTTPConduit.processRetransmit(HTTPConduit.java:1004)[159:org.apache.cxf.cxf-rt-transports-http:2.6.0.redhat-60024] at org.apache.cxf.transport.http.HTTPConduit.access$400(HTTPConduit.java:148)[159:org.apache.cxf.cxf-rt-transports-http:2.6.0.redhat-60024] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRetransmits(HTTPConduit.java:1504)[159:org.apache.cxf.cxf-rt-transports-http:2.6.0.redhat-60024] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1525)[159:org.apache.cxf.cxf-rt-transports-http:2.6.0.redhat-60024] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1438)[159:org.apache.cxf.cxf-rt-transports-http:2.6.0.redhat-60024] 

Just adding using the SOAP UI with the endpoint works great.

+8
java web-services apache-camel cxf
source share
1 answer

Finally, it turned out that the connection timeout was set on the server side, so our supported connections will timeout after the allotted time and, therefore, intermittent errors. Changed the connection to close every time and everything is fine now.

+11
source share

All Articles