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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:266) at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) at java.util.concurrent.FutureTask.setException(FutureTask.java:124) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307) at java.util.concurrent.FutureTask.run(FutureTask.java:137) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1081) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574) at java.lang.Thread.run(Thread.java:1020) Caused by: java.lang.IllegalArgumentException: Invalid amount of variables values in [http://10.0.2.2:8080/AppBackend/service/location/add]: expected 0; got 1 at org.springframework.web.util.UriTemplate.expand(UriTemplate.java:127) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:413) at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:315) at com.be.android.locateconsultants.persistence.AsyncTaskSaveLocation.doInBackground(AsyncTaskSaveLocation.java:59) at com.be.android.locateconsultants.persistence.AsyncTaskSaveLocation.doInBackground(AsyncTaskSaveLocation.java:1) at android.os.AsyncTask$2.call(AsyncTask.java:252) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) ... 4 more
No Bugmate found.