title: ResponseBody as a list of objects - 500 (Internal Server Error)
body: <p>I am trying to get the list of objects from ajax request and getting internal server error. It was working in the morning, but now it doesn't. 
  Ajax request:</p>
  
  <pre><code>$.ajax({
      type : 'get',
      url : 'http://localhost:8080/FootballManager/draft/' + leaguename
              + '/players',
      dataType : "json",
      data : {
          "leaguename" : leaguename
      },
      contentType : "application/json",
      cache : false,
      success : function(data) {
           drawTable(data);   
      },
      error : function(XmlHttpRequest, textStatus, errorThrown) {
          alert("error= " + errorThrown);
      }
  });
  </code></pre>
  
  <p>Spring mvc controller:</p>
  
  <pre><code>    @RequestMapping(value = "{leaguename}/players", method = RequestMethod.GET,headers = "Accept=application/json")
  public @ResponseBody
  List&lt;Players&gt; getPlayers(@RequestParam("leaguename") String leaguename,HttpSession session) {
      try {
          //list of players
          return players;
      } catch (Exception e) {
          LOG.log(Level.SEVERE, "Exception: ", e);
          return null;
      }
  }
  </code></pre>
  
  <hr>
  
  <p>UPD. It's strange, but it works with other's objects list, and it also strange, that if I create all objects manualy (like new Player()) and set the same fields with setters and add all objects in the list, it works, but if I obtain this objects from DB via hibernate, I get this error</p>