{"action":"created","issue":{"url":"https://api.github.com/repos/whizzosoftware/WZWave/issues/2","repository_url":"https://api.github.com/repos/whizzosoftware/WZWave","labels_url":"https://api.github.com/repos/whizzosoftware/WZWave/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/whizzosoftware/WZWave/issues/2/comments","events_url":"https://api.github.com/repos/whizzosoftware/WZWave/issues/2/events","html_url":"https://github.com/whizzosoftware/WZWave/issues/2","id":171092183,"number":2,"title":"Problem running Example Client code","user":{"login":"trycoon","id":3145330,"avatar_url":"https://avatars.githubusercontent.com/u/3145330?v=3","gravatar_id":"","url":"https://api.github.com/users/trycoon","html_url":"https://github.com/trycoon","followers_url":"https://api.github.com/users/trycoon/followers","following_url":"https://api.github.com/users/trycoon/following{/other_user}","gists_url":"https://api.github.com/users/trycoon/gists{/gist_id}","starred_url":"https://api.github.com/users/trycoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trycoon/subscriptions","organizations_url":"https://api.github.com/users/trycoon/orgs","repos_url":"https://api.github.com/users/trycoon/repos","events_url":"https://api.github.com/users/trycoon/events{/privacy}","received_events_url":"https://api.github.com/users/trycoon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-15T01:05:19Z","updated_at":"2016-08-16T10:43:29Z","closed_at":"2016-08-15T22:31:30Z","body":"I'm having problem with running the Example code of WZWave. I'm running WZWave (0.0.4, commit 5f9e38160ccc9c39acace864868d27ac95c0d5c7) on Ubuntu 16.04.1 LTS using Java 1.8.0_101-b13. My controller is a ZME-UZB1 (https://www.z-wave.me/index.php?id=28).\r\n\r\nThe code I'm running looks like this:\r\n```\r\npackage com.test;\r\nimport com.whizzosoftware.wzwave.controller.ZWaveController;\r\nimport com.whizzosoftware.wzwave.controller.ZWaveControllerListener;\r\nimport com.whizzosoftware.wzwave.controller.netty.NettyZWaveController;\r\nimport com.whizzosoftware.wzwave.node.ZWaveEndpoint;\r\n\r\npublic class WZWaveTest implements ZWaveControllerListener {\r\n   private ZWaveController controller;\r\n   public WZWaveTest() {\r\n      controller = new NettyZWaveController(\"/dev/ttyACM0\");\r\n      controller.setListener(this);\r\n      controller.start();\r\n   }\r\n   public void onZWaveNodeAdded(ZWaveEndpoint node) {\r\n      System.out.println(\"Z-Wave node added: \" + node.getNodeId());\r\n   }\r\n   public void onZWaveNodeUpdated(ZWaveEndpoint node) {\r\n      System.out.println(\"Z-Wave node updated: \" + node.getNodeId());\r\n   }\r\n   public void onZWaveConnectionFailure(Throwable t) {\r\n      System.out.println(\"Something bad happened: \" + t);\r\n   }\r\n   public static void main(String[] args) {\r\n      new WZWaveTest();\r\n   }\r\n    public void onZWaveControllerInfo(String libraryVersion, Integer homeId, Byte nodeId) {\r\n         System.out.println(String.format(\"ControllerInfo received: libraryVersion=%s, homeId=%d, nodeId=%d\", libraryVersion, homeId, nodeId));\r\n    }\r\n}\r\n```\r\n\r\nI'm inserting my Z-Wave controller in the USB-port, starts up NetBeans, and then run the program. The result is in the first stacktrace-file provided.\r\n[stackdump1.txt](https://github.com/whizzosoftware/WZWave/files/417381/stackdump1.txt)\r\n\r\nI don't know why I get those NPE(NullPointerExeption), maybe the controller have not had enought time to start up correctly? Because when I rerun my program I get other errors.\r\n\r\n[stackdump2.txt](https://github.com/whizzosoftware/WZWave/files/417383/stackdump2.txt)\r\n\r\nI don't know if its some kind of timing problem, because I get different stacktraces every time I rerun the program. The datastream may be out of sync somehow?\r\n\r\n[stackdump3.txt](https://github.com/whizzosoftware/WZWave/files/417385/stackdump3.txt)\r\n\r\nIn this run I get several onZWaveControllerInfo-events in a row, I don't know if thats to expect?\r\n[stackdump4.txt](https://github.com/whizzosoftware/WZWave/files/417408/stackdump4.txt)\r\n\r\nAny suggestions on how to progress? Should I enable some additional logging? I know Z-Wave and WZWave so little I don't even know where to start. :-)\r\n\r\nThanks for any replies!\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/whizzosoftware/WZWave/issues/comments/240067855","html_url":"https://github.com/whizzosoftware/WZWave/issues/2#issuecomment-240067855","issue_url":"https://api.github.com/repos/whizzosoftware/WZWave/issues/2","id":240067855,"user":{"login":"trycoon","id":3145330,"avatar_url":"https://avatars.githubusercontent.com/u/3145330?v=3","gravatar_id":"","url":"https://api.github.com/users/trycoon","html_url":"https://github.com/trycoon","followers_url":"https://api.github.com/users/trycoon/followers","following_url":"https://api.github.com/users/trycoon/following{/other_user}","gists_url":"https://api.github.com/users/trycoon/gists{/gist_id}","starred_url":"https://api.github.com/users/trycoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trycoon/subscriptions","organizations_url":"https://api.github.com/users/trycoon/orgs","repos_url":"https://api.github.com/users/trycoon/repos","events_url":"https://api.github.com/users/trycoon/events{/privacy}","received_events_url":"https://api.github.com/users/trycoon/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T10:43:29Z","updated_at":"2016-08-16T10:43:29Z","body":"I don't think they have been added in the past, these are brand new devices for me. And I have never had a working Z-Wave network in my home or used any other softwares with my controller. Maybe they have demo the controller in the store? Anyway that is not important now, I'm just glad its working."}}
{"actor":{"display_login":"trycoon"}}