{"action":"created","issue":{"url":"https://api.github.com/repos/openhab/openhab/issues/2021","repository_url":"https://api.github.com/repos/openhab/openhab","labels_url":"https://api.github.com/repos/openhab/openhab/issues/2021/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab/issues/2021/comments","events_url":"https://api.github.com/repos/openhab/openhab/issues/2021/events","html_url":"https://github.com/openhab/openhab/issues/2021","id":55139848,"number":2021,"title":"Asterisk binding critical bug","user":{"login":"davidhrbaty","id":8095277,"avatar_url":"https://avatars.githubusercontent.com/u/8095277?v=3","gravatar_id":"","url":"https://api.github.com/users/davidhrbaty","html_url":"https://github.com/davidhrbaty","followers_url":"https://api.github.com/users/davidhrbaty/followers","following_url":"https://api.github.com/users/davidhrbaty/following{/other_user}","gists_url":"https://api.github.com/users/davidhrbaty/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhrbaty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhrbaty/subscriptions","organizations_url":"https://api.github.com/users/davidhrbaty/orgs","repos_url":"https://api.github.com/users/davidhrbaty/repos","events_url":"https://api.github.com/users/davidhrbaty/events{/privacy}","received_events_url":"https://api.github.com/users/davidhrbaty/received_events","type":"User","site_admin":false},"labels":[{"id":82695278,"url":"https://api.github.com/repos/openhab/openhab/labels/awaiting-feedback","name":"awaiting-feedback","color":"fbca04","default":false},{"id":57324897,"url":"https://api.github.com/repos/openhab/openhab/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2015-01-22T10:58:23Z","updated_at":"2016-11-28T08:49:33Z","closed_at":null,"body":"Hello, yesterday I want to add asterisk binding to my openhab server, but I have had problem with null pointer exception.\n\nI can see, that openhab is successfully connected to asterisk:\n\n```\nConnected to Asterisk 1.6.2.9-2+squeeze10 currently running on gw (pid = 750)\nVerbosity is at least 10\ngw*CLI> manager show connected \n  Username         IP Address       Start       Elapsed     FileDes   HttpCnt   Read   Write\n  openhab          10.0.20.18       1421922958  763         11        0         08191  08191\n1 users connected.\ngw*CLI> \n```\n\nBut after starting openhab server I have seen this problem:\n\n```\n11:35:57.429 [DEBUG] [i.internal.GenericItemProvider:334  ] - Start processing binding configuration of Item 'Incoming_Call (Type=SwitchItem, State=Uninitialized)' with 'AsteriskGenericBindingProvider' reader.\n11:35:57.452 [WARN ] [AsteriskGenericBindingProvider:78   ] - bindingConfig is NULL (item=Incoming_Call (Type=SwitchItem, State=Uninitialized)) -> processing bindingConfig aborted!\n11:35:57.466 [DEBUG] [i.internal.GenericItemProvider:334  ] - Start processing binding configuration of Item 'Active_Call (Type=CallItem, State=Uninitialized)' with 'AsteriskGenericBindingProvider' reader.\n11:35:57.477 [WARN ] [AsteriskGenericBindingProvider:78   ] - bindingConfig is NULL (item=Active_Call (Type=CallItem, State=Uninitialized)) -> processing bindingConfig aborted!\n11:35:57.488 [DEBUG] [i.internal.GenericItemProvider:334  ] - Start processing binding configuration of Item 'Active_Call (Type=CallItem, State=Uninitialized)' with 'AsteriskGenericBindingProvider' reader.\n```\n\nI also send my items configuration file:\n\n```\nSwitch Incoming_Call    \"Ringing\"           (Phone)    { asterisk=active }\nCall Active_Call    \"Connected [to %1$s from %2$s]\" (Phone)    { asterisk=active }\nCall Active_Call    \"Connected to [%s]\"     (Phone)    { asterisk=active }\n```\n\nAfter make any change in items file I have had a lot of exceptions in openhab.log:\n\n```\n11:47:58.739 [INFO ] [c.internal.ModelRepositoryImpl:97   ] - Refreshing model 'default.items'\n11:47:58.852 [DEBUG] [i.internal.GenericItemProvider:154  ] - Processing binding configs for items from model 'default.items'\n11:47:58.876 [ERROR] [.o.m.c.i.folder.FolderObserver:105  ] - An unexpected exception has occured\njava.lang.NullPointerException: null\n    at org.openhab.model.item.binding.AbstractGenericBindingProvider.removeConfigurations(AbstractGenericBindingProvider.java:93) ~[na:na]\n    at org.openhab.model.item.internal.GenericItemProvider.processBindingConfigsFromModel(GenericItemProvider.java:164) ~[na:na]\n    at org.openhab.model.item.internal.GenericItemProvider.modelChanged(GenericItemProvider.java:379) ~[na:na]\n    at org.openhab.model.core.internal.ModelRepositoryImpl.notifyListeners(ModelRepositoryImpl.java:158) ~[na:na]\n    at org.openhab.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:99) ~[na:na]\n    at org.openhab.model.core.internal.folder.FolderObserver.checkFolder(FolderObserver.java:142) ~[na:na]\n    at org.openhab.model.core.internal.folder.FolderObserver.run(FolderObserver.java:99) ~[na:na]\n```\n\nSolution for these exceptions are restart openhab server only without binding asterisk.\nThank you for your response.\n## \n"},"comment":{"url":"https://api.github.com/repos/openhab/openhab/issues/comments/263214384","html_url":"https://github.com/openhab/openhab/issues/2021#issuecomment-263214384","issue_url":"https://api.github.com/repos/openhab/openhab/issues/2021","id":263214384,"user":{"login":"udo1toni","id":5974344,"avatar_url":"https://avatars.githubusercontent.com/u/5974344?v=3","gravatar_id":"","url":"https://api.github.com/users/udo1toni","html_url":"https://github.com/udo1toni","followers_url":"https://api.github.com/users/udo1toni/followers","following_url":"https://api.github.com/users/udo1toni/following{/other_user}","gists_url":"https://api.github.com/users/udo1toni/gists{/gist_id}","starred_url":"https://api.github.com/users/udo1toni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/udo1toni/subscriptions","organizations_url":"https://api.github.com/users/udo1toni/orgs","repos_url":"https://api.github.com/users/udo1toni/repos","events_url":"https://api.github.com/users/udo1toni/events{/privacy}","received_events_url":"https://api.github.com/users/udo1toni/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T08:49:33Z","updated_at":"2016-11-28T08:49:33Z","body":"Works as expected :) got the caller id and the called id. Here asterisk 13.6.0 (AMI 2.8.0)"}}
{"actor":{"display_login":"udo1toni"}}