{"action":"closed","issue":{"url":"https://api.github.com/repos/jbachorik/btrace/issues/125","labels_url":"https://api.github.com/repos/jbachorik/btrace/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/jbachorik/btrace/issues/125/comments","events_url":"https://api.github.com/repos/jbachorik/btrace/issues/125/events","html_url":"https://github.com/jbachorik/btrace/issues/125","id":88239579,"number":125,"title":"Running on OS X with Java 1.8","user":{"login":"oschrenk","id":52898,"avatar_url":"https://avatars.githubusercontent.com/u/52898?v=3","gravatar_id":"","url":"https://api.github.com/users/oschrenk","html_url":"https://github.com/oschrenk","followers_url":"https://api.github.com/users/oschrenk/followers","following_url":"https://api.github.com/users/oschrenk/following{/other_user}","gists_url":"https://api.github.com/users/oschrenk/gists{/gist_id}","starred_url":"https://api.github.com/users/oschrenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oschrenk/subscriptions","organizations_url":"https://api.github.com/users/oschrenk/orgs","repos_url":"https://api.github.com/users/oschrenk/repos","events_url":"https://api.github.com/users/oschrenk/events{/privacy}","received_events_url":"https://api.github.com/users/oschrenk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jbachorik/btrace/labels/regression","name":"regression","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"jbachorik","id":738413,"avatar_url":"https://avatars.githubusercontent.com/u/738413?v=3","gravatar_id":"","url":"https://api.github.com/users/jbachorik","html_url":"https://github.com/jbachorik","followers_url":"https://api.github.com/users/jbachorik/followers","following_url":"https://api.github.com/users/jbachorik/following{/other_user}","gists_url":"https://api.github.com/users/jbachorik/gists{/gist_id}","starred_url":"https://api.github.com/users/jbachorik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbachorik/subscriptions","organizations_url":"https://api.github.com/users/jbachorik/orgs","repos_url":"https://api.github.com/users/jbachorik/repos","events_url":"https://api.github.com/users/jbachorik/events{/privacy}","received_events_url":"https://api.github.com/users/jbachorik/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-06-14T20:02:11Z","updated_at":"2015-06-15T18:35:07Z","closed_at":"2015-06-15T18:35:07Z","body":"I have some troubles running btrace on OS X with Java 1.8.05.\r\n\r\nInitially it has some trouble finding the correct libraries but I made some progress on [my branch](https://github.com/oschrenk/btrace) to overcome those classpath issues but now I'm stuck with a `NullPointerException` within btrace being unable to get its runtime.\r\n\r\n```\r\ngit clone git@github.com:oschrenk/btrace.git\r\ncd btrace\r\ngit checkout jdk-1.7-osx\r\n./gradlew build\r\n./gradlew buildDistributions\r\ncd build/distributions/\r\nunzip btrace-bin-1.4-SNAPSHOT.zip\r\ncd bin\r\nwget https://raw.githubusercontent.com/jbachorik/btrace/master/samples/JStack.java\r\n# start a java process and get its pid\r\n./btrace <pid> JStack.java\r\n\r\n> objc[19962]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.\r\ncurrent: null\r\njava.lang.NullPointerException\r\n        at com.sun.btrace.BTraceRuntime.stackTraceAll(BTraceRuntime.java:1344)\r\n        at com.sun.btrace.BTraceUtils$Threads.jstackAll(BTraceUtils.java:3300)\r\n        at com.sun.btrace.BTraceUtils$Threads.jstackAll(BTraceUtils.java:3285)\r\n        at com.sun.btrace.samples.JStack.<clinit>(Unknown Source)\r\n        at sun.misc.Unsafe.ensureClassInitialized(Native Method)\r\n        at com.sun.btrace.BTraceRuntime.defineClassImpl(BTraceRuntime.java:2289)\r\n        at com.sun.btrace.BTraceRuntime.defineClass(BTraceRuntime.java:444)\r\n        at com.sun.btrace.agent.Client.loadClass(Client.java:287)\r\n        at com.sun.btrace.agent.RemoteClient.<init>(RemoteClient.java:59)\r\n        at com.sun.btrace.agent.Main.startServer(Main.java:405)\r\n        at com.sun.btrace.agent.Main.access$000(Main.java:65)\r\n        at com.sun.btrace.agent.Main$3.run(Main.java:168)\r\n```\r\n\r\n`current: null` is from a `println` statement I added. Can you help?"}}