Question

In ESB4.0.0,I can use XQuery like this:

xquery key="conf:/closeUserRequest_xq" variable 
xmlns:ns="http://service.jscn.coship.com/"   
xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
name="closeUser1" 
expression="//p:closeUser/userId" type="DOCUMENT"/>xquery

But when I upgrade to ESB4.0.3, use this error like:

[2012-04-21 11:31:53,342] ERROR - XQueryMediator Unable to execute the query
java.lang.NullPointerException at 
org.wso2.carbon.mediation.registry.WSO2Registry.lookup(WSO2Registry.java:177) at 
org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegistry.java:63) at 
org.apache.synapse.config.SynapseConfiguration.getEntry(SynapseConfiguration.java:693)at 
org.apache.synapse.core.axis2.Axis2MessageContext.getEntry(Axis2MessageContext.java:194)at 
org.apache.synapse.mediators.xquery.XQueryMediator.performQuery(XQueryMediator.java:233)
Was it helpful?

Solution

is your Xquery script available in the registry? Check whether the registry path is right..

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top