Hi, I am sending java object to ActiveMQ JMS queue after converting it into SOAP message then SOAP message to textmessage. When i am trying to use xpath for checking variable value, i am getting following error:-
[Fatal Error] :1:1: Content is not allowed in prolog. WARN - XPathPredicate - Could not evaluate xpath expression javax.jbi.messaging.MessagingException: org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.servicemix.expression.JAXPXPathExpression.evaluate(JAXPXPathExpression.java:150) at org.apache.servicemix.expression.JAXPBooleanXPathExpression.evaluate( JAXPBooleanXPathExpression.java:46) at org.apache.servicemix.eip.support.XPathPredicate.matches(XPathPredicate.java:48) at org.apache.servicemix.eip.patterns.ContentBasedRouter.getDestination(ContentBasedRouter.java:78) at org.apache.servicemix.eip.support.AbstractContentBasedRouter.processA sync(AbstractContentBasedRouter.java:116) at org.apache.servicemix.eip.EIPEndpoint.process(EIPEndpoint.java:161) at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:540) at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(Async BaseLifeCycle.java:492) at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun d(DeliveryChannelImpl.java:610) at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172) at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167) at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSourceFromStrea m(SourceTransformer.java:262) at org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSource(SourceTransformer.java:175) at org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(SourceTransformer.java:311) at org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(SourceTransformer.java:330) at org.apache.servicemix.expression.JAXPXPathExpression.getXMLNode(JAXPXPathExpression.java:244) at org.apache.servicemix.expression.JAXPXPathExpression.evaluate(JAXPXPathExpression.java:135) ... 15 more what format I need to convert JAVA object? Is this possible to use xpath over JAVA object? Please give me your suggestion as soon as possible. I would appreciate your suggestion. :) Thanks. Regards, Manish -- View this message in context: http://www.nabble.com/how-can-we-access-java-object-variable-in-xpath%2C-ActiveMQ-tp20513214p20513214.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.