[esb-java-dev] [jira] Closed: (ESBJAVA-285) Namespaces added
through the ESB console not saved to the configuration
Evanthika Amarasiri (JIRA)
jira at wso2.org
Tue Nov 6 22:49:14 PST 2007
[ http://www.wso2.org/jira/browse/ESBJAVA-285?page=all ]
Evanthika Amarasiri closed ESBJAVA-285.
---------------------------------------
Assignee: (was: indika kumara)
> Namespaces added through the ESB console not saved to the configuration
> -----------------------------------------------------------------------
>
> Key: ESBJAVA-285
> URL: http://www.wso2.org/jira/browse/ESBJAVA-285
> Project: WSO2 ESB
> Issue Type: Bug
> Components: Sequences Management
> Affects Versions: NIGHTLY
> Environment: Ubuntu 7-04, JDK1.5.0_12, Firefox 2.0.0.8
> Reporter: Evanthika Amarasiri
>
> Created a sequence with a "Switch" mediator as follows
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <switch source="//m0:getQuote/m0:request/m0:symbol" xmlns:m0="http://services.samples/xsd">
> <case regex="IBM">
> <property name="symbol" value="Great stock - IBM"/>
> </case>
> <case regex="MSFT">
> <property name="symbol" value="Are you sure? - MSFT"/>
> </case>
> <default>
> <property name="symbol"
> expression="fn:concat('Normal Stock - ', //m0:getQuote/m0:request/m0:symbol)"
> xmlns:m0="http://services.samples/xsd"/>
> </default>
> </switch>
> <log level="custom">
> <property name="symbol" expression="get-property('symbol')"/>
> <property name="epr" expression="get-property('To')"/>
> </log>
> <send/>
> </definitions>
> When a request is sent, received an error message stating that it cannot resolve the namespace
> 2007-10-24 13:48:09,388 [127.0.1.1-testc-ubuntu] [HttpServerWorker-13] ERROR Axis2MessageContext Evaluation of the XPath expression fn:concat('Normal Stock - ', //m0:getQuote/m0:request/m0:symbol) resulted in an error
> org.jaxen.UnresolvableException: Cannot resolve namespace prefix 'm0'
> at org.jaxen.expr.DefaultNameStep.matches(DefaultNameStep.java:340)
> at org.jaxen.expr.DefaultNameStep.evaluate(DefaultNameStep.java:276)
> When checked the configuration, noticed that namespaces are not saved to the configuration
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Esb-java-dev
mailing list