AnsweredAssumed Answered

| Trapped Exception: org/json/simple/parser/JSONParser | Trapped Message:   java.lang.NoClassDefFoundError: org/json/simple/parser/JSONParser

Question asked by k12345 on Aug 7, 2018
Latest reply on Aug 10, 2018 by MarcyNunns

Hi All,

 

I have created a custom jar file to read json object from json file and delete one of array and update the file. It is running fine when tested using dynamic java test execution step . 

 

p.s - I have tried by exporting java code with referenced libraries and also adding explicilty json jars. but none of the ways are worked.

 

DevTest Version - 10

 

But when using this jar in vsm , getting parser exception error after deploying it on vse.

 

stacktrace

 

============================================================================
| Exception:
============================================================================
| Step: DeleteID2 main
----------------------------------------------------------------------------
| Message: Invocation Exception on Dynamic Call/Ctor java.lang.String delete( java.lang.String[] args )
----------------------------------------------------------------------------
| Trapped Exception: org/json/simple/parser/JSONParser
| Trapped Message: java.lang.NoClassDefFoundError: org/json/simple/parser/JSONParser
----------------------------------------------------------------------------
STACK TRACE
java.lang.NoClassDefFoundError: org/json/simple/parser/JSONParser
at DeleteInteractionID.delete(DeleteInteractionID.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorIm_TRUNCATED_

 

 

Also , a weird behavior is observed. I am able to send the request to virtual service when it is deployed on vse. But when I ran it in ITR no request is captured at listen step and getting 404 not found exception.

 

 

Thanks

Outcomes