AnsweredAssumed Answered

Error while using scriptable data protocol

Question asked by prat130193 on Mar 5, 2018
Latest reply on Mar 7, 2018 by Joel NeSmith

Hi,

 

I am writing a simple scriptable data protocol in which i need to modify the incoming request.

 

String theBody = lisa_vse_request.toString();

 

after this few line of code to interpret the request.

 

But i am getting error at processing this single line.

 

below is the error

Did not get a valid Request object so we ignore processing this transaction.
java.lang.NullPointerException
at bsh.ParseException.getErrorLineNumber(ParseException.java:276)
at bsh.BshScriptEngine.evalSource(BshScriptEngine.java:93)
at bsh.BshScriptEngine.eval(BshScriptEngine.java:61)
at javax.script.AbstractScriptEngine.eval(Unknown Source)
at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:669)
at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:426)
at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:582)
at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:531)
at com.itko.lisa.test.TestExec.executeScript(TestExec.java:1917)
at com.itko.lisa.vse.stateful.protocol.scriptable.ScriptableDataProtocolHandler.updateRequest(ScriptableDataProtocolHandler.java:70)
at com.itko.lisa.vse.stateful.common.DataProtocolStandardControlFilter.subPostFilter(DataProtocolStandardControlFilter.java:229)
at com.itko.lisa.test.FilterBaseImpl.subFilter(FilterBaseImpl.java:148)
at com.itko.lisa.test.FilterBaseImpl.postFilter(FilterBaseImpl.java:122)
at com.itko.lisa.test.TestNode.doFilters(TestNode.java:1464)
at com.itko.lisa.test.TestNode.doPostFilters(TestNode.java:1421)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:995)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1280)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1195)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1180)
at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1048)
at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:68)
at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:961)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Unknown Source)

 

But when i am changing data protocol to Web services(soap) i am getting the response.

 

can someone please tell me what additional thing i need to do to have a valid Request object.

Outcomes