Service Virtualization

  • 1.  Problem using IBM MQ Native protocol

    Posted Feb 14, 2017 12:45 PM
      |   view attached

    Hi, I have created a Virtual Service (using Request and Response Pairs) with IBM MQ Native protocol using DevTest version 9.1, then, when I try to use the virtual service in my Workstation I get this error:

     

    ============================================================================
    | com.thoughtworks.xstream.io.StreamException: : unterminated entity ref (position:TEXT Request {id=0, o...@1:85 in java.io.StringReader@64f9b22e)
    ============================================================================
    | Step: VS Image Response Selection
    ----------------------------------------------------------------------------
    | Message: : unterminated entity ref (position:TEXT Request {id=0, o...@1:85 in java.io.StringReader@64f9b22e)
    ----------------------------------------------------------------------------
    | Trapped Exception: : unterminated entity ref (position:TEXT Request {id=0, o...@1:85 in java.io.StringReader@64f9b22e)
    | Trapped Message: com.thoughtworks.xstream.io.StreamException: : unterminated entity ref (position:TEXT Request {id=0, o...@1:85 in java.io.StringReader@64f9b22e)
    ----------------------------------------------------------------------------
    STACK TRACE
    com.thoughtworks.xstream.io.StreamException: : unterminated entity ref (position:TEXT Request {id=0, o...@1:85 in java.io.StringReader@64f9b22e)
    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:1295)
    at com.itko.lisa.test.TestCase.execute(TestCase.java:1210)
    at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1195)
    at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1057)
    at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:70)
    at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:964)
    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: unterminated entity ref (position:TEXT Request {id=0, o...@1:85 in java.io.StringReader@64f9b22e)
    at org.kxml2.io.KXmlParser.exception(Unknown Source)
    at org.kxml2.io.KXmlParser.error(Unknown Source)
    at org.kxml2.io.KXmlParser.pushEntity(Unknown Source)
    at org.kxml2.io.KXmlParser.pushText(Unknown Source)
    at org.kxml2.io.KXmlParser.nextImpl(Unknown Source)
    at org.kxml2.io.KXmlParser.next(Unknown Source)
    at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109)
    ... 19 more
    ============================================================================

     

     

    And the virtual service can not put the message in the queue and the execution ends.

     

    I am using:

    • IBM MQ v8.0.0.5.
    • Windows 7 Professional
    • Devtest Workstation 9.1.0

     

    Attached the request and response pair, the virtual service project and the log from my worstation.

     

    Attachment(s)

    zip
    Problem IBM MQ Native.zip   424 KB 1 version


  • 2.  Re: Problem using IBM MQ Native protocol
    Best Answer

    Broadcom Employee
    Posted Feb 14, 2017 05:32 PM

    Could you please open a  ticket with CA Support.  We can take a look at the issue in a webex. 

     

     

    Thanks

     

    Shiney



  • 3.  Re: Problem using IBM MQ Native protocol

    Posted Feb 15, 2017 08:23 AM

    Thanks Shiney, I will do it



  • 4.  Re: Problem using IBM MQ Native protocol

    Posted Feb 23, 2017 07:45 AM

    Did u manually add the prepare req and prepare res section in VSM ? if so, can u delete those steps and deploy the vse and test it once



  • 5.  Re: Problem using IBM MQ Native protocol

    Posted Feb 23, 2017 08:49 AM

    Hi Jagath,

     

    Those steps was added automatically, I deleted them and now the virtual service ends with no errors, but, I get no response, it's like the service does not know which image to choose.