Skip to main content

Hi All,

Below is the error I am getting while Inserting in to DB. I have provided the request and input parametrs used in the connector. I guess issue is becuase of xml in the request

Error:

Message : "org.mule.weave.v2.module.reader.ReaderParsingException: Unexpected character '{' (code 123) in prolog

at [row,col {unknown-source}]: [1,2], while reading `payload` as Xml.

[row,col]: [1,2]

Trace:

at main (line: 4, column: 11)

" evaluating expression: "output application/java

---

{

data: read(payload.procedure,'application/xml'),

status: payload.status

}".

Error type : MULE:EXPRESSION

Payload Type : org.mule.runtime.core.internal.streaming.bytes.ManagedCursorStreamProvider

--------------------------------------------------------------------------------

Root Exception stack trace:

org.mule.runtime.api.el.ExpressionExecutionException: org.mule.weave.v2.module.reader.ReaderParsingException: Unexpected character '{' (code 123) in prolog

at [row,col {unknown-source}]: [1,2], while reading `payload` as Xml.

[row,col]: [1,2]

Trace:

at main (line: 4, column: 11)

 

Request:

{

"procedure" : "<list><account>HA0002035884</account></list>",

"Status" : "success"

}

 

inputparameters in connector:

 

output application/java

---

{

data: read(payload.procedure,'application/xml'), [Tried just payload.procedure]

status: payload.Status

}

0/9000