2 Replies Latest reply on Mar 16, 2011 9:30 AM by Manuel Lara Caro

    Random error in a Content-Based Router

    Manuel Lara Caro Novice

      I've figured out that i get the following error sometimes:

      org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: /soapenv:Envelope/soapenv:Body/ws:performAction. Reason: javax.xml.xpath.XPathExpressionException

           at org.apache.camel.builder.xml.XPathBuilder.doInEvaluateAs(XPathBuilder.java:671)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:629)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.builder.xml.XPathBuilder.matches(XPathBuilder.java:126)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:65)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.Pipeline.process(Pipeline.java:125)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           at org.apache.camel.component.cxf.CxfConsumer$1.asyncInvoke(CxfConsumer.java:97)[201:org.apache.camel.camel-cxf:2.6.0.fuse-00-00]

           at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:73)[201:org.apache.camel.camel-cxf:2.6.0.fuse-00-00]

           at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)[137:org.apache.cxf.bundle:2.3.2.fuse-00-00]

           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_23]

           at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_23]

           at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_23]

           at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)[137:org.apache.cxf.bundle:2.3.2.fuse-00-00]

           at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)[137:org.apache.cxf.bundle:2.3.2.fuse-00-00]

           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)[137:org.apache.cxf.bundle:2.3.2.fuse-00-00]

           at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:113)[137:org.apache.cxf.bundle:2.3.2.fuse-00-00]

           at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:311)[137:org.apache.cxf.bundle:2.3.2.fuse-00-00]

           at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:280)[137:org.apache.cxf.bundle:2.3.2.fuse-00-00]

           at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)[137:org.apache.cxf.bundle:2.3.2.fuse-00-00]

           at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:931)[144:org.eclipse.jetty.server:7.2.2.v20101205]

           at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:868)[144:org.eclipse.jetty.server:7.2.2.v20101205]

           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[144:org.eclipse.jetty.server:7.2.2.v20101205]

           at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)[144:org.eclipse.jetty.server:7.2.2.v20101205]

           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)[144:org.eclipse.jetty.server:7.2.2.v20101205]

           at org.eclipse.jetty.server.Server.handle(Server.java:352)[144:org.eclipse.jetty.server:7.2.2.v20101205]

           at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)[144:org.eclipse.jetty.server:7.2.2.v20101205]

           at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068)[144:org.eclipse.jetty.server:7.2.2.v20101205]

           at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)[140:org.eclipse.jetty.http:7.2.2.v20101205]

           at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)[140:org.eclipse.jetty.http:7.2.2.v20101205]

           at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)[144:org.eclipse.jetty.server:7.2.2.v20101205]

           at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)[139:org.eclipse.jetty.io:7.2.2.v20101205]

           at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)[139:org.eclipse.jetty.io:7.2.2.v20101205]

           at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)[139:org.eclipse.jetty.io:7.2.2.v20101205]

           at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)[138:org.eclipse.jetty.util:7.2.2.v20101205]

           at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]

      Caused by: javax.xml.xpath.XPathExpressionException

           at com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:332)[:]

           at org.apache.camel.builder.xml.XPathBuilder.doInEvaluateAs(XPathBuilder.java:652)[68:org.apache.camel.camel-core:2.6.0.fuse-00-00]

           ... 52 more

      Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.

           at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:287)[:]

           at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:322)[:]

           at com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:329)[:]

           ... 53 more

       

       

      my rote is this: