1

在 ESB4.0.0 中,我可以像这样使用 XQuery:

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

但是当我升级到 ESB4.0.3 时,使用如下错误:

[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)
4

1 回答 1

1

您的 Xquery 脚本在注册表中可用吗?检查注册表路径是否正确..

于 2012-04-21T12:45:21.923 回答