AnsweredAssumed Answered

JsonParseException: Unexpected character ('<' (code 60))

Question asked by spkiwi on Jun 5, 2017
Latest reply on Jun 6, 2017 by ANohe-esristaff

Hello everyone. The problem is really strange: when loading layers (ArcGISDynamicMapServiceLayer) on the android app using arcgis, the code throws a JsonParseException (as far as I can see it happens when initializing new ArcGISDynamicMapServiceLayer(map.getMapurl());).

The rest and the url is fine, moreover, the app didn't have such issues before, everything worked well. Did someone somehow deal with this? 

 

06-05 07:27:21.746 24663-25710/nl.proclass.docs2go E/ArcGIS: url =http://api.proclass.nl/arcgis/rest/services/Handmatig_Toegevoegd/Handmatig_Toegevoegd/MapServer
org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@306f27f; line: 1, column: 2]
at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1432)
at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)
at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442)
at org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(ReaderBasedParser.java:1198)
at org.codehaus.jackson.impl.ReaderBasedParser.nextToken(ReaderBasedParser.java:485)
at com.esri.core.internal.io.handler.h.a(SourceFile:206)
at com.esri.core.internal.io.handler.h.a(SourceFile:63)
at com.esri.core.internal.tasks.ags.t.a(SourceFile:39)
at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer.initLayer(SourceFile:280)
at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer$1.run(SourceFile:193)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Outcomes