Not able to perform json schema validation due to below error, please advise on this? | Rest Assured Forum
R
Ravibabu Kanaparthi Posted 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)


P
priyanka Replied 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.


P
priyanka Replied 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 Replied on 05/06/2019

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


R
Ravibabu Kanaparthi Replied on 05/06/2019

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


P
priyanka Replied 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