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

  1. ,

    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.

  2. ,

    Can occur when you try to convert a String to a numeric value but the String is not well formatted for the conversion.

Solutions on the web

via Coderanch by simone giusti, 1 year ago
An error occurred while executing doInBackground()
via GitHub by billmeek
, 1 year ago
An error occurred while executing doInBackground()
via GitHub by Neamar
, 1 year ago
An error occurred while executing doInBackground()
via GitHub by sarvajeet294
, 9 months ago
An error occurred while executing doInBackground()
via GitHub by AndroidDeveloperLB
, 2 months ago
An error occurred while executing doInBackground()
via GitHub by Madis0
, 10 months ago
An error occurred while executing doInBackground()
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)