camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Mietz Egli (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-4025) XPath namespaces not present when <xpath> element inside a <routeContext> element
Date Fri, 27 May 2011 22:51:47 GMT
XPath namespaces not present when <xpath> element inside a <routeContext> element
---------------------------------------------------------------------------------

                 Key: CAMEL-4025
                 URL: https://issues.apache.org/jira/browse/CAMEL-4025
             Project: Camel
          Issue Type: Bug
          Components: camel-spring
    Affects Versions: 2.7.1, 2.6.0
         Environment: OSX 10.6.7
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)

            Reporter: Paul Mietz Egli
            Priority: Critical
         Attachments: xpathFilterWithNamespaceOnRouteContext.xml

I have a route that is inside a {{<routeContext>}} element which uses XPath as part
of a filter and a choice.  The input document has a default namespace that is not blank. 
When I try to run a message through the route, I see the following error in the logs:

{code:none}
com.sun.org.apache.xpath.internal.domapi.XPathStylesheetDOM3Exception: Prefix must resolve
to a namespace: foo
{code}

Adding the namespace declaration to the {{beans}} element as is done in the unit tests for
camel-spring doesn't fix the problem, and neither does adding it to the {{<camelContext>}}
element as described in the documentation.  I copied the {{SpringXPathFilterWithNamespaceTest}}
class and created an input route configuration that uses a {{routeContext}}, and was able
to reproduce the issue.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message