-
Notifications
You must be signed in to change notification settings - Fork 282
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
Run Time Error in SchemaJson.toMap() #101
Comments
Please check if there is an other dependency in your project which uses an older version of org.json. There was a similar issue recently here: #98 |
It worked. My issue was exactly the same as #98. Thanks |
Similar issue.
The jar:file:/C:/Users/user/.m2/repository/com/vaadin/external/google/android-json/0.0.20131108.vaadin1/android-json-0.0.20131108.vaadin1.jar!/org/json/JSONObject.class comes from Spring Boot 1.5.10. There is no toMap() method. Solution: spring-projects/spring-boot#9248 |
@santpandey How do you solve this problem? |
@zhjobs When I encountered the problem, I made sure that I was using |
@santpandey Brilliant!It did work! Thanks for your answer! |
I am using 1.6.0 version of the jar. I have created a sample schema and when I run my JSON against this schema, I get the following Run Time Exception:
Exception in thread "main" java.lang.NoSuchMethodError: org.json.JSONObject.toMap()Ljava/util/Map;
at org.everit.json.schema.loader.SchemaLoader$SchemaLoaderBuilder.schemaJson(SchemaLoader.java:160)
The text was updated successfully, but these errors were encountered: