Not able to perform json schema validation due to below error, please advise on this? | Rest Assured Training

Rest Assured Training Forum

Not able to perform json schema validation due to below error, please advise on this?

R
Ravibabu Kanaparthi Post on 02/06/2019

erorr:

java.lang.NoClassDefFoundError: com/github/fge/jsonschema/main/JsonSchemaFactory
at io.restassured.module.jsv.JsonSchemaValidatorSettings.<init>(JsonSchemaValidatorSettings.java:58)
at io.restassured.module.jsv.JsonSchemaValidator$JsonSchemaValidatorFactory.createSettings(JsonSchemaValidator.java:277)
at io.restassured.module.jsv.JsonSchemaValidator$JsonSchemaValidatorFactory.create(JsonSchemaValidator.java:289)
at io.restassured.module.jsv.JsonSchemaValidator.matchesJsonSchema(JsonSchemaValidator.java:157)
at asserttionTest.AssertionTest1.extract001(AssertionTest1.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

S
Support Team Reply on 05/06/2019

Can you please send a snapshot of your code and the error for better undestanding

Also, make sure you have added all the required dependencies.

S
Support Team Reply on 05/06/2019

Also, Zip your whole workspace and mail it to us. This will be a more efficient way to track the error

R
Ravibabu Kanaparthi Reply on 05/06/2019

Ok thanks, Not able to add zip file here can you please share your email?

R
Ravibabu Kanaparthi Reply on 05/06/2019

Now jsonschemavlaidation is working after cleaning .m2/repository folder.  thanks

S
Support Team Reply on 06/06/2019

still if there are any doubts, try adding the file here again, or you can mail us the workspace here: info@qtpselenium.com