Announcement Announcement Module
Collapse
No announcement yet.
RestTemplate on Tomcat 6.0.29 give 505 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
Working...
X