java.lang.IllegalArgumentException: a JSON pointer should start with '/' or '#/'

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 wlk
, 1 year ago
java.lang.IllegalArgumentException: a JSON pointer should start with '/' or '#/'
at org.json.JSONPointer.(JSONPointer.java:155)
at org.everit.json.schema.loader.internal.JSONPointer.queryFrom(JSONPointer.java:183)
at org.everit.json.schema.loader.internal.JSONPointer.query(JSONPointer.java:171)
at org.everit.json.schema.loader.SchemaLoader.lookupReference(SchemaLoader.java:578)
at org.everit.json.schema.loader.SchemaLoader.buildSchemaWithoutExplicitType(SchemaLoader.java:435)
at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:517)
at org.everit.json.schema.loader.SchemaLoader.loadChild(SchemaLoader.java:530)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.IntPipeline$4$1.accept(IntPipeline.java:250)
at java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:110)
at java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:693)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at org.everit.json.schema.loader.SchemaLoader.tryCombinedSchema(SchemaLoader.java:640)
at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:514)
at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:223)
at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:206)

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.