My server, which is a JAX-WS endpoint launched via the CXF API for the
purpose, seems perfectly happy. Yet the client, after 30K successful
interactions, gets the following backtrace. MTOM is in use here. 2.3.0
is in use here.
Exception in thread "main" javax.xml.ws.WebServiceException: Could not
send Message.
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
at $Proxy20.addDocument(Unknown Source)
at
com.basistech.jug.FileHarvesterService$HarvestOutputToDatabase.collect(FileHarvesterService.java:116)
at com.basistech.jug.FileHarvester.process(FileHarvester.java:178)
at com.basistech.jug.FileHarvester.harvestDir(FileHarvester.java:137)
at com.basistech.jug.FileHarvester.harvestDir(FileHarvester.java:149)
at com.basistech.jug.FileHarvester.harvestDir(FileHarvester.java:149)
at com.basistech.jug.FileHarvester.harvestDir(FileHarvester.java:149)
at com.basistech.jug.FileHarvester.harvest(FileHarvester.java:106)
at
com.basistech.jug.FileHarvesterService.run(FileHarvesterService.java:70)
at
com.basistech.jug.FileHarvesterService.main(FileHarvesterService.java:138)
Caused by: java.net.SocketException: SocketException invoking
http://localhost:6006/documentDatabase: Unexpected end of file from
server
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1995)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1980)
at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:662)
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:247)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
... 10 more
Caused by: java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:769)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:766)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1200)
at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2102)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2071)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1925)
... 19 more