java.lang.RuntimeException: An error occurred while executing doInBackground()

particle.io | 2 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Editing Config

    GitHub | 6 years ago | lmk-chris
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: invalid number or unquoted string near ?{ "colorMember": "G
  2. 0

    Outputting parsed JSON results from Google Custom Search in Java

    Stack Overflow | 3 years ago | gwar666
    com.google.gson.JsonSyntaxException: java.io.EOFException: End of input at line 1 column 2
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Retrofit - removing some invalid characters from response body before parsing it as json

    Stack Overflow | 2 years ago | pomber
    retrofit.RetrofitError: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1
  5. 0

    Reading a JSON reply from WeatherUnderground

    Stack Overflow | 4 years ago | Little Child
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 2

  1. Nikolay Rybak 12 times, last 3 days ago
  2. justCodeit 11 times, last 3 weeks ago
  3. filpgame 4 times, last 1 month ago
  4. Emrah Küçük 9 times, last 3 months ago
  5. linxiaolong 4 times, last 3 months ago
19 more registered users
53 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.google.gson.stream.MalformedJsonException

    Unterminated object at line 2 column 906 path $.scans[13].ssid

    at com.google.gson.stream.JsonReader.syntaxError()
  2. Gson
    Gson.fromJson
    1. com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1573)
    2. com.google.gson.stream.JsonReader.doPeek(JsonReader.java:495)
    3. com.google.gson.stream.JsonReader.hasNext(JsonReader.java:418)
    4. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:211)
    5. com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
    6. com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:72)
    7. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:117)
    8. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:217)
    9. com.google.gson.Gson.fromJson(Gson.java:814)
    10. com.google.gson.Gson.fromJson(Gson.java:779)
    11. com.google.gson.Gson.fromJson(Gson.java:728)
    12. com.google.gson.Gson.fromJson(Gson.java:700)
    12 frames
  3. io.particle.android
    ScanApCommandLoader.loadInBackground
    1. io.particle.android.sdk.devicesetup.commands.CommandClient.readResponse(CommandClient.java:129)
    2. io.particle.android.sdk.devicesetup.commands.CommandClient.sendAndMaybeReceive(CommandClient.java:83)
    3. io.particle.android.sdk.devicesetup.commands.CommandClient.sendCommandAndReturnResponse(CommandClient.java:57)
    4. io.particle.android.sdk.devicesetup.loaders.ScanApCommandLoader.loadInBackground(ScanApCommandLoader.java:65)
    5. io.particle.android.sdk.devicesetup.loaders.ScanApCommandLoader.loadInBackground(ScanApCommandLoader.java:26)
    5 frames
  4. Android Support v4
    ModernAsyncTask$2.call
    1. android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:296)
    2. android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:54)
    3. android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:42)
    4. android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:128)
    4 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    4. java.lang.Thread.run(Thread.java:841)
    4 frames