This exception is caused by Wstx doesn't get a whole XML stream.
Can you use the tcpmon[1] to catch the under lay message?
You can also find some tips of CXF debugging here[2].

[1]http://tcpmon.dev.java.net/
[2]http://cxf.apache.org/docs/debugging-and-logging.html
Stephen Gargan wrote:
Make sure that your web service url is correct. I've seen this happen
when trying to grab the wsdl, but accidentally getting a page of html
instead; the xml prolog is missing and it complains like this. Double
check and see if this is your problem.

ste

On Fri, Jan 8, 2010 at 6:56 AM, James Carr <[email protected]> wrote:
I've had this problem locally before... but my setup was unique so YMMV.

We have apache redirecting to weblogic for certain urls, and for the
CXF client I had turned gzipCompression on. However, I had failed to
enable gzip Compression in apache.

Turning it off on the client or enabling it on apache solved the problem.

Hope that helps,
James

On Fri, Jan 8, 2010 at 7:37 AM, Ricardo Melo <[email protected]> wrote:
Hi,

I'm having an issue when trying to invoke a remote webservice method. I'm
using camel 2.0.0 and cxf 2.2.2.

I get the following exception. Do you know what can cause this exception?

I've disabled firewall and unistalled AVG antivirus.

Thanks!

Exceotion:

Jan 8, 2010 11:26:43 AM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
INFO: 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:236)
   at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:645)
   at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2132)
   at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2015)
   at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1940)
   at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
   at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
   at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
   at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
   at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471)
   at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301)
   at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253)
   at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
   at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121)
   at $Proxy58.receiveMessage(Unknown Source)
   at
com.transport.alstom.ioda.administration.simulation.Simulator.sendMessage(Simulator.java:67)
   at
com.transport.alstom.ioda.administration.simulation.Simulator.processMessage(Simulator.java:169)
   at
com.transport.alstom.ioda.administration.simulation.test.SimulatorTest.sendPingMessage(SimulatorTest.java:132)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
   at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
   at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
   at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
   at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
   at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
   at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
   at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
   at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
   at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
   at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
   at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
   at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
   at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
   at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
   at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
   at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
   at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
   at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
   at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
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)
   ... 43 more


--
Ricardo Britto Melo

CFlex - Empower your Decisions
Tel: (+55 19) 3251-5211
Rua BarĂ£o de Paranapanema, 401A
Campinas - SP
www.cflex.com.br



Reply via email to