org.springframework.web.client.RestClientException

Could not extract response: no suitable HttpMessageConverter found for response type [class com.myapp.api.jsonresponse.UserID] and content type [text/html]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web99

Stack trace

  • org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class com.myapp.api.jsonresponse.UserID] and content type [text/html] at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:102) at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:738) at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:723) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:544) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:499) at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:447) at com.myapp.api.UserClient_.getUserId(UserClient_.java:92) at com.myapp.activity.MainActivity.boostrap(MainActivity.java:123) at com.myapp.activity.MainActivity_.access$001(MainActivity_.java:25) at com.myapp.activity.MainActivity_$1.execute(MainActivity_.java:80) at org.androidannotations.api.BackgroundExecutor$Task.run(BackgroundExecutor.java:403) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:154) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269) 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)

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

Михайло ТітовМихайло Тітов
AxeloAxelo
8 times, last one
HronomHronom
5 times, last one
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
22 more bugmates