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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

This means you had a syntax problem in your serialization/deserialization, check the Gson javadoc to check the right syntax: https://goo.gl/g7LnZb

,

Check the Gson javadoc to check the right syntax, or an online json formating tool to debug json errors.

Solutions on the web

via GitHub by JakeWharton
, 1 year ago
An error occurred while executing doInBackground()
via Stack Overflow by Micah Simmons
, 1 year ago
An error occurred while executing doInBackground()
via GitHub by DreierF
, 1 year ago
An error occurred while executing doInBackground()
via GitHub by modekano
, 1 year ago
An error occurred while executing doInBackground()
via GitHub by nursultan0702
, 4 months ago
An error occurred while executing doInBackground()
via GitHub by xang555
, 1 year ago
An error occurred while executing doInBackground()
com.google.gson.stream.MalformedJsonException: Unterminated object at line 2 column 906 path $.scans[13].ssid
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1573)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:495)
at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:418)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:211)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:72)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:117)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:217)
at com.google.gson.Gson.fromJson(Gson.java:814)
at com.google.gson.Gson.fromJson(Gson.java:779)
at com.google.gson.Gson.fromJson(Gson.java:728)
at io.particle.android.sdk.devicesetup.commands.CommandClient.readResponse(CommandClient.java:129)
at io.particle.android.sdk.devicesetup.commands.CommandClient.sendAndMaybeReceive(CommandClient.java:83)
at io.particle.android.sdk.devicesetup.commands.CommandClient.sendCommandAndReturnResponse(CommandClient.java:57)
at io.particle.android.sdk.devicesetup.loaders.ScanApCommandLoader.loadInBackground(ScanApCommandLoader.java:65)
at io.particle.android.sdk.devicesetup.loaders.ScanApCommandLoader.loadInBackground(ScanApCommandLoader.java:26)
at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:296)
at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:54)
at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:42)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)

Users with the same issue

Once, 1 month ago
9 times, 6 months ago
Once, 7 months ago
Once, 1 year ago
6 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.