I'm having and issue with the Circular reference.
I have Rest Webservices which returns objects to the front end, the issue is when I try to return objects that have several references so as the result I get an infinite response, which generate
java.lang.IllegalStateException:
Cannot call sendError() after the response has been committed
The objects are generated automatically by Hibernate Code Generation and I need to have the circular reference in the backend, I've just need to remove it before send the information to the frontend using Jackson.
The controller method header is:
@RequestMapping(value="/list", method=RequestMethod.POST)
public @ResponseBody eventResponse list(@RequestBody String sessionID) {
I'm not doing anything explicite to convert to Json, I'm a newby with this and I think that jackson resolved this automatically.