Hai Guys,
can anyone pls help me how to resolve it. getting error like this
============================================================================
| Error in Script
============================================================================
| Step: Execute script (JSR-223)
----------------------------------------------------------------------------
| Message: bsh.TargetError: Sourced file: inline evaluation of: ``import java.util.regex.*; String accountNumber = testExec.getStateValue(" . . . '' : Typed variable declaration : at Line: 5 : in file: inline evaluation of: ``import java.util.regex.*; String accountNumber = testExec.getStateValue(" . . . '' : .toString ( )
Target exception: java.lang.NullPointerException: Attempt to invoke method toString on null value
Target exception: java.lang.NullPointerException: Attempt to invoke method toString on null value
in inline evaluation of: ``import java.util.regex.*; String accountNumber = testExec.getStateValue(" . . . '' at line number 5
----------------------------------------------------------------------------
| Trapped Exception: bsh.TargetError: Sourced file: inline evaluation of: ``import java.util.regex.*; String accountNumber = testExec.getStateValue(" . . . '' : Typed variable declaration : at Line: 5 : in file: inline evaluation of: ``import java.util.regex.*; String accountNumber = testExec.getStateValue(" . . . '' : .toString ( )
Target exception: java.lang.NullPointerException: Attempt to invoke method toString on null value
Target exception: java.lang.NullPointerException: Attempt to invoke method toString on null value
in inline evaluation of: ``import java.util.regex.*; String accountNumber = testExec.getStateValue(" . . . '' at line number 5
| Trapped Message: javax.script.ScriptException: bsh.TargetError: Sourced file: inline evaluation of: ``import java.util.regex.*; String accountNumber = testExec.getStateValue(" . . . '' : Typed variable declaration : at Line: 5 : in file: inline evaluation of: ``import java.util.regex.*; String accountNumber = testExec.getStateValue(" . . . '' : .toString ( )
Target exception: java.lang.NullPointerException: Attempt to invoke method toString on null value
Target exception: java.lang.NullPointerException: Attempt to invoke method toString on null value
in inline evaluation of: ``import java.util.regex.*; String accountNumber = testExec.getStateValue(" . . . '' at line number 5
----------------------------------------------------------------------------
STACK TRACE
javax.script.ScriptException: bsh.TargetError: Sourced file: inline evaluation of: ``import java.util.regex.*; String accountNumber = testExec.getStateValue(" . . . '' : Typed variable declaration : at Line: 5 : in file: inline evaluation of: ``import java.util.regex.*; String accountNumber = testExec.getStateValue(" . . . '' : .toString ( )
Target exception: java.lang.NullPointerException: Attempt to invoke method toString on null value
Target exception: java.lang.NullPointerException: Attempt to invoke method toString on null value
in inline evaluation of: ``import java.util.regex.*; String accountNumber = testExec.getStateValue(" . . . '' at line number 5
at bsh.BshScriptEngine.evalSource(BshScriptEngine.java:97)
at bsh.BshScriptEngine.eval(BshScriptEngine.java:61)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:673)
at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:426)
at com.itko.lisa.test.UserScriptNode._execute(UserScriptNode.java:200)
at com.itko.lisa.test.UserScriptNode.execute(UserScriptNode.java:170)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:995)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1297)
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:1123)
at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:73)
at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:1022)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:195)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException: Attempt to invoke method toString on null value
at bsh.Reflect.resolveExpectedJavaMethod(Reflect.java:382)
at bsh.Reflect.invokeObjectMethod(Reflect.java:91)
at bsh.BSHPrimarySuffix.doName(BSHPrimarySuffix.java:168)
at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:112)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:72)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:39)
at bsh.BSHVariableDeclarator.eval(BSHVariableDeclarator.java:78)
at bsh.BSHTypedVariableDeclaration.eval(BSHTypedVariableDeclaration.java:76)
at bsh.Interpreter.eval(Interpreter.java:673)
at bsh.Interpreter.eval(Interpreter.java:764)
at bsh.Interpreter.eval(Interpreter.java:753)
at bsh.BshScriptEngine.evalSource(BshScriptEngine.java:89)
... 15 more
============================================================================