title: Json and Java - Circular Reference
body: <p>I'm having and issue with the Circular reference.</p>
  
  <p>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 </p>
  
  <pre><code>java.lang.IllegalStateException: 
      Cannot call sendError() after the response has been committed
  </code></pre>
  
  <p>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.</p>
  
  <p>The controller method header is:</p>
  
  <pre><code>@RequestMapping(value="/list", method=RequestMethod.POST)
  public @ResponseBody eventResponse list(@RequestBody String sessionID) {
  </code></pre>
  
  <p>I'm not doing anything explicite to convert to Json, I'm a newby with this and I think that jackson resolved this automatically.</p>