cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santhosh Kumar <santhosh.ku...@autodesk.com>
Subject RE: Getting "Current state not START_ELEMENT or END_ELEMENT" Exception
Date Tue, 11 May 2010 19:48:59 GMT
Thank you Dan. I overlooked that as it request as generated by SoapUI. I will correct it and
try again.

-----Original Message-----
From: Daniel Kulp [mailto:dkulp@apache.org] 
Sent: Tuesday, May 11, 2010 12:31 PM
To: users@cxf.apache.org
Cc: Santhosh Kumar
Subject: Re: Getting "Current state not START_ELEMENT or END_ELEMENT" Exception


You have an invalid soap message coming in.   There isn't a soap:Body in there 
at all.

Dan


On Tuesday 11 May 2010 2:14:55 pm Santhosh Kumar wrote:
> Hi Team,
> 
> I'm trying out the CXF for first time and using its Servlet transport with
> Spring configuration running on Tomcat. After registering and sending a
> request, I'm getting following error.  Any help is appreciated.  Here is
> the config file.
> 
> <import resource="classpath:META-INF/cxf/cxf.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> 
> <jaxws:endpoint id="payloadManagerSoapEndPoint"
>        address="/soap"
>        wsdlLocation="classpath:PayloadManager-1.0.wsdl"
>        publish="true"
>        implementor="#payloadManagerPortImpl"
>        />
> 
> Thanks,
> Santhosh.
> 
> ===========================================================================
> ================================ May 11, 2010 10:55:24 AM
> org.apache.catalina.startup.Catalina start INFO: Server startup in 760 ms
> May 11, 2010 10:55:34 AM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive payloadmanager.war
> May 11, 2010 10:55:39 AM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromWSDL INFO: Creating Service
> {http://www.autodesk.com/schemas/Technical/PayloadManagerV1.0}PayloadManag
> erService from WSDL: classpath:PayloadManager-1.0.wsdl May 11, 2010
> 10:55:39 AM org.apache.cxf.endpoint.ServerImpl initDestination INFO:
> Setting the server's publish address to be /soap
> May 11, 2010 10:55:39 AM org.apache.cxf.transport.servlet.CXFServlet
> updateContext INFO: Load the bus with application context
> May 11, 2010 10:55:39 AM
> org.apache.cxf.transport.servlet.AbstractCXFServlet
> replaceDestinationFactory INFO: Servlet transport factory already
> registered
> May 11, 2010 10:56:27 AM org.apache.cxf.interceptor.LoggingInInterceptor
> logging INFO: Inbound Message
> ----------------------------
> ID: 1
> Address: /payloadmanager/services/soap
> Encoding: UTF-8
> Content-Type: text/xml;charset=UTF-8
> Headers: {content-type=[text/xml;charset=UTF-8], host=[localhost:8080],
> Content-Length=[482], SOAPAction=[""], user-agent=[Jakarta
> Commons-HttpClient/3.1], accept-encoding=[gzip,deflate],
> Content-Type=[text/xml;charset=UTF-8]} Payload: <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:pay="http://www.autodesk.com/schemas/Technical/PayloadManagerV1.0">
> <soapenv:Header/>
>    <putPayloadRequest>
>          <pay:payload>
>             <pay:application>app</pay:application>
>             <pay:contentType>text/xml</pay:contentType>
>             <pay:charset>utf-8</pay:charset>
>             <pay:value>value</pay:value>
>          </pay:payload>
>       </putPayloadRequest>
> </soapenv:Envelope>
> --------------------------------------
> May 11, 2010 10:56:27 AM org.apache.cxf.phase.PhaseInterceptorChain
> doDefaultLogging WARNING: Interceptor for
> {http://www.autodesk.com/schemas/Technical/PayloadManagerV1.0}PayloadManag
> erService has thrown exception, unwinding now
> java.lang.IllegalStateException: Current state not START_ELEMENT or
> END_ELEMENT at
> com.ctc.wstx.sr.BasicStreamReader.getName(BasicStreamReader.java:721) at
> org.apache.cxf.staxutils.DepthXMLStreamReader.getName(DepthXMLStreamReader
> .java:114) at
> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLitera
> lInInterceptor.java:87) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
> in.java:243) at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiation
> Observer.java:110) at
> org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestinat
> ion.java:98) at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(Servl
> etController.java:423) at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletControlle
> r.java:178) at
> org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServ
> let.java:142) at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(Abstrac
> tHTTPServlet.java:179) at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPSe
> rvlet.java:103) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPS
> ervlet.java:159) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
> onFilterChain.java:290) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> Chain.java:206) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
> java:233) at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
> java:191) at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
> 28) at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
> 02) at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
> va:109) at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293
> ) at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ht
> tp11Protocol.java:583) at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at
> java.lang.Thread.run(Thread.java:619)
> ===========================================================================
> ===================================

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Mime
View raw message