title: AJAX call throws 500 error on server, but works at local
body: <p>I have a Spring Boot application, and I use AJAX call somewhere in it. It works everything fine locally, but when I deploy it on server, it throws error 500 on ajax call without any additional information. I cannot check server logs, Kibana also empty. Notes: CORS enabled in app, server: JBoss Web/3.0.0-CR2</p>
  <p>Part of JavaScript with AJAX call</p>
  <pre><code>    $('#myTable3').DataTable({
          lengthMenu: [ [ 3, 5, 10, 25, 50, -1 ], [ 3, 5, 10, 25, 50, &quot;All&quot; ] ],
          ajax: {
              type: &quot;GET&quot;,
              url: &quot;/*******/comparision-result/search-edm&quot; + &quot;?&quot; + params,
              cache: false,
              timeout: 600000,
              dataSrc: '',
              error: function(xhr, status, error) {
                  var err = eval(&quot;(&quot; + xhr.responseText + &quot;)&quot;);
                  console.log(error);
                  console.log(err.Message);
              }
          }
      });
  </code></pre>
  <p>Part of java controller method:</p>
  <pre><code>@RequestMapping(value = &quot;/comparision-result/search-edm&quot;, method = RequestMethod.GET)
      @CrossOrigin
      public @ResponseBody
      Object[] getSearchResultForComparisionEdm(@RequestParam(&quot;hours&quot;) String hours, @RequestParam(&quot;pattern&quot;) String pattern, HttpSession session) {
  </code></pre>
  <p>Please figure out what is the issue.</p>