Service Virtualization

Expand all | Collapse all

Exception on setting VSI response object

  • 1.  Exception on setting VSI response object

    Posted 04-18-2018 07:12 PM

    Hi all,

    i am trying to record Tibco rendezvous traffic using half-bridge implementation.

    In a simulated environment all is working properly, but i have the following error recording real tibrv transaction:

     

    ===========================================================================

    | Exception:

    ============================================================================

    | Message:     Script throw an exception: bsh.EvalError: Sourced file: inline evaluation of: ``// Set the message in a real VSI response object  _logger.info(" <<< RESPONSE: " . . . '' : Error in method invocation: Method setBody(com.tibco.tibrv.TibrvMsg) not found in class'com.itko.lisa.vse.stateful.model.TransientResponse' : at Line: 4 : in file: inline evaluation of: ``// Set the message in a real VSI response object 

     

    Any advice is appreciated.

     

    Thanks,

    Domenico



  • 2.  Re: Exception on setting VSI response object

    Posted 04-18-2018 07:41 PM

    I don't recall using a setBody in my half-bridging post, so I don't know what logic is before that line. As far as I remember, setBody takes a string or a byte array, but it looks like you're trying to pass a TibrvMsg object into it. A blind guess is to convert the TibrvMsg to a byte array or a string before setting it as the body, depending on where and how you're converting between TibrvMsg and the VSI message format?