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

GitHub | wlk | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Unhelpful error message: a JSON pointer should start with '/' or '#/'

    GitHub | 6 months ago | wlk
    java.lang.IllegalArgumentException: a JSON pointer should start with '/' or '#/'

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      a JSON pointer should start with '/' or '#/'

      at org.json.JSONPointer.<init>()
    2. Android Platform
      JSONPointer.<init>
      1. org.json.JSONPointer.<init>(JSONPointer.java:155)
      1 frame
    3. org.everit.json
      SchemaLoader.loadChild
      1. org.everit.json.schema.loader.internal.JSONPointer.queryFrom(JSONPointer.java:183)
      2. org.everit.json.schema.loader.internal.JSONPointer.query(JSONPointer.java:171)
      3. org.everit.json.schema.loader.SchemaLoader.lookupReference(SchemaLoader.java:578)
      4. org.everit.json.schema.loader.SchemaLoader.buildSchemaWithoutExplicitType(SchemaLoader.java:435)
      5. org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:517)
      6. org.everit.json.schema.loader.SchemaLoader.loadChild(SchemaLoader.java:530)
      6 frames
    4. Java RT
      ReferencePipeline.collect
      1. java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      2. java.util.stream.IntPipeline$4$1.accept(IntPipeline.java:250)
      3. java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:110)
      4. java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:693)
      5. java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      6. java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      7. java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      8. java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      9. java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      9 frames
    5. org.everit.json
      SchemaLoader.load
      1. org.everit.json.schema.loader.SchemaLoader.tryCombinedSchema(SchemaLoader.java:640)
      2. org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:514)
      3. org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:223)
      4. org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:206)
      4 frames