MRL can't run from eclipse (Expected BEGIN_OBJECT)

Hi, i've just updated MRL forlder from git and eclipse cant' run it . here is the error i get.

12:13:42.552 [main] ERROR class org.myrobotlab.logging.Logging - ------
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 394
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187)
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187)
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
at com.google.gson.Gson.fromJson(Gson.java:803)
at com.google.gson.Gson.fromJson(Gson.java:768)
at com.google.gson.Gson.fromJson(Gson.java:717)
at com.google.gson.Gson.fromJson(Gson.java:689)
at org.myrobotlab.codec.CodecUtils.fromJson(CodecUtils.java:127)
at org.myrobotlab.framework.repo.ServiceData.getLocalInstance(ServiceData.java:83)
at org.myrobotlab.service.Runtime.<init>(Runtime.java:127)
at org.myrobotlab.service.Runtime.getInstance(Runtime.java:599)
at org.myrobotlab.service.Runtime.main(Runtime.java:1202)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 394
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:374)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:165)
... 19 more
 
Is there an error in the sources or must look to my computer side ?
 
thx for your help 
GroG's picture

Hi Beetle ! search for

Hi Beetle !

  • search for files named serviceData.json 
  • delete them all
  • try again
  • let us know if it worked
kwatters's picture

Serialization ...

My guess is you have a .myrobotlab folder in your source that contains stale json files... delete that folder and try again...

beetlejuice's picture

Hi, Thx guys that work !! I

Hi,

Thx guys that work !! I don't know why i didn't thinked to simply delete .myrobotlab !!