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


Samebug tips

You try to parse a String that contains non-numeric characters to an int. The string must contain decimal characters only, optionally beginning with a + or - sign.


1 month ago

Solutions on the web

Solution icon of github
via GitHub by yaya2212
, 2 months ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by xabroc
, 1 year ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by 2-4601
, 8 months ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by sarvajeet294
, 3 months ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by viperfx
, 1 year ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by viperfx
, 1 year ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by Cese93
, 1 year ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by naoliv
, 1 year ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by mathisdt
, 1 month ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by TomAtRB
, 1 year ago
An error occurred while executing doInBackground()

Stack trace

java.lang.RuntimeException: An error occurred while executing doInBackground()
	at android.os.AsyncTask$3.done(AsyncTask.java:309)
	at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
	at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
	at java.util.concurrent.FutureTask.run(FutureTask.java:242)
	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
	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)
Caused by: java.lang.NumberFormatException: Invalid int: "simple_response"
	at java.lang.Integer.invalidInt(Integer.java:138)
	at java.lang.Integer.parse(Integer.java:410)
	at java.lang.Integer.parseInt(Integer.java:367)
	at java.lang.Integer.parseInt(Integer.java:334)
	at com.google.gson.JsonPrimitive.getAsInt(JsonPrimitive.java:260)
	at ai.api.GsonFactory$ResponseItemAdapter.deserialize(GsonFactory.java:78)
	at ai.api.GsonFactory$ResponseItemAdapter.deserialize(GsonFactory.java:71)
	at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58)
	at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)
	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:103)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:196)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:103)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:196)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:103)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:196)
	at com.google.gson.Gson.fromJson(Gson.java:810)
	at com.google.gson.Gson.fromJson(Gson.java:775)
	at com.google.gson.Gson.fromJson(Gson.java:724)
	at com.google.gson.Gson.fromJson(Gson.java:696)
	at ai.api.AIDataService.request(AIDataService.java:193)
	at ai.api.AIDataService.request(AIDataService.java:148)
	at ai.api.services.GoogleRecognitionServiceImpl$2.doInBackground(GoogleRecognitionServiceImpl.java:166)
	at ai.api.services.GoogleRecognitionServiceImpl$2.doInBackground(GoogleRecognitionServiceImpl.java:158)
	at android.os.AsyncTask$2.call(AsyncTask.java:295)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 1 week ago
Once, 4 months ago
3 times, 5 months ago
4 times, 7 months ago
4 times, 9 months ago
178 more bugmates