AnsweredAssumed Answered

Error while trying to access java classes in a javascript step

Question asked by cr004d on Dec 7, 2015

Hi I am trying to access java classes in a javascript step in LISA but I'm getting the below error. I guess it has got to do something with jar files can anybody please assist me on this.

 

 

============================================================================
| Error in Script
============================================================================
| Step: Java Script Step
----------------------------------------------------------------------------
| Message: Sourced file: inline evaluation of: ``import java.io.*; import java.util.ArrayList; import java.util.List; l . . . '' : Typed variable declaration : Object constructor
----------------------------------------------------------------------------
| Trapped Exception: Sourced file: inline evaluation of: ``import java.io.*; import java.util.ArrayList; import java.util.List; l . . . '' : Typed variable declaration : Object constructor
| Trapped Message: Sourced file: inline evaluation of: ``import java.io.*; import java.util.ArrayList; import java.util.List; l . . . '' : Typed variable declaration : Object constructor : at Line: 8 : in file: inline evaluation of: ``import java.io.*; import java.util.ArrayList; import java.util.List; l . . . '' : new File ( lisa_vse_rsp )

Target exception: java.lang.NullPointerException

----------------------------------------------------------------------------
STACK TRACE
Sourced file: inline evaluation of: ``import java.io.*; import java.util.ArrayList; import java.util.List; l . . . '' : Typed variable declaration : Object constructor : at Line: 8 : in file: inline evaluation of: ``import java.io.*; import java.util.ArrayList; import java.util.List; l . . . '' : new File ( lisa_vse_rsp )

Target exception: java.lang.NullPointerException

at bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:131)
at bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:114)
at bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHArguments.getArguments(BSHArguments.java:65)
at bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:81)
at bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHArguments.getArguments(BSHArguments.java:65)
at bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:81)
at bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHVariableDeclarator.eval(BSHVariableDeclarator.java:86)
at bsh.BSHTypedVariableDeclaration.eval(BSHTypedVariableDeclaration.java:84)
at bsh.Interpreter.eval(Interpreter.java:645)
at bsh.Interpreter.eval(Interpreter.java:739)
at bsh.Interpreter.eval(Interpreter.java:728)
at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:316)
at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:298)
at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:287)
at com.itko.lisa.test.ScriptNode._execute(ScriptNode.java:126)
at com.itko.lisa.test.ScriptNode.execute(ScriptNode.java:103)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:988)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1156)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1071)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1056)
at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1045)
at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:68)
at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:958)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Unknown Source)
============================================================================

 

Thanks.

Outcomes