My rest server is generating response when I called it with rest client software. When I call it with resttemplate
code mentioned above, then server generates response(print logs) but resttemplate
does nothing(no next line executes after call) and prints internal error.
This is the method in my server
@ResponseBody
public ResponseEntity<Map<String, Object>> name(){......
...
return new ResponseEntity<Map<String, Object>>(messagebody, HttpStatus.OK);
}
This is the way I am calling it through restTemplate
ResponseEntity<Map> response1 = restTemplate.getForEntity(finalUrl.toString(), Map.class);