title: JSON response giving Http 500 internal server error
body: <p>I am getting Internal Error when trying to make an ajax POST Call which returns JSON.
  The ajax call is made from JS page:</p>
  <pre><code>$.post(
      'FilterAsJson',
      $(formWithReportData).serialize(),
      function(data){funtion_body}
  );
  </code></pre>
  <p>This is my Spring MVC calling method:</p>
  <pre><code>@RequestMapping(value = &quot;/Reporting/FilterAsJson&quot;, method = RequestMethod.POST)
  public @ResponseBody PagedQueryResult&lt;GetEntitlementOverviewReportResult&gt; filterAsJson(@ModelAttribute GetEntitleReportQuery query, HttpSession session)    
  {
      getEntitlementOverviewFromSession(session).updateFromQuery(query, session);
      return queryDispatcher.dispatch(query);
  }
  </code></pre>
  <p>The issue comes where I am setting only few fields in this class <code>GetEntitlementOverviewReportResult</code>(17 out of 30). This is a bean class with simple setter getters. If I set all the 30 fields it works fine.
  Can you suggest how the JSON response is set so I can rectify this issue.</p>