org.springframework.messaging.MessageHandlingException: HTTP request execution failed for URI [http://localhost:8080/user-service/user/10]; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on DELETE request for "http://localhost:8080/user-service/user/10":HTTP method DELETE doesn't support output; nested exception is java.net.ProtocolException: HTTP method DELETE doesn't support output
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
Solutions on the web
via Spring JIRA by Flik Shen, 2 years ago
via Spring JIRA by Flik Shen, 1 year ago
via Stack Overflow by Deepika Kumar
, 1 year agovia Stack Overflow by constantlearner
, 2 years agovia Stack Overflow by ochi
, 1 year agovia Stack Overflow by constantlearner
, 2 years agojava.net.ProtocolException: HTTP method DELETE doesn't support output
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1081)
at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:82)
at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:596)