cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shashikant Sarade <shashikantsar...@gmail.com>
Subject Re: Unmarshalling Error
Date Sat, 21 Apr 2012 18:59:04 GMT
I am also getting same errors when i call a method which is having return
value.
Please someone help ....

On Fri, Apr 13, 2012 at 7:15 PM, Laurent Pellegrino <
laurent.pellegrino@gmail.com> wrote:

> Hi all,
>
> I have deployed a Webservice with CXF and I am invoking several times
> a method from this webservice with, always, the same payload. The
> first requests are handled correctly some sometimes I get an
> unmarshall exception. Any idea?
>
>
> org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
> ATTENTION: Interceptor for
> {
> http://services.webservices.eventcloud.inria.fr/}SubscriberServiceImplService#{http://docs.oasis-open.org/wsn/bw-2}Notify
> has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: Unmarshalling Error: Unexpected
> character '2' (code 50) (expected a name start character)
>  at [row,col {unknown-source}]: [1,514]
>        at
> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:822)
>        at
> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:643)
>        at
> org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:156)
>        at
> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:201)
>        at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
>        at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:123)
>        at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:323)
>        at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:289)
>        at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
>        at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943)
>        at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879)
>        at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>        at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
>        at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
>        at org.eclipse.jetty.server.Server.handle(Server.java:345)
>        at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
>        at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936)
>        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)
>        at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)
>        at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
>        at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
>        at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
>        at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
>        at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: javax.xml.bind.UnmarshalException
>  - with linked exception:
> [com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
> '2' (code 50) (expected a name start character)
>  at [row,col {unknown-source}]: [1,514]]
>        at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:435)
>        at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:371)
>        at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:348)
>        at
> org.apache.cxf.jaxb.JAXBEncoderDecoder.doUnmarshal(JAXBEncoderDecoder.java:783)
>        at
> org.apache.cxf.jaxb.JAXBEncoderDecoder.access$100(JAXBEncoderDecoder.java:96)
>        at
> org.apache.cxf.jaxb.JAXBEncoderDecoder$1.run(JAXBEncoderDecoder.java:811)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at
> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:809)
>        ... 24 more
> Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
> character '2' (code 50) (expected a name start character)
>  at [row,col {unknown-source}]: [1,514]
>        at
> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:639)
>        at
> com.ctc.wstx.sr.StreamScanner.parseLocalName(StreamScanner.java:1798)
>        at
> com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:2982)
>        at
> com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2926)
>        at
> com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2802)
>        at
> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1050)
>        at
> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:197)
>        at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:369)
>        ... 30 more
>
>
>
>
>
>
>
> org.apache.cxf.services.SubscriberServiceImplService.SubscriberServiceImplPort.NotificationConsumer
> INFO: Inbound Message
> ----------------------------
> ID: 301
> Address: http://138.96.195.238:9002/subscriber
> Encoding: UTF-8
> Http-Method: POST
> Content-Type: text/xml; charset=UTF-8
> Headers: {Accept=[*/*], Cache-Control=[no-cache],
> connection=[keep-alive], Content-Length=[2068],
> content-type=[text/xml; charset=UTF-8], Host=[138.96.195.238:9002],
> Pragma=[no-cache], SOAPAction=[""], User-Agent=[Apache CXF 2.5.2]}
> Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
> "><soap:Body><ns2:Notify
> xmlns="http://www.w3.org/2005/08/addressing"
> xmlns:ns2="http://docs.oasis-open.org/wsn/b-2"
> xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2"
> xmlns:ns4="http://docs.oasis-open.org/wsrf/rp-2"
> xmlns:ns5="http://docs.oasis-open.org/wsn/t-1"
> xmlns:ns6="http://docs.oasis-open.org/wsn/br-2"
> xmlns:ns7="http://docs.oasis-open.org/wsrf/r-2
> "><ns2:NotificationMessage><ns2:Topic
> xmlns:s="http://events.event-processing.org/ids"
> s:22d8784a-2a61-4ed7-9d46-1ea3af3aa9cb="
> http://events.event-processing.org/ids
> ">s:22d8784a-2a61-4ed7-9d46-1ea3af3aa9cb</ns2:Topic><ns2:Message><mt:nativeMessage
> xmlns:mt="http://www.event-processing.org/wsn/msgtype/"
> mt:syntax="application/x-trig">@prefix :
> &lt;http://events.event-processing.org/types/&gt; .
> @prefix uctelco: &lt;http://events.event-processing.org/uc/telco/&gt; .
> @prefix e: &lt;http://events.event-processing.org/ids/&gt; .
> @prefix geo: &lt;http://www.w3.org/2003/01/geo/wgs84_pos#&gt; .
> @prefix uccrisis: &lt;http://www.mines-albi.fr/nuclearcrisisevent#&gt; .
> @prefix sioc: &lt;http://rdfs.org/sioc/ns#&gt; .
> @prefix gn: &lt;http://www.geonames.org/ontology#&gt; .
> @prefix rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .
> @prefix s: &lt;http://streams.event-processing.org/ids/&gt; .
> @prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
> @prefix owl: &lt;http://www.w3.org/2002/07/owl#&gt; .
> @prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
> @prefix src: &lt;http://sources.event-processing.org/ids/&gt; .
> @prefix types: &lt;http://events.event-processing.org/types/&gt; .
> @prefix user: &lt;http://graph.facebook.com/schema/user#&gt; .
> {
> }
>
> &lt;http://events.event-processing.org/ids/Test&gt;  {
>    &lt;http://events.event-processing.org/ids/Test&gt;
>            &lt;http://events.event-processing.org/types/stream&gt;
>
> &lt;http://streams.event-processing.org/ids/default#stream&gt; .
>
> }
>
> </mt:nativeMessage></ns2:Message></ns2:NotificationMessage></ns2:Notify></soap:Body></soap:Envelope>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message