JsonParseException while synching local geodatabase with server

2285
1
09-14-2015 12:30 PM
ehsanrashidi1
New Contributor

Hi

At the moment I’m developing an Android mobile application using esri android sdk which is intended to work offline.

This app consumes some services which are exposed by arcgis server, such as feature service and also map service.

The point is that I have faced a problem with the synchronization process.

Whenever I try to synch my local geodatabase with the server, I get this exception:

09-15 00:20:27.978: W/System.err(7664): org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

09-15 00:20:27.980: W/System.err(7664):  at [Source: java.io.StringReader@10053999; line: 3, column: 2]

09-15 00:20:28.031: W/System.err(7664): at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1433) 09-15 00:20:28.031: W/System.err(7664): at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)

09-15 00:20:28.031: W/System.err(7664): at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442)

09-15 00:20:28.031: W/System.err(7664): at org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(ReaderBasedParser.java:1198)

09-15 00:20:28.032: W/System.err(7664): at org.codehaus.jackson.impl.ReaderBasedParser.nextToken(ReaderBasedParser.java:485)

09-15 00:20:28.032: W/System.err(7664): at com.esri.core.internal.io.handler.h.a(SourceFile:315)

09-15 00:20:28.032: W/System.err(7664): at com.esri.core.internal.tasks.ags.aq.a(SourceFile:129)

09-15 00:20:28.032: W/System.err(7664): at com.esri.core.internal.tasks.ags.aq.a(SourceFile:56)

09-15 00:20:28.032: W/System.err(7664): at com.esri.core.internal.tasks.ags.aq.execute(SourceFile:35)

09-15 00:20:28.032: W/System.err(7664): at com.esri.core.internal.tasks.a.call(SourceFile:88) 09-15

00:20:28.033: W/System.err(7664): at com.esri.core.tasks.geodatabase.GeodatabaseSyncTask.submitUploadForSyncJobInternal(SourceFile:695)

09-15 00:20:28.033: W/System.err(7664): at com.esri.core.tasks.geodatabase.GeodatabaseSyncTask.access$1000(SourceFile:60)

09-15 00:20:28.033: W/System.err(7664): at com.esri.core.tasks.geodatabase.GeodatabaseSyncTask$2.call(SourceFile:292)

09-15 00:20:28.033: W/System.err(7664): at com.esri.core.tasks.geodatabase.GeodatabaseSyncTask$2.call(SourceFile:260)

09-15 00:20:28.033: W/System.err(7664): at java.util.concurrent.FutureTask.run(FutureTask.java:237)

09-15 00:20:28.034: W/System.err(7664): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)

09-15 00:20:28.034: W/System.err(7664): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)

09-15 00:20:28.034: W/System.err(7664): at java.lang.Thread.run(Thread.java:818)

One thing that I have to mention is that, the app works properly in the online mode.I mean I'm able to edit the data and commit it to the server in online mode without any problem.

Any help is highly appreciated.

0 Kudos
1 Reply
MengyiGuo
Occasional Contributor

Hi Ehsan,

How did you get the local geodatabase file? Is it created by ArcMap? downloaded from the service within your app? or you downloaded the .geodatabasefile from the service and put it into your phone?