{"action":"created","issue":{"url":"https://api.github.com/repos/OpenHFT/Java-Thread-Affinity/issues/25","labels_url":"https://api.github.com/repos/OpenHFT/Java-Thread-Affinity/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/OpenHFT/Java-Thread-Affinity/issues/25/comments","events_url":"https://api.github.com/repos/OpenHFT/Java-Thread-Affinity/issues/25/events","html_url":"https://github.com/OpenHFT/Java-Thread-Affinity/issues/25","id":124090034,"number":25,"title":"Java Thread Affinity exception for Mac OS X (ExceptionInInitializerError)","user":{"login":"cballock","id":1802608,"avatar_url":"https://avatars.githubusercontent.com/u/1802608?v=3","gravatar_id":"","url":"https://api.github.com/users/cballock","html_url":"https://github.com/cballock","followers_url":"https://api.github.com/users/cballock/followers","following_url":"https://api.github.com/users/cballock/following{/other_user}","gists_url":"https://api.github.com/users/cballock/gists{/gist_id}","starred_url":"https://api.github.com/users/cballock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cballock/subscriptions","organizations_url":"https://api.github.com/users/cballock/orgs","repos_url":"https://api.github.com/users/cballock/repos","events_url":"https://api.github.com/users/cballock/events{/privacy}","received_events_url":"https://api.github.com/users/cballock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-28T16:47:38Z","updated_at":"2015-12-29T06:59:30Z","closed_at":null,"body":"Hi, Peter. I am experiencing an exception when trying to use Java Thread Affinity in my Mac OS X (stack below):\r\n\r\nException in thread \"main\" java.lang.ExceptionInInitializerError\r\n\tat Main.recursion(Main.java:46)\r\n\tat Main.main(Main.java:23)\r\nCaused by: java.lang.NullPointerException\r\n\tat java.util.BitSet.and(BitSet.java:916)\r\n\tat net.openhft.affinity.AffinityLock.getReservedAffinity0(AffinityLock.java:113)\r\n\tat net.openhft.affinity.AffinityLock.<clinit>(AffinityLock.java:46)\r\n\t... 2 more \r\n\r\nDebugging your code I have noticed that the method getAffinity() in class OSXJNAAffinity always return null and that is what is causing that exception. Please, can you confirm that? If so, how can I use your library in Mac?\r\n\r\nThank you.\r\n\r\nMy environment:\r\n- Affinity version: 3.0; \r\n- SO: Mac OS X Yosemite;\r\n-  Java version: 1.8.0_65;"},"comment":{"url":"https://api.github.com/repos/OpenHFT/Java-Thread-Affinity/issues/comments/167735043","html_url":"https://github.com/OpenHFT/Java-Thread-Affinity/issues/25#issuecomment-167735043","issue_url":"https://api.github.com/repos/OpenHFT/Java-Thread-Affinity/issues/25","id":167735043,"user":{"login":"lburgazzoli","id":1868933,"avatar_url":"https://avatars.githubusercontent.com/u/1868933?v=3","gravatar_id":"","url":"https://api.github.com/users/lburgazzoli","html_url":"https://github.com/lburgazzoli","followers_url":"https://api.github.com/users/lburgazzoli/followers","following_url":"https://api.github.com/users/lburgazzoli/following{/other_user}","gists_url":"https://api.github.com/users/lburgazzoli/gists{/gist_id}","starred_url":"https://api.github.com/users/lburgazzoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lburgazzoli/subscriptions","organizations_url":"https://api.github.com/users/lburgazzoli/orgs","repos_url":"https://api.github.com/users/lburgazzoli/repos","events_url":"https://api.github.com/users/lburgazzoli/events{/privacy}","received_events_url":"https://api.github.com/users/lburgazzoli/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T06:59:30Z","updated_at":"2015-12-29T06:59:30Z","body":"Latest 3.0.1-SNAPSHOT ?"}}