Hi,
I am using CXF 2.1.5 client and the server is WebSphere 6.1.
This error is blocking me since many days.
Caould you please help me out..
When I make a service call from the client, I get Stream is closed
exception. But in the logs, I see there is resposne from the server.
But I am not able to read the response from the stream.
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: stream is closed
at com.wdw.se.interceptor.DTSInInterceptor.logging(*
DTSInInterceptor.java:126*)
at com.wdw.se.interceptor.DTSInInterceptor.handleMessage(*
DTSInInterceptor.java:79*)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(*
PhaseInterceptorChain.java:226*)
at org.apache.cxf.endpoint.ClientImpl.onMessage(*ClientImpl.java:641
*)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(
*HTTPConduit.java:2131*) ------
Caused by:* **java.io.IOException*: stream is closed
at sun.net.www.http.ChunkedInputStream.ensureOpen(Unknown Source)
at sun.net.www.http.ChunkedInputStream.available(Unknown Source)
at java.io.FilterInputStream.available(Unknown Source)
at org.apache.cxf.helpers.IOUtils.copy(*IOUtils.java:98*)
at org.apache.cxf.helpers.IOUtils.copy(*IOUtils.java:75*)
Then I added constarint to go in to the code if stream is available.
Now, I get another exception.
Error reading XMLStreamReader...due to
The problem is I get this error only for particular size. All other times,
it works fine
NFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(
*ReadHeadersInterceptor.java:184*)
at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(
*ReadHeadersInterceptor.java:57*)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(*
PhaseInterceptorChain.java:226*)
at org.apache.cxf.endpoint.ClientImpl.onMessage(*ClientImpl.java:641*)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(
*HTTPConduit.java:2131*)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(
*HTTPConduit.java:2010*)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(*
HTTPConduit.java:1935*)
at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(*
CacheAndWriteOutputStream.java:47*)
at org.apache.cxf.io.CachedOutputStream.close(*CachedOutputStream.java:180*
)-------------
Caused by: *com.ctc.wstx.exc.WstxEOFException*: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(*StreamScanner.java:686*
)
at com.ctc.wstx.sr.BasicStreamReader.handleEOF(*BasicStreamReader.java:2134*
)
at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(*
BasicStreamReader.java:2040*)
at com.ctc.wstx.sr.BasicStreamReader.next(*BasicStreamReader.java:1069*)
at com.ctc.wstx.sr.BasicStreamReader.nextTag(*BasicStreamReader.java:1095*)
at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(
*ReadHeadersInterceptor.java:86*)