Greetings Team,
I have created a JMS based VSM using the 'More Flexible' option as I have to substitude variable in JMS payload by following the below thread
I have also added Execute Script step with the proved script, however on deploying the VSM, below error message is thrown.
Could you please help?
Thanks in advance.
============================================================================
| com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not R (position: START_DOCUMENT seen R... @1:1)
============================================================================
| Step: VS Image Response Selection
----------------------------------------------------------------------------
| Message: : only whitespace content allowed before start tag and not R (position: START_DOCUMENT seen R... @1:1)
----------------------------------------------------------------------------
| Trapped Exception: : only whitespace content allowed before start tag and not R (position: START_DOCUMENT seen R... @1:1)
| Trapped Message: com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not R (position: START_DOCUMENT seen R... @1:1)
----------------------------------------------------------------------------
STACK TRACE
com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not R (position: START_DOCUMENT seen R... @1:1)
at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118)
at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)
at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63)
at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1061)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1052)
at com.itko.lisa.vse.stateful.model.Streamer.fromXML(Streamer.java:92)
at com.itko.lisa.vse.stateful.ConversationalStep.execute(ConversationalStep.java:453)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1283)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1050)
at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:70)
at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:963)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Unknown Source)
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not R (position: START_DOCUMENT seen R... @1:1)
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109)
... 19 more
============================================================================
The exception in the VS Image response selection step suggests that the model is unable to parse the matched response from VSI.
Can you paste the response from the matched transaction which throws the above error?
Another thing to try would be to replace the non printable chars with spaces in your request dph & see if that eliminates this error. If that doesn't help - you would need to get with CA support to help you further.