Skip to main content
Summary com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
Article Number 18584
Environment All Supported Operating Systems Artix 5.5 Artix JAX-WS Runtime
Question/Problem Description com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
avax.xml.ws.soap.SOAPFaultException: Error reading XMLStreamReader.
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:144)
    at $Proxy47.greetMe(Unknown Source)
    at demo.hw.client.Client.main(Client.java:65)
Caused by: 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:644)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2108)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1986)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1911)
    at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
    at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:601)
    at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:226)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:470)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:300)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:252)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:123)
    ... 2 more
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
Clarifying Information
Error Message
Defect/Enhancement Number
Cause AI-526
When Artix JAX-WS server publishes an endpoint with URL containing a trailing / (e.g "http://localhost:8500/QwestIlecSimService/")  the corresponding client endpoint URL must also contain the trailing /. If the client URL does not contain the trailing / (e.g "http://localhost:8500/QwestIlecSimService") the server response  cannot be unmarshalled and results in the following exception "com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog".
Resolution Ensure the client side URL used to contact the endpoint matches the server's publishing URL.
Workaround
Notes
Attachment
Created date: 06 September 2011
Last Modified: 13 February 2013
Last Published: 23 June 2012
First Published date: 10 September 2011

#Orbix
#KnowledgeDocs