Json-simple-1.1.1.jar file missing causing error: "Class: JSONParser not found in namespace :"
search cancel

Json-simple-1.1.1.jar file missing causing error: "Class: JSONParser not found in namespace :"

book

Article ID: 399118

calendar_today

Updated On: 05-28-2025

Products

Service Virtualization

Issue/Introduction

While testing a VS, found that Json-simple-1.1.1.jar was missing from the <DevTest_Home>/lib/shared and seen the below error.

in inline evaluation of: ``  import com.itko.util.ParameterList; import com.itko.util.Parameter; import org . . . '' at line number 19
javax.script.ScriptException: bsh.EvalError: Sourced file: inline evaluation of: ``  import com.itko.util.ParameterList; import com.itko.util.Parameter; import org . . . '' : Typed variable declaration : Class: JSONParser not found in namespace :

 

As one of our custom script uses it, would like to know if there are any reservation in using/copying this jar or its latest version Json-simple-4.0.1.jar.

When copied the Json-simple-1.1.1.jar, and VS worked in version 10.8.1.

Environment

DevTest 10.8.1 and later.

Cause

This jar was delivered at one time with DevTest 10.7.2 SP3 and not delivered anymore with DevTest 10.8.1 and later.

 

Resolution

Placing the json-simple-1.1.1.jar is in {{LISA_HOME}}\lib\shared folder and restarting the Registry and VSE will resolve the error. Any new services deployed after the restart will pick up that jar as well.