java.lang.NoSuchMethodError: org.json.JSONArray.iterator()Ljava/util/Iterator;

Hot problem!
This exception has a lot of traffic. You can help 12 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by mattijevi
, 10 months ago
org.json.JSONArray.iterator()Ljava/util/Iterator;
java.lang.NoSuchMethodError: org.json.JSONArray.iterator()Ljava/util/Iterator;
at org.everit.json.schema.loader.SchemaLoader.buildEnumSchema(SchemaLoader.java:241)
at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:312)
at org.everit.json.schema.loader.SchemaLoader.loadChild(SchemaLoader.java:397)
at org.everit.json.schema.loader.ObjectSchemaLoader$7.accept(ObjectSchemaLoader.java:109)
at org.everit.json.schema.loader.ObjectSchemaLoader$7.accept(ObjectSchemaLoader.java:106)
at org.everit.json.schema.loader.internal.TypeBasedMultiplexer$IdModifyingTypeConsumerImpl$1.accept(TypeBasedMultiplexer.java:86)
at org.everit.json.schema.loader.internal.TypeBasedMultiplexer$IdModifyingTypeConsumerImpl$1.accept(TypeBasedMultiplexer.java:74)
at org.everit.json.schema.loader.internal.TypeBasedMultiplexer.orElse(TypeBasedMultiplexer.java:251)
at org.everit.json.schema.loader.internal.TypeBasedMultiplexer.requireAny(TypeBasedMultiplexer.java:261)
at org.everit.json.schema.loader.ObjectSchemaLoader.addPropertySchemaDefinition(ObjectSchemaLoader.java:112)
at org.everit.json.schema.loader.ObjectSchemaLoader.populatePropertySchemas(ObjectSchemaLoader.java:98)
at org.everit.json.schema.loader.ObjectSchemaLoader.access$000(ObjectSchemaLoader.java:13)
at org.everit.json.schema.loader.ObjectSchemaLoader$3.accept(ObjectSchemaLoader.java:44)
at org.everit.json.schema.loader.ObjectSchemaLoader$3.accept(ObjectSchemaLoader.java:40)
at org.everit.json.schema.loader.internal.TypeBasedMultiplexer$IdModifyingTypeConsumerImpl$1.accept(TypeBasedMultiplexer.java:86)
at org.everit.json.schema.loader.internal.TypeBasedMultiplexer$IdModifyingTypeConsumerImpl$1.accept(TypeBasedMultiplexer.java:74)
at org.everit.json.schema.loader.internal.TypeBasedMultiplexer.orElse(TypeBasedMultiplexer.java:251)
at org.everit.json.schema.loader.internal.TypeBasedMultiplexer.requireAny(TypeBasedMultiplexer.java:261)
at org.everit.json.schema.loader.ObjectSchemaLoader.load(ObjectSchemaLoader.java:46)
at org.everit.json.schema.loader.SchemaLoader.buildObjectSchema(SchemaLoader.java:369)
at org.everit.json.schema.loader.SchemaLoader.loadForExplicitType(SchemaLoader.java:362)
at org.everit.json.schema.loader.SchemaLoader.loadForType(SchemaLoader.java:380)
at org.everit.json.schema.loader.SchemaLoader$6.get(SchemaLoader.java:321)
at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:315)
at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:182)
at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:167)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.