{"action":"created","issue":{"url":"https://api.github.com/repos/perwendel/spark/issues/679","repository_url":"https://api.github.com/repos/perwendel/spark","labels_url":"https://api.github.com/repos/perwendel/spark/issues/679/labels{/name}","comments_url":"https://api.github.com/repos/perwendel/spark/issues/679/comments","events_url":"https://api.github.com/repos/perwendel/spark/issues/679/events","html_url":"https://github.com/perwendel/spark/issues/679","id":182751178,"number":679,"title":"Sparkjava 2.5 doesn't print stack trace to the console for 500 Internal ERROR but Sparkjava 2.2 Does!","user":{"login":"SeunMatt","id":17220297,"avatar_url":"https://avatars.githubusercontent.com/u/17220297?v=3","gravatar_id":"","url":"https://api.github.com/users/SeunMatt","html_url":"https://github.com/SeunMatt","followers_url":"https://api.github.com/users/SeunMatt/followers","following_url":"https://api.github.com/users/SeunMatt/following{/other_user}","gists_url":"https://api.github.com/users/SeunMatt/gists{/gist_id}","starred_url":"https://api.github.com/users/SeunMatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeunMatt/subscriptions","organizations_url":"https://api.github.com/users/SeunMatt/orgs","repos_url":"https://api.github.com/users/SeunMatt/repos","events_url":"https://api.github.com/users/SeunMatt/events{/privacy}","received_events_url":"https://api.github.com/users/SeunMatt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-13T10:21:26Z","updated_at":"2016-10-13T18:58:44Z","closed_at":null,"body":"Hello,\r\n Was working on a comprehensive tutorial of using sparkjava for web apps. Then I found out that 500 Internal Errors' stack trace are not printed neither are they logged on the server-side. They don't show up on the console.\r\n\r\nThis code will print stack trace and show 500 Internal error on the Browser:\r\n\r\n~~~Java\r\n//spark version in build.gradle compile 'com.sparkjava:spark-core:2.2'\r\nimport static spark.Spark.*;\r\n\r\npublic class App {\r\n\r\n\tpublic App() {\r\n\t\t\r\n\t     get(\"/\", (req, res) -> {\r\n\t    \tint [] r = {1,2,3};\r\n\t    \t return r[6];\r\n\t     });    \r\n\t}\r\n\r\n\r\n\tpublic static void main(String[] args) {\t\t\r\n\t\tnew App();\r\n\t}\r\n\r\n}\r\n\r\n~~~\r\n\r\n\r\n\r\nBut with spark 2.5 it will not only prints 500 internal error on the browser and no stack trace on the server/console\r\n~~~Java\r\n//spark version in build.gradle compile 'com.sparkjava:spark-core:2.5'\r\nimport static spark.Spark.*;\r\n\r\npublic class App {\r\n\r\n\tpublic App() {\r\n\t\t\r\n\t     get(\"/\", (req, res) -> {\r\n\t    \tint [] r = {1,2,3};\r\n\t    \t return r[6];\r\n\t     });    \r\n\t}\r\n\r\n\r\n\tpublic static void main(String[] args) {\t\t\r\n\t\tnew App();\r\n\t}\r\n\r\n}\r\n~~~\r\n"},"comment":{"url":"https://api.github.com/repos/perwendel/spark/issues/comments/253606321","html_url":"https://github.com/perwendel/spark/issues/679#issuecomment-253606321","issue_url":"https://api.github.com/repos/perwendel/spark/issues/679","id":253606321,"user":{"login":"jakaarl","id":2392827,"avatar_url":"https://avatars.githubusercontent.com/u/2392827?v=3","gravatar_id":"","url":"https://api.github.com/users/jakaarl","html_url":"https://github.com/jakaarl","followers_url":"https://api.github.com/users/jakaarl/followers","following_url":"https://api.github.com/users/jakaarl/following{/other_user}","gists_url":"https://api.github.com/users/jakaarl/gists{/gist_id}","starred_url":"https://api.github.com/users/jakaarl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakaarl/subscriptions","organizations_url":"https://api.github.com/users/jakaarl/orgs","repos_url":"https://api.github.com/users/jakaarl/repos","events_url":"https://api.github.com/users/jakaarl/events{/privacy}","received_events_url":"https://api.github.com/users/jakaarl/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T18:58:44Z","updated_at":"2016-10-13T18:58:44Z","body":"Reproduced on fresh 2.5.2-SNAPSHOT."}}
{"actor":{"display_login":"jakaarl"}}