javanet.staxutils.SimpleNamespaceContext works. Spring can load the context.

But the next problems: Using the characters 'ü' in Jürgen and 'ä' in
Mayrbäurl in the IN message causes exception in
JAXPXPathExpression.evaluate() when getXMLNode() is called. We're using
german systems.

For testing purpose I've removed the 'ü's and 'ä's from the IN message. But
still the same exception from ContentBasedRouter (no difference between
specifying the namespace or not):

javax.jbi.messaging.MessagingException: No matching rule found for exchange
        at
org.apache.servicemix.eip.patterns.ContentBasedRouter.getDestination(ContentBasedRouter.java:161)
        at
org.apache.servicemix.eip.patterns.ContentBasedRouter.process(ContentBasedRouter.java:92)
        at
org.apache.servicemix.common.BaseLifeCycle.processExchange(BaseLifeCycle.java:375)
        at 
org.apache.servicemix.common.BaseLifeCycle$2.run(BaseLifeCycle.java:241)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:534)

I debugged the calling sequence, but couldn't find the cause of the problem.

Juergen
--
View this message in context: 
http://www.nabble.com/NamespaceContext-in-XPath-based-content-router-t1512305.html#a4104924
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to