Hi,
I have the same problem as ramon2k10 and a restart of openhab2 did not resolve the problem.
Anybody with ideas?
I followed Pali’s install method and my console shows this.
M2 version of iCloud binding need gson library, so if you don’t currently use any binding which have already installed it, you need to install it manually. Normally dependencies are automatically solved, but installing jar files manually, dependencies need to be installed manually as well.
You are the man-thanks a lot. All is working now:-) I was running a standard openhabian setup with no gson library required and had no idea.
Thanks again:-)
I upgraded my full openHAB install, not just iCloud binding, to 2.5.0M2 release and no longer getting SSL error but getting errors below. Guessing this is a code issue because a quick google search found posts to stack overflow about large http requests using jetty require extra steps to allocate a larger buffer for post requests. Curious if anyone else is having this error with the recent builds. Prior to SSL issue and subsequent troubleshooting I had not seen this error.
2019-08-10 09:30:42.697 [WARN ] [l.handler.ICloudAccountBridgeHandler] - Unable to refresh device data
java.io.IOException: java.util.concurrent.ExecutionException: org.eclipse.jetty.http.BadMessageException: 500: Request header too large
at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrlAndGetReponse(HttpUtil.java:259) ~[?:?]
at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrl(HttpUtil.java:156) ~[?:?]
at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrl(HttpUtil.java:131) ~[?:?]
at org.eclipse.smarthome.io.net.http.HttpRequestBuilder.getContentAsString(HttpRequestBuilder.java:135) ~[?:?]
at org.openhab.binding.icloud.internal.ICloudConnection.callApi(ICloudConnection.java:88) ~[?:?]
at org.openhab.binding.icloud.internal.ICloudConnection.requestDeviceStatusJSON(ICloudConnection.java:69) ~[?:?]
at org.openhab.binding.icloud.internal.handler.ICloudAccountBridgeHandler.lambda$0(ICloudAccountBridgeHandler.java:88) ~[?:?]
at org.eclipse.smarthome.core.cache.ExpiringCache.refreshValue(ExpiringCache.java:97) ~[?:?]
at org.eclipse.smarthome.core.cache.ExpiringCache.getValue(ExpiringCache.java:68) ~[?:?]
at org.openhab.binding.icloud.internal.handler.ICloudAccountBridgeHandler.refreshData(ICloudAccountBridgeHandler.java:145) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.util.concurrent.ExecutionException: org.eclipse.jetty.http.BadMessageException: 500: Request header too large
at org.eclipse.jetty.client.util.FutureResponseListener.getResult(FutureResponseListener.java:118) ~[?:?]
at org.eclipse.jetty.client.util.FutureResponseListener.get(FutureResponseListener.java:101) ~[?:?]
at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:683) ~[?:?]
at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrlAndGetReponse(HttpUtil.java:250) ~[?:?]
... 16 more
Caused by: org.eclipse.jetty.http.BadMessageException: 500: Request header too large
at org.eclipse.jetty.http.HttpGenerator.generateRequest(HttpGenerator.java:279) ~[?:?]
at org.eclipse.jetty.client.http.HttpSenderOverHTTP$HeadersCallback.process(HttpSenderOverHTTP.java:231) ~[?:?]
at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) ~[?:?]
at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:224) ~[?:?]
at org.eclipse.jetty.client.http.HttpSenderOverHTTP.sendHeaders(HttpSenderOverHTTP.java:62) ~[?:?]
at org.eclipse.jetty.client.HttpSender.send(HttpSender.java:214) ~[?:?]
at org.eclipse.jetty.client.http.HttpChannelOverHTTP.send(HttpChannelOverHTTP.java:85) ~[?:?]
at org.eclipse.jetty.client.HttpChannel.send(HttpChannel.java:128) ~[?:?]
at org.eclipse.jetty.client.HttpConnection.send(HttpConnection.java:201) ~[?:?]
at org.eclipse.jetty.client.http.HttpConnectionOverHTTP$Delegate.send(HttpConnectionOverHTTP.java:255) ~[?:?]
at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.send(HttpConnectionOverHTTP.java:122) ~[?:?]
at org.eclipse.jetty.client.http.HttpDestinationOverHTTP.send(HttpDestinationOverHTTP.java:38) ~[?:?]
at org.eclipse.jetty.client.HttpDestination.process(HttpDestination.java:346) ~[?:?]
at org.eclipse.jetty.client.HttpDestination.process(HttpDestination.java:304) ~[?:?]
at org.eclipse.jetty.client.HttpDestination.send(HttpDestination.java:294) ~[?:?]
at org.eclipse.jetty.client.HttpDestination.succeeded(HttpDestination.java:228) ~[?:?]
at org.eclipse.jetty.client.AbstractConnectionPool.proceed(AbstractConnectionPool.java:153) ~[?:?]
at org.eclipse.jetty.client.AbstractConnectionPool$1.succeeded(AbstractConnectionPool.java:131) ~[?:?]
at org.eclipse.jetty.client.AbstractConnectionPool$1.succeeded(AbstractConnectionPool.java:123) ~[?:?]
at org.eclipse.jetty.util.Promise$Wrapper.succeeded(Promise.java:130) ~[?:?]
at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onOpen(HttpConnectionOverHTTP.java:130) ~[?:?]
at org.eclipse.jetty.io.ssl.SslConnection.onOpen(SslConnection.java:283) ~[?:?]
at org.eclipse.jetty.io.SelectorManager.connectionOpened(SelectorManager.java:324) ~[?:?]
at org.eclipse.jetty.io.ManagedSelector.createEndPoint(ManagedSelector.java:268) ~[?:?]
at org.eclipse.jetty.io.ManagedSelector.access$1900(ManagedSelector.java:61) ~[?:?]
at org.eclipse.jetty.io.ManagedSelector$CreateEndPoint.run(ManagedSelector.java:922) ~[?:?]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698) ~[?:?]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804) ~[?:?]
... 1 more
Caused by: java.nio.BufferOverflowException
at java.nio.Buffer.nextPutIndex(Buffer.java:521) ~[?:?]
at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:169) ~[?:?]
at org.eclipse.jetty.http.HttpGenerator.putSanitisedValue(HttpGenerator.java:932) ~[?:?]
at org.eclipse.jetty.http.HttpGenerator.putTo(HttpGenerator.java:948) ~[?:?]
at org.eclipse.jetty.http.HttpGenerator.generateHeaders(HttpGenerator.java:702) ~[?:?]
at org.eclipse.jetty.http.HttpGenerator.generateRequest(HttpGenerator.java:250) ~[?:?]
at org.eclipse.jetty.client.http.HttpSenderOverHTTP$HeadersCallback.process(HttpSenderOverHTTP.java:231) ~[?:?]
at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) ~[?:?]
at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:224) ~[?:?]
at org.eclipse.jetty.client.http.HttpSenderOverHTTP.sendHeaders(HttpSenderOverHTTP.java:62) ~[?:?]
at org.eclipse.jetty.client.HttpSender.send(HttpSender.java:214) ~[?:?]
at org.eclipse.jetty.client.http.HttpChannelOverHTTP.send(HttpChannelOverHTTP.java:85) ~[?:?]
at org.eclipse.jetty.client.HttpChannel.send(HttpChannel.java:128) ~[?:?]
at org.eclipse.jetty.client.HttpConnection.send(HttpConnection.java:201) ~[?:?]
at org.eclipse.jetty.client.http.HttpConnectionOverHTTP$Delegate.send(HttpConnectionOverHTTP.java:255) ~[?:?]
at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.send(HttpConnectionOverHTTP.java:122) ~[?:?]
at org.eclipse.jetty.client.http.HttpDestinationOverHTTP.send(HttpDestinationOverHTTP.java:38) ~[?:?]
at org.eclipse.jetty.client.HttpDestination.process(HttpDestination.java:346) ~[?:?]
at org.eclipse.jetty.client.HttpDestination.process(HttpDestination.java:304) ~[?:?]
at org.eclipse.jetty.client.HttpDestination.send(HttpDestination.java:294) ~[?:?]
at org.eclipse.jetty.client.HttpDestination.succeeded(HttpDestination.java:228) ~[?:?]
at org.eclipse.jetty.client.AbstractConnectionPool.proceed(AbstractConnectionPool.java:153) ~[?:?]
at org.eclipse.jetty.client.AbstractConnectionPool$1.succeeded(AbstractConnectionPool.java:131) ~[?:?]
at org.eclipse.jetty.client.AbstractConnectionPool$1.succeeded(AbstractConnectionPool.java:123) ~[?:?]
at org.eclipse.jetty.util.Promise$Wrapper.succeeded(Promise.java:130) ~[?:?]
at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onOpen(HttpConnectionOverHTTP.java:130) ~[?:?]
at org.eclipse.jetty.io.ssl.SslConnection.onOpen(SslConnection.java:283) ~[?:?]
at org.eclipse.jetty.io.SelectorManager.connectionOpened(SelectorManager.java:324) ~[?:?]
at org.eclipse.jetty.io.ManagedSelector.createEndPoint(ManagedSelector.java:268) ~[?:?]
at org.eclipse.jetty.io.ManagedSelector.access$1900(ManagedSelector.java:61) ~[?:?]
at org.eclipse.jetty.io.ManagedSelector$CreateEndPoint.run(ManagedSelector.java:922) ~[?:?]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698) ~[?:?]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804) ~[:?]
... 1 more
You don’t need to update OpenHAB to 2.5 to have the latest Version of iCloud Binding to work properly. Just install the latest version of the iCloud Binding to your 2.4 installation.
Yes sir! I uninstalled the 2.4 iCloud binding from paper UI and checked to the console to see that the bundle was not present before making the changes. Happy I backed up before trying to “fix” things!
Seriously I’m mot casting any blame here just looking for the connection between the 2.5 M2 iCloud binding and Zigbee?