{"action":"created","issue":{"url":"https://api.github.com/repos/openhab/openhab/issues/3922","repository_url":"https://api.github.com/repos/openhab/openhab","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":{"login":"watou","id":3008217,"avatar_url":"https://avatars.githubusercontent.com/u/3008217?v=3","gravatar_id":"","url":"https://api.github.com/users/watou","html_url":"https://github.com/watou","followers_url":"https://api.github.com/users/watou/followers","following_url":"https://api.github.com/users/watou/following{/other_user}","gists_url":"https://api.github.com/users/watou/gists{/gist_id}","starred_url":"https://api.github.com/users/watou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watou/subscriptions","organizations_url":"https://api.github.com/users/watou/orgs","repos_url":"https://api.github.com/users/watou/repos","events_url":"https://api.github.com/users/watou/events{/privacy}","received_events_url":"https://api.github.com/users/watou/received_events","type":"User","site_admin":false},"assignees":[{"login":"watou","id":3008217,"avatar_url":"https://avatars.githubusercontent.com/u/3008217?v=3","gravatar_id":"","url":"https://api.github.com/users/watou","html_url":"https://github.com/watou","followers_url":"https://api.github.com/users/watou/followers","following_url":"https://api.github.com/users/watou/following{/other_user}","gists_url":"https://api.github.com/users/watou/gists{/gist_id}","starred_url":"https://api.github.com/users/watou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watou/subscriptions","organizations_url":"https://api.github.com/users/watou/orgs","repos_url":"https://api.github.com/users/watou/repos","events_url":"https://api.github.com/users/watou/events{/privacy}","received_events_url":"https://api.github.com/users/watou/received_events","type":"User","site_admin":false}],"milestone":null,"comments":20,"created_at":"2016-01-30T13:13:24Z","updated_at":"2016-09-23T23:27:06Z","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/249325078","html_url":"https://github.com/openhab/openhab/issues/3922#issuecomment-249325078","issue_url":"https://api.github.com/repos/openhab/openhab/issues/3922","id":249325078,"user":{"login":"watou","id":3008217,"avatar_url":"https://avatars.githubusercontent.com/u/3008217?v=3","gravatar_id":"","url":"https://api.github.com/users/watou","html_url":"https://github.com/watou","followers_url":"https://api.github.com/users/watou/followers","following_url":"https://api.github.com/users/watou/following{/other_user}","gists_url":"https://api.github.com/users/watou/gists{/gist_id}","starred_url":"https://api.github.com/users/watou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watou/subscriptions","organizations_url":"https://api.github.com/users/watou/orgs","repos_url":"https://api.github.com/users/watou/repos","events_url":"https://api.github.com/users/watou/events{/privacy}","received_events_url":"https://api.github.com/users/watou/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T23:27:06Z","updated_at":"2016-09-23T23:27:06Z","body":"@kaikreuzer:\r\n> We could package the version 4.1 with either the InsteonPLM binding feature or the compat1x feature. We would then require a version constraint on the package import to say that it must be <4.2, so that the OSGi framework resolves the correct version for the binding. This should hopefully work...\r\n\r\nI believe this is the best solution.  I will add the correct version constraint to the binding's MANIFEST.MF, but could you, @kaikreuzer (or others who know how) add to the compat1x feature the versions that the binding imports under 1.x, so the newly added constraints resolve?  That way the same 1.x binding should continue to run under both openHAB 1.x and 2.x.\r\n\r\nI proposed these constraints earlier:\r\n\r\n```\r\n org.apache.http;version=\"[4.1,4.2)\",\r\n org.apache.http.auth;version=\"[4.1,4.2)\",\r\n org.apache.http.client;version=\"[4.1,4.2)\",\r\n org.apache.http.client.methods;version=\"[4.1,4.2)\",\r\n org.apache.http.impl.client;version=\"[4.1,4.2)\",\r\n org.apache.http.params;version=\"[4.1,4.2)\",\r\n org.apache.http.util;version=\"[4.1.4,4.2)\",\r\n```\r\n\r\nbut the final constraints are based on what specific versions are in 1.x, and I don't know where that is.  Thanks.\r\n"}}
{"actor":{"display_login":"watou"}}