-
Bug
-
Resolution: Done
-
Critical
-
FIS 2.0
-
None
Description of problem:
OCP Java Console Karaf quickstart update source raise exceptions in pod log
Version-Release number of selected component (if applicable):
openshift-jvm version: 1.0.50
OCP 3.3.1
Steps to Reproduce (it happnes only for karaf qs, springboot update source works):
1. Deploy karaf camel route to OCP (for example https://github.com/jboss-fuse/application-templates/blob/application-templates-2.0.fuse-000008/quickstarts/karaf2-camel-amq-template.json)
2. Open Java console from pod page
3. Camel tab -> jms-cbr-route -> Source
4. Update log message (add word MESSAGE): <log message="Done processing MESSAGE ${file:name}" id="route-final-log"/>
5. Click Update
6. You can see exceptions in pod log:
... 2016-11-08 06:31:22,259 | INFO | //work/jms/input | file-to-jms-route | 102 - org.apache.camel.camel-core - 2.17.0.redhat-630187 | Receiving order order393.xml 2016-11-08 06:31:22,290 | ERROR | [incomingOrders] | DefaultErrorHandler | 102 - org.apache.camel.camel-core - 2.17.0.redhat-630187 | Failed delivery for (MessageId: ID:s2i-karaf2-camel-amq-1-gaq1p-39371-1478602720275-1:1:2:1:393 on ExchangeId: ID-s2i-karaf2-camel-amq-1-gaq1p-38855-1478602716420-0-1965). Exhausted after delivery attempt: 1 caught: org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: /order:order/order:customer/order:country = 'UK'. Reason: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order Message History --------------------------------------------------------------------------------------------------------------------------------------- RouteId ProcessorId Processor Elapsed (ms) [jms-cbr-route ] [jms-cbr-route ] [activemq://incomingOrders ] [ 14] [jms-cbr-route ] [route-choice-count] [when[xpath{XPath: /order:order/order:customer/order:country = 'UK'}]choice[whe] [ 12] Stacktrace --------------------------------------------------------------------------------------------------------------------------------------- org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: /order:order/order:customer/order:country = 'UK'. Reason: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:769)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.builder.xml.XPathBuilder.matches(XPathBuilder.java:155)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.FilterProcessor.matches(FilterProcessor.java:65)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:93)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:112)[120:org.apache.camel.camel-jms:2.17.0.redhat-630187] at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:555)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:515)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:485)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1103)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1095)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:992)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_65] at java.lang.Thread.run(Thread.java:745)[:1.8.0_65] Caused by: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:400)[:1.8.0_65] at org.apache.camel.builder.xml.XPathBuilder.createXPathExpression(XPathBuilder.java:958)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:767)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] ... 23 more Caused by: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at com.sun.org.apache.xpath.internal.compiler.XPathParser.errorForDOM3(XPathParser.java:657)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.mapNSTokens(Lexer.java:642)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:269)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:100)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.XPathParser.initXPath(XPathParser.java:114)[:1.8.0_65] at com.sun.org.apache.xpath.internal.XPath.<init>(XPath.java:180)[:1.8.0_65] at com.sun.org.apache.xpath.internal.XPath.<init>(XPath.java:268)[:1.8.0_65] at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:392)[:1.8.0_65] ... 25 more 2016-11-08 06:31:22,293 | WARN | [incomingOrders] | EndpointMessageListener | 102 - org.apache.camel.camel-core - 2.17.0.redhat-630187 | Execution of JMS message listener failed. Caused by: [org.apache.camel.builder.xml.InvalidXPathExpression - Invalid xpath: /order:order/order:customer/order:country = 'UK'. Reason: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order] org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: /order:order/order:customer/order:country = 'UK'. Reason: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:769)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.builder.xml.XPathBuilder.matches(XPathBuilder.java:155)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.FilterProcessor.matches(FilterProcessor.java:65)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:93)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:112)[120:org.apache.camel.camel-jms:2.17.0.redhat-630187] at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:555)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:515)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:485)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1103)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1095)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:992)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_65] at java.lang.Thread.run(Thread.java:745)[:1.8.0_65] Caused by: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:400)[:1.8.0_65] at org.apache.camel.builder.xml.XPathBuilder.createXPathExpression(XPathBuilder.java:958)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:767)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] ... 23 more Caused by: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at com.sun.org.apache.xpath.internal.compiler.XPathParser.errorForDOM3(XPathParser.java:657)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.mapNSTokens(Lexer.java:642)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:269)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:100)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.XPathParser.initXPath(XPathParser.java:114)[:1.8.0_65] at com.sun.org.apache.xpath.internal.XPath.<init>(XPath.java:180)[:1.8.0_65] at com.sun.org.apache.xpath.internal.XPath.<init>(XPath.java:268)[:1.8.0_65] at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:392)[:1.8.0_65] ... 25 more 2016-11-08 06:31:27,294 | INFO | //work/jms/input | file-to-jms-route | 102 - org.apache.camel.camel-core - 2.17.0.redhat-630187 | Receiving order order394.xml 2016-11-08 06:31:27,302 | ERROR | [incomingOrders] | DefaultErrorHandler | 102 - org.apache.camel.camel-core - 2.17.0.redhat-630187 | Failed delivery for (MessageId: ID:s2i-karaf2-camel-amq-1-gaq1p-39371-1478602720275-1:1:2:1:394 on ExchangeId: ID-s2i-karaf2-camel-amq-1-gaq1p-38855-1478602716420-0-1970). Exhausted after delivery attempt: 1 caught: org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: /order:order/order:customer/order:country = 'UK'. Reason: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order Message History --------------------------------------------------------------------------------------------------------------------------------------- RouteId ProcessorId Processor Elapsed (ms) [jms-cbr-route ] [jms-cbr-route ] [activemq://incomingOrders ] [ 1] [jms-cbr-route ] [route-choice-count] [when[xpath{XPath: /order:order/order:customer/order:country = 'UK'}]choice[whe] [ 1] Stacktrace --------------------------------------------------------------------------------------------------------------------------------------- org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: /order:order/order:customer/order:country = 'UK'. Reason: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:769)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.builder.xml.XPathBuilder.matches(XPathBuilder.java:155)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.FilterProcessor.matches(FilterProcessor.java:65)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:93)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:112)[120:org.apache.camel.camel-jms:2.17.0.redhat-630187] at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:555)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:515)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:485)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1103)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1095)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:992)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_65] at java.lang.Thread.run(Thread.java:745)[:1.8.0_65] Caused by: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:400)[:1.8.0_65] at org.apache.camel.builder.xml.XPathBuilder.createXPathExpression(XPathBuilder.java:958)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:767)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] ... 23 more Caused by: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at com.sun.org.apache.xpath.internal.compiler.XPathParser.errorForDOM3(XPathParser.java:657)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.mapNSTokens(Lexer.java:642)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:269)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:100)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.XPathParser.initXPath(XPathParser.java:114)[:1.8.0_65] at com.sun.org.apache.xpath.internal.XPath.<init>(XPath.java:180)[:1.8.0_65] at com.sun.org.apache.xpath.internal.XPath.<init>(XPath.java:268)[:1.8.0_65] at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:392)[:1.8.0_65] ... 25 more 2016-11-08 06:31:27,303 | WARN | [incomingOrders] | EndpointMessageListener | 102 - org.apache.camel.camel-core - 2.17.0.redhat-630187 | Execution of JMS message listener failed. Caused by: [org.apache.camel.builder.xml.InvalidXPathExpression - Invalid xpath: /order:order/order:customer/order:country = 'UK'. Reason: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order] org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: /order:order/order:customer/order:country = 'UK'. Reason: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:769)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.builder.xml.XPathBuilder.matches(XPathBuilder.java:155)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.FilterProcessor.matches(FilterProcessor.java:65)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:93)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:112)[120:org.apache.camel.camel-jms:2.17.0.redhat-630187] at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:555)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:515)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:485)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1103)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1095)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:992)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_65] at java.lang.Thread.run(Thread.java:745)[:1.8.0_65] Caused by: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:400)[:1.8.0_65] at org.apache.camel.builder.xml.XPathBuilder.createXPathExpression(XPathBuilder.java:958)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:767)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] ... 23 more Caused by: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at com.sun.org.apache.xpath.internal.compiler.XPathParser.errorForDOM3(XPathParser.java:657)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.mapNSTokens(Lexer.java:642)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:269)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:100)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.XPathParser.initXPath(XPathParser.java:114)[:1.8.0_65] at com.sun.org.apache.xpath.internal.XPath.<init>(XPath.java:180)[:1.8.0_65] at com.sun.org.apache.xpath.internal.XPath.<init>(XPath.java:268)[:1.8.0_65] at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:392)[:1.8.0_65] ... 25 more 2016-11-08 06:31:32,309 | INFO | //work/jms/input | file-to-jms-route | 102 - org.apache.camel.camel-core - 2.17.0.redhat-630187 | Receiving order order395.xml 2016-11-08 06:31:32,313 | ERROR | [incomingOrders] | DefaultErrorHandler | 102 - org.apache.camel.camel-core - 2.17.0.redhat-630187 | Failed delivery for (MessageId: ID:s2i-karaf2-camel-amq-1-gaq1p-39371-1478602720275-1:1:2:1:395 on ExchangeId: ID-s2i-karaf2-camel-amq-1-gaq1p-38855-1478602716420-0-1975). Exhausted after delivery attempt: 1 caught: org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: /order:order/order:customer/order:country = 'UK'. Reason: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order Message History --------------------------------------------------------------------------------------------------------------------------------------- RouteId ProcessorId Processor Elapsed (ms) [jms-cbr-route ] [jms-cbr-route ] [activemq://incomingOrders ] [ 1] [jms-cbr-route ] [route-choice-count] [when[xpath{XPath: /order:order/order:customer/order:country = 'UK'}]choice[whe] [ 1] Stacktrace --------------------------------------------------------------------------------------------------------------------------------------- org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: /order:order/order:customer/order:country = 'UK'. Reason: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:769)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.builder.xml.XPathBuilder.matches(XPathBuilder.java:155)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.FilterProcessor.matches(FilterProcessor.java:65)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:93)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:112)[120:org.apache.camel.camel-jms:2.17.0.redhat-630187] at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:555)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:515)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:485)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1103)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1095)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:992)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_65] at java.lang.Thread.run(Thread.java:745)[:1.8.0_65] Caused by: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:400)[:1.8.0_65] at org.apache.camel.builder.xml.XPathBuilder.createXPathExpression(XPathBuilder.java:958)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:767)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] ... 23 more Caused by: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at com.sun.org.apache.xpath.internal.compiler.XPathParser.errorForDOM3(XPathParser.java:657)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.mapNSTokens(Lexer.java:642)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:269)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:100)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.XPathParser.initXPath(XPathParser.java:114)[:1.8.0_65] at com.sun.org.apache.xpath.internal.XPath.<init>(XPath.java:180)[:1.8.0_65] at com.sun.org.apache.xpath.internal.XPath.<init>(XPath.java:268)[:1.8.0_65] at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:392)[:1.8.0_65] ... 25 more 2016-11-08 06:31:32,314 | WARN | [incomingOrders] | EndpointMessageListener | 102 - org.apache.camel.camel-core - 2.17.0.redhat-630187 | Execution of JMS message listener failed. Caused by: [org.apache.camel.builder.xml.InvalidXPathExpression - Invalid xpath: /order:order/order:customer/order:country = 'UK'. Reason: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order] org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: /order:order/order:customer/order:country = 'UK'. Reason: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:769)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.builder.xml.XPathBuilder.matches(XPathBuilder.java:155)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.FilterProcessor.matches(FilterProcessor.java:65)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:93)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:112)[120:org.apache.camel.camel-jms:2.17.0.redhat-630187] at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:555)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:515)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:485)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1103)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1095)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:992)[24:org.apache.servicemix.bundles.spring-jms:3.2.16.RELEASE_2] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_65] at java.lang.Thread.run(Thread.java:745)[:1.8.0_65] Caused by: javax.xml.xpath.XPathExpressionException: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:400)[:1.8.0_65] at org.apache.camel.builder.xml.XPathBuilder.createXPathExpression(XPathBuilder.java:958)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:767)[102:org.apache.camel.camel-core:2.17.0.redhat-630187] ... 23 more Caused by: com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: order at com.sun.org.apache.xpath.internal.compiler.XPathParser.errorForDOM3(XPathParser.java:657)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.mapNSTokens(Lexer.java:642)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:269)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:100)[:1.8.0_65] at com.sun.org.apache.xpath.internal.compiler.XPathParser.initXPath(XPathParser.java:114)[:1.8.0_65] at com.sun.org.apache.xpath.internal.XPath.<init>(XPath.java:180)[:1.8.0_65] at com.sun.org.apache.xpath.internal.XPath.<init>(XPath.java:268)[:1.8.0_65] at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:392)[:1.8.0_65] ... 25 more 2016-11-08 06:31:37,339 | INFO | //work/jms/input | file-to-jms-route | 102 - org.apache.camel.camel-core - 2.17.0.redhat-630187 | Receiving order order396.xml ...
- is related to
-
ENTESB-8696 editing karaf camel route XML via hawtio console creates a broken XML with xmlns:xmlns
- Closed
-
FUSETOOLS-2023 Remote Route Editing: InvalidXPathExpression with CBR template
- Closed
- is blocked by
-
CAMEL-10509 Loading...