New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoClassDefFoundError: net/minidev/json/writer/JsonReaderI #159
Comments
i have same question. |
@pengboyin Looks like JsonSmart is missing on class path. |
I encountered this error while I was running a junit test. I add json-smart and asm to my pom.xml, then the error dissapeared. <dependency>
<groupId>net.minidev</groupId>
<artifactId>asm</artifactId>
<version>1.0.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
<version>2.2.1</version>
<scope>test</scope>
</dependency> |
But How can I add the json-smart if I just use the jason-path-2.4.0.jar? Thanks a lot. |
I have already figures it out. Yes, when the json-smart, asm and accessors-smart are added. Then the error also disapear. Thanks also. |
I am having similar errors even after adding the above mentioned dependencies to my spring-boot pom file. My app was always working all the sudden I started seeing these error while running my spring boot app from eclipse.
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)
|
I've put together a simple TestNG exercise using JsonPath but it doesn't complete the parsing to get the ReadContext owing to a class its unable to load:
java.lang.NoClassDefFoundError: net/minidev/json/writer/JsonReaderI
at com.jayway.jsonpath.internal.DefaultsImpl.(DefaultsImpl.java:17)
at com.jayway.jsonpath.internal.DefaultsImpl.(DefaultsImpl.java:15)
at com.jayway.jsonpath.Configuration.getEffectiveDefaults(Configuration.java:48)
at com.jayway.jsonpath.Configuration.defaultConfiguration(Configuration.java:173)
at com.jayway.jsonpath.internal.JsonContext.(JsonContext.java:52)
at com.jayway.jsonpath.JsonPath.parse(JsonPath.java:596)
I'm using the suggested reference to 2.1.0 in my pom file.
Any suggestions?
The text was updated successfully, but these errors were encountered: