{"action":"created","issue":{"url":"https://api.github.com/repos/airbrake/airbrake/issues/661","repository_url":"https://api.github.com/repos/airbrake/airbrake","labels_url":"https://api.github.com/repos/airbrake/airbrake/issues/661/labels{/name}","comments_url":"https://api.github.com/repos/airbrake/airbrake/issues/661/comments","events_url":"https://api.github.com/repos/airbrake/airbrake/issues/661/events","html_url":"https://github.com/airbrake/airbrake/issues/661","id":205596331,"number":661,"title":"Backtrace for java exceptions. ","user":{"login":"igortwago","id":23337617,"avatar_url":"https://avatars.githubusercontent.com/u/23337617?v=3","gravatar_id":"","url":"https://api.github.com/users/igortwago","html_url":"https://github.com/igortwago","followers_url":"https://api.github.com/users/igortwago/followers","following_url":"https://api.github.com/users/igortwago/following{/other_user}","gists_url":"https://api.github.com/users/igortwago/gists{/gist_id}","starred_url":"https://api.github.com/users/igortwago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igortwago/subscriptions","organizations_url":"https://api.github.com/users/igortwago/orgs","repos_url":"https://api.github.com/users/igortwago/repos","events_url":"https://api.github.com/users/igortwago/events{/privacy}","received_events_url":"https://api.github.com/users/igortwago/received_events","type":"User","site_admin":false},"labels":[{"id":302310593,"url":"https://api.github.com/repos/airbrake/airbrake/labels/Question","name":"Question","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-02-06T14:17:35Z","updated_at":"2017-02-07T09:51:57Z","closed_at":"2017-02-07T09:50:20Z","body":"I am a java developer, and I am using airbrake in a java project. \r\nI don't understand why, but airbrake transforms java stack frames into the format, which is not very useful for java developers. \r\nFor example I have stack frames \r\n```java\r\n[\"java.lang.RuntimeException\",\" \tat TestException.method(TestException.java:19)\",\" \tat TestException.main(TestException.java:25)]\"\r\n```\r\nIn a console or a log file it would look like \r\n```java\r\nException in thread \"main\" java.lang.RuntimeException\r\n\tat TestException.method(TestException.java:19)\r\n\tat TestException.main(TestException.java:25)\r\n```\r\nWhen I have an exception like this one, I can copy it to a java IDE stack trace console and access any code line from this stack trace. \r\n\r\nBut in airbrake backtrace looks like \r\n```java\r\njava.lang.RuntimeException:-1 in java.lang.RuntimeException\r\nTestException.java:19 in \tat TestException.method\r\nTestException.java:25 in \tat TestException.main\r\n```\r\nJava IDEs don't support this format. \r\n"},"comment":{"url":"https://api.github.com/repos/airbrake/airbrake/issues/comments/277950715","html_url":"https://github.com/airbrake/airbrake/issues/661#issuecomment-277950715","issue_url":"https://api.github.com/repos/airbrake/airbrake/issues/661","id":277950715,"user":{"login":"igortwago","id":23337617,"avatar_url":"https://avatars.githubusercontent.com/u/23337617?v=3","gravatar_id":"","url":"https://api.github.com/users/igortwago","html_url":"https://github.com/igortwago","followers_url":"https://api.github.com/users/igortwago/followers","following_url":"https://api.github.com/users/igortwago/following{/other_user}","gists_url":"https://api.github.com/users/igortwago/gists{/gist_id}","starred_url":"https://api.github.com/users/igortwago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igortwago/subscriptions","organizations_url":"https://api.github.com/users/igortwago/orgs","repos_url":"https://api.github.com/users/igortwago/repos","events_url":"https://api.github.com/users/igortwago/events{/privacy}","received_events_url":"https://api.github.com/users/igortwago/received_events","type":"User","site_admin":false},"created_at":"2017-02-07T09:51:57Z","updated_at":"2017-02-07T09:51:57Z","body":"Ok, you are right, the problem is in Java Notifier \r\n```java\r\n\tpublic BacktraceLine(String line) {\r\n\t\tString classAndMethodName = line.replaceAll(\"\\\\(.*\", \"\").replaceAll(\"^at \", \"\");\r\n\r\n\t\tint periodSepIndex = classAndMethodName.lastIndexOf(\".\");\r\n\t\tif (periodSepIndex > 0) {\r\n\t\t\tclassName = classAndMethodName.substring(0, classAndMethodName.lastIndexOf(\".\"));\r\n\t\t} else {\r\n\t\t\tclassName = classAndMethodName;\r\n\t\t}\r\n\t\tfileName = fileName(line);\r\n\t\tlineNumber = lineNumber(line);\r\n\t\tmethodName = methodName(classAndMethodName);\r\n\t}\r\n\r\n```"}}
{"actor":{"display_login":"igortwago"}}