{"action":"created","issue":{"url":"https://api.github.com/repos/openhab/openhab/issues/3922","labels_url":"https://api.github.com/repos/openhab/openhab/issues/3922/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab/issues/3922/comments","events_url":"https://api.github.com/repos/openhab/openhab/issues/3922/events","html_url":"https://github.com/openhab/openhab/issues/3922","id":129984286,"number":3922,"title":"insteonplm binding does not work with openhab2","user":{"login":"jtmoderate876","id":16329872,"avatar_url":"https://avatars.githubusercontent.com/u/16329872?v=3","gravatar_id":"","url":"https://api.github.com/users/jtmoderate876","html_url":"https://github.com/jtmoderate876","followers_url":"https://api.github.com/users/jtmoderate876/followers","following_url":"https://api.github.com/users/jtmoderate876/following{/other_user}","gists_url":"https://api.github.com/users/jtmoderate876/gists{/gist_id}","starred_url":"https://api.github.com/users/jtmoderate876/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtmoderate876/subscriptions","organizations_url":"https://api.github.com/users/jtmoderate876/orgs","repos_url":"https://api.github.com/users/jtmoderate876/repos","events_url":"https://api.github.com/users/jtmoderate876/events{/privacy}","received_events_url":"https://api.github.com/users/jtmoderate876/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openhab/openhab/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/openhab/openhab/labels/openHAB2","name":"openHAB2","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-30T13:13:24Z","updated_at":"2016-01-30T18:35:46Z","closed_at":null,"body":"I've got OH2b1 build #106 (2016.01.27) working with ecobee and a few things but...\r\n\r\nI get the following error for the insteonplm binding after a couple minutes which worries me that the new, more rigorous requirements of eclipse or whatever means it needs to be patched/fixed.\r\n\r\nException in thread \"Thread-36\" java.lang.NoSuchMethodError: org.apache.http.impl.client.DefaultHttpClient.execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/client/methods/CloseableHttpResponse;\r\n\tat org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.getURL(HubIOStream.java:213)\r\n\tat org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.bufferStatus(HubIOStream.java:108)\r\n\tat org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.poll(HubIOStream.java:156)\r\n\tat org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.run(HubIOStream.java:226)\r\n\tat java.lang.Thread.run(Thread.java:744)\r\nException in thread \"/hub2/Mirabell:BAxfhx6l@192.168.1.120:25105,poll_time=1000 Writer\" java.lang.NoSuchMethodError: org.apache.http.impl.client.DefaultHttpClient.execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/client/methods/CloseableHttpResponse;\r\n\tat org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.getURL(HubIOStream.java:213)\r\n\tat org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.bufferStatus(HubIOStream.java:108)\r\n\tat org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.poll(HubIOStream.java:156)\r\n\tat org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.write(HubIOStream.java:139)\r\n\tat org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream$HubOutputStream.flushBuffer(HubIOStream.java:308)\r\n\tat org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream$HubOutputStream.write(HubIOStream.java:302)\r\n\tat java.io.OutputStream.write(OutputStream.java:75)\r\n\tat org.openhab.binding.insteonplm.internal.driver.IOStream.write(IOStream.java:68)\r\n\tat org.openhab.binding.insteonplm.internal.driver.Port$IOStreamWriter.run(Port.java:421)\r\n\tat java.lang.Thread.run(Thread.java:744)\r\n\r\nwatoumaintainer14h 1 \r\njtmoderate876:\r\nException in thread \"Thread-36\" java.lang.NoSuchMethodError: org.apache.http.impl.client.DefaultHttpClient.execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/client/methods/CloseableHttpResponse;\r\n\tat org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.getURL(HubIOStream.java:213)\r\n\r\nIn the IDE, the call to execute shows this warning:\r\n\r\nDiscouraged access: The method 'CloseableHttpClient.execute(HttpUriRequest)' is not API (restriction on required library '[...]/openhab/ws/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.apache.httpcomponents.httpclient_4.3.6.v201411290715.jar')\r\nThe package org.apache.http.impl.client is marked \"x-internal:=true\" in MANIFEST.MF, and the IDE marks the Apache HTTP classes used as deprecated.\r\n\r\nI think code changes are needed to the InsteonPLM binding so it uses different HTTP classes that are supported in both OH1 and OH2.\r\n\r\n\r\nSee:\r\nhttps://community.openhab.org/t/insteonplm-in-oh2-and-some-ui-in-oh2/3905/5\r\n"},"comment":{"url":"https://api.github.com/repos/openhab/openhab/issues/comments/177268722","html_url":"https://github.com/openhab/openhab/issues/3922#issuecomment-177268722","issue_url":"https://api.github.com/repos/openhab/openhab/issues/3922","id":177268722,"user":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T18:35:46Z","updated_at":"2016-01-30T18:35:46Z","body":"> but that class is in the same package org.apache.http.impl.client as DefaultHttpClient\r\n\r\nGood point, I didn't notice that.\r\n\r\n> Karaf would otherwise load deprecated classes, right?\r\n\r\nRight.\r\n\r\nBut there must be some good reason why the bundle declares the package to be internal - this is clearly a sign that it must not be used and there should be an official alternative...?"}}