-
Jun 26th, 2012, 07:23 AM
#1
RestTemplate on Tomcat 6.0.29 give 505
We have a Spring REST webservice deployed on Tomcat 6.0.29. We are using REST Template to access the REST Service.
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_XML);
HttpMethod httpMethod=(HttpMethod) message.getHeaders().get("httpMethod");
HttpEntity<Object> httpEntity = new HttpEntity<Object>(message.getPayload(), headers);
httpResponse = restTemplate.exchange(uri, httpMethod, httpEntity, PaymentInstrument.class);
We get 505 back from the REST Service sometimes and sometimes we get the valid response back. We checked the Apache JIRA for reported defects and we got this link https://issues.apache.org/bugzilla/s...g.cgi?id=50072.
Based on the suggestion we upgraded to the new version of tomcat 6.0.30. Everything works fine.
We have a fix of moving to 6.0.30, but we really need to know why only using REST Template do we get 505, where else any other clients like SOAP UI, Crome RESTConsole, WizTools REST Client.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules