0 Replies Latest reply on Apr 19, 2010 3:08 AM by Maciej Krysiuk

    com.ctc.wstx.exc.WstxParsingException: Unexpected close tag

    Maciej Krysiuk Newbie

      Hi all,

       

      I repeatedly get an exception in a SOAP service component that apparently has a problem with parsing recieved XML. I have checked this and it is unlikely that the sender of a message sends an incorrect XML. Is this a know issue in Fuse? - I'm using version 3.4

       

      org.apache.camel.RuntimeCamelException: javax.xml.transform.TransformerException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </ns2:quantitnceNumber>; expected </ns2:quantity>.

      at : while processing exchange: Exchange[JbiMessage: NormalizedMessage@3f946594(org.apache.servicemix.soap.util.stax.StaxSource@2798f828)]

       

      org.apache.camel.RuntimeCamelException: javax.xml.transform.TransformerException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </ns2:quantitnceNumber>; expected </ns2:quantity>.

      at :

           at org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:591)

           at org.apache.camel.impl.converter.InstanceMethodTypeConverter.convertTo(InstanceMethodTypeConverter.java:57)

           at org.apache.camel.impl.converter.DefaultTypeConverter.doConvertTo(DefaultTypeConverter.java:119)

           at org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:90)

           at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:83)

           at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:52)

           at org.apache.camel.component.log.LogFormatter.getBodyAsString(LogFormatter.java:182)

           at org.apache.camel.component.log.LogFormatter.format(LogFormatter.java:74)

           at org.apache.camel.processor.Logger.logMessage(Logger.java:234)

           at org.apache.camel.processor.Logger.process(Logger.java:73)

           at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:92)

           at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:66)

           at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)

           at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:84)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)

           at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:55)

           at org.apache.camel.processor.LoggingErrorHandler.process(LoggingErrorHandler.java:54)

           at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)

           at org.apache.camel.processor.Pipeline.process(Pipeline.java:115)

           at org.apache.camel.processor.Pipeline.process(Pipeline.java:89)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)

           at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)

           at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)

           at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)

           at org.apache.servicemix.camel.CamelProviderEndpoint.handleActiveProviderExchange(CamelProviderEndpoint.java:116)

           at org.apache.servicemix.camel.CamelProviderEndpoint.process(CamelProviderEndpoint.java:74)

           at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)

           at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)

           at org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:535)

           at org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)

           at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)

           at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)

           at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)

           at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)

           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

           at java.lang.Thread.run(Thread.java:619)

      Caused by: javax.xml.transform.TransformerException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </ns2:quantitnceNumber>; expected </ns2:quantity>.

      at :

           at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:502)

           at org.apache.camel.converter.jaxp.XmlConverter.toResult(XmlConverter.java:130)

           at org.apache.camel.converter.jaxp.XmlConverter.toResult(XmlConverter.java:114)

           at org.apache.camel.converter.jaxp.XmlConverter.toString(XmlConverter.java:179)

           at org.apache.camel.converter.stream.StreamCacheConverter.convertToStreamCache(StreamCacheConverter.java:67)

           at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

           at java.lang.reflect.Method.invoke(Method.java:597)

           at org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:587)

           ... 37 more

      Caused by: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </ns2:quantitnceNumber>; expected </ns2:quantity>.

      at :

           at org.apache.servicemix.soap.util.stax.StaxSource.parse(StaxSource.java:120)

           at org.apache.servicemix.soap.util.stax.StaxSource.parse(StaxSource.java:227)

           at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)

           ... 45 more

      Caused by: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </ns2:quantitnceNumber>; expected </ns2:quantity>.

      at :

           at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:630)

           at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)

           at com.ctc.wstx.sr.BasicStreamReader.reportWrongEndElem(BasicStreamReader.java:3256)

           at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3198)

           at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2830)

           at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)

           at javax.xml.stream.util.StreamReaderDelegate.next(StreamReaderDelegate.java:60)

           at org.apache.servicemix.soap.util.stax.ExtendedXMLStreamReader.next(ExtendedXMLStreamReader.java:61)

           at org.apache.servicemix.soap.util.stax.FragmentStreamReader.next(FragmentStreamReader.java:68)

           at org.apache.servicemix.soap.util.stax.StaxSource.parse(StaxSource.java:116)

           ... 47 more