question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No virtual method toMap()Ljava/util/Map; in class Lorg/json/JSONObject;

See original GitHub issue

I am getting this exception when I am using this library in Android. I am using the following dependency

“com.github.everit-org.json-schema:org.everit.json.schema:1.8.0”

java.lang.NoSuchMethodError: No virtual method toMap()Ljava/util/Map; in class Lorg/json/JSONObject; or its super classes (declaration of 'org.json.JSONObject' appears in /system/framework/core-libart.jar)
at org.everit.json.schema.loader.SchemaLoader$SchemaLoaderBuilder.schemaJson(SchemaLoader.java:175)
at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:250)
at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:236)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
thijsbaarscommented, Jul 26, 2018

I’m using Spring-boot-starter-test and ran into this issue. By adding the JSON exclusion, it replaces that implementation with a json module that works.

<dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-test</artifactId>
           <scope>test</scope>
           <exclusions>
               <exclusion>
                   <groupId>com.vaadin.external.google</groupId>
                   <artifactId>android-json</artifactId>
               </exclusion>
           </exclusions>
       </dependency>
0reactions
erosbcommented, Dec 15, 2018

In the latest release (version 1.10.0) the compatibility with the com.vaadin.external.google:android-json library version has been fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android: Issue using JSON library in pure java package
I've tried importing a very old version of the JSON library incase it is due to some kind of conflict where I am...
Read more >
How to add _geoloc data from Android? - Algolia Community
java.lang.NoSuchMethodError : No virtual method put(Ljava/lang/String;Ljava/util/Map;)Lorg/json/JSONObject; in class. Lorg/json/JSONObject ...
Read more >
Analysis Report - Joe Sandbox
General Information ; Overall analysis duration: 0h 6m 13s ; Hypervisor based Inspection enabled: false ; Report type: full ; Sample file name:...
Read more >
Android Analysis Report re4PfGl5Lc.zip - Joe Sandbox
Source: Lcom/huawei/hms/common/Feature;->toString()Ljava/lang/String;, Method string: "version". Source: Lanet/channel/strategy/a/g;->a(Ljava/util/Map ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found