我一直在尝试使用Developer Studio来获取PayloadFactory调解器来从表达式get-property('PropertyName')填充参数。WSO2 Developer Studio(3.7.1)使用表达式获取属性时出错
当我试图从设计切换到源视图,我收到以下错误:
Cannot update source view. The following error(s) have been detected. Please see the error log for more details.
Reason: XPathFactory#newInstance()failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: bundleresource://1009.fwk1013423070:21/META-INF/services/java.xml.xpath.XPathFactory2: Illegal configuration-file syntax
但是如果我直接在运行ESB编辑PayloadFactory如下,它工作正常。
<args>
<arg xmlns:ns="http://org.apache.synapse/xsd" expression="get-property('PropertyName')" evaluator="xml"></arg>
</args>