mule - Element set-payload is not allowed here -
i have simple configuration file used in functional test case works fine when in anypoint studio when using in intellij (my main ide) set-payload in red , hover test displays
"element set-payload not allowed here"
when running test following exception
org.mule.api.config.configurationexception: line 17 in xml document url [file:/c:/dev/messaging/revenue-mule3-sms/target/test-classes/mule-conf2.xml] invalid; nested exception org.xml.sax.saxparseexception; linenumber: 17; columnnumber: 60; cvc-complex-type.2.4.a: invalid content found starting element 'set-payload'
i have following namespaces configured in file
xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:vm="http://www.mulesoft.org/schema/mule/vm" xmlns:test="http://www.mulesoft.org/schema/mule/test" version="ee-3.2.2" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd http://www.mulesoft.org/schema/mule/test http://www.mulesoft.org/schema/mule/test/current/mule-test.xsd">
and of main dependencies added. issue here?
edit
xml file content
<flow name="simplejunittestflow1" doc:name="simplejunittestflow1"> <inbound-endpoint address="vm://test" exchange-pattern="request-response" doc:name="generic"/> <set-payload value="#['pass']" doc:name="set payload"/> <flow-ref name="simplejunittestflow2" doc:name="flow reference"/> </flow> <sub-flow name="simplejunittestflow2" doc:name="simplejunittestflow2"> <set-payload value="#['pass']" doc:name="set payload"/> <set-payload doc:name="set payload"/> </sub-flow>
set-payload
transformer not introduced until 3.3.0. see using: version="ee-3.2.2"
Comments
Post a Comment