Stephane, not always, but sometimes that indicates an HTML error message (rather than an actual SOAP response) coming in off the wire. You might wish to run Wireshark[1] while you're doing the tests to trap the actual response and inspect it for clues. Of course, for sanity just run the test that is causing the problem (http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html).

The Jetty hanging issue I'm unsure about.

Regards,
Glen

[1] http://www.jroller.com/gmazza/entry/soap_calls_over_wireshark

On 02/13/2012 04:34 AM, Stephane Eybert wrote:
Hello,

I have a simple web service application based on Spring and CXF and it works
quite nicely.

The client can send a request and receive the response, the interceptors are
all fired fine, and authentication is doing good.

However, when running the integration tests against jetty, yesterday the
Maven build hanged after all the tests had passed fine and I had no idea
why.

And today, after I did some change, the Maven build gives the following
exception:

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:677)
        at 
com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2104)
        at
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2010)
        at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1102)
        at 
com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1125)
        at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:138)

Here is how I run the integration tests:

mvn clean install -Pintegration-test

I wonder why is this happening only in the integration tests and not on the
real application.

The application is available on GitHub at:

https://github.com/stephaneeybert/springws

Kind Regards,

Stephane


--
View this message in context: 
http://cxf.547215.n5.nabble.com/com-ctc-wstx-exc-WstxEOFException-Unexpected-EOF-in-prolog-when-run-in-integration-test-on-jetty-tp5478597p5478597.html
Sent from the cxf-user mailing list archive at Nabble.com.


--
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza

Reply via email to