AnsweredAssumed Answered

"Token Parsing Error: Lexical error" while reading encrypted data

Question asked by Rajarajan.G.Kiruba on Jul 16, 2018
Latest reply on Jul 17, 2018 by Rick.Brown

I am getting the "Token Parsing Error: Lexical error" when trying to access the encrypted data using JSR223 step.

 

Below is the code in JSR223 step.

 

String text = "{{NEW_DDA}}";

return text;

 

============================================================================
| Error in Script
============================================================================
| Step: Execute script (JSR-223)~1
----------------------------------------------------------------------------
| Message: bsh.EvalError: Sourced file: inline evaluation of: ``String text = "eyJhbGciOiJub25lIn0.eyJzdWIiOiIyYmU0NDU5YjQ2YjJkNDRlMGJkZGQ2MjFiN . . . '' Token Parsing Error: Lexical error at line 1, column 203. Encountered: "\r" (13), after : "\"eyJhbGciOiJub25lIn0.eyJzdWIiOiIyYmU0NDU5YjQ2YjJkNDRlMGJkZGQ2MjFiNDFhMDJkYWZhMGUzMjE5MjhhMmE3NjA4ZDkyNDQ1MmFmODg1NDVkIiwiaXNzIjoiY29tLnBuYy5yZXRhaWwuZGVwb3NpdC1hY2NvdW50IiwiZW5jIjp0cnVlfQ.": <at unknown location>
in <unknown file>
----------------------------------------------------------------------------
| Trapped Exception: bsh.EvalError: Sourced file: inline evaluation of: ``String text = "eyJhbGciOiJub25lIn0.eyJzdWIiOiIyYmU0NDU5YjQ2YjJkNDRlMGJkZGQ2MjFiN . . . '' Token Parsing Error: Lexical error at line 1, column 203. Encountered: "\r" (13), after : "\"eyJhbGciOiJub25lIn0.eyJzdWIiOiIyYmU0NDU5YjQ2YjJkNDRlMGJkZGQ2MjFiNDFhMDJkYWZhMGUzMjE5MjhhMmE3NjA4ZDkyNDQ1MmFmODg1NDVkIiwiaXNzIjoiY29tLnBuYy5yZXRhaWwuZGVwb3NpdC1hY2NvdW50IiwiZW5jIjp0cnVlfQ.": <at unknown location>
in <unknown file>
| Trapped Message: javax.script.ScriptException: bsh.EvalError: Sourced file: inline evaluation of: ``String text = "eyJhbGciOiJub25lIn0.eyJzdWIiOiIyYmU0NDU5YjQ2YjJkNDRlMGJkZGQ2MjFiN . . . '' Token Parsing Error: Lexical error at line 1, column 203. Encountered: "\r" (13), after : "\"eyJhbGciOiJub25lIn0.eyJzdWIiOiIyYmU0NDU5YjQ2YjJkNDRlMGJkZGQ2MjFiNDFhMDJkYWZhMGUzMjE5MjhhMmE3NjA4ZDkyNDQ1MmFmODg1NDVkIiwiaXNzIjoiY29tLnBuYy5yZXRhaWwuZGVwb3NpdC1hY2NvdW50IiwiZW5jIjp0cnVlfQ.": <at unknown location>
in <unknown file>
----------------------------------------------------------------------------
STACK TRACE
javax.script.ScriptException: bsh.EvalError: Sourced file: inline evaluation of: ``String text = "eyJhbGciOiJub25lIn0.eyJzdWIiOiIyYmU0NDU5YjQ2YjJkNDRlMGJkZGQ2MjFiN . . . '' Token Parsing Error: Lexical error at line 1, column 203. Encountered: "\r" (13), after : "\"eyJhbGciOiJub25lIn0.eyJzdWIiOiIyYmU0NDU5YjQ2YjJkNDRlMGJkZGQ2MjFiNDFhMDJkYWZhMGUzMjE5MjhhMmE3NjA4ZDkyNDQ1MmFmODg1NDVkIiwiaXNzIjoiY29tLnBuYy5yZXRhaWwuZGVwb3NpdC1hY2NvdW50IiwiZW5jIjp0cnVlfQ.": <at unknown location>
in <unknown file>
at bsh.BshScriptEngine.evalSource(BshScriptEngine.java:102)
at bsh.BshScriptEngine.eval(BshScriptEngine.java:61)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:674)
at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:427)
at com.itko.lisa.test.UserScriptNode._execute(UserScriptNode.java:210)
at com.itko.lisa.test.UserScriptNode.execute(UserScriptNode.java:175)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:984)
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:1085)
at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:72)
at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:992)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Thread.java:745)
============================================================================

Outcomes