# Icloud exception error

**URL:** <https://community.openhab.org/t/icloud-exception-error/48339>\
**Category:** Bindings\
**Tags:** binding\
**Created:** [July 25, 2018, 7:52am UTC](https://community.openhab.org/t/icloud-exception-error/48339 "2018-07-25T07:52:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![idkpmiller](https://community.openhab.org/user_avatar/community.openhab.org/idkpmiller/32/56280_2.png) [@idkpmiller](https://community.openhab.org/u/idkpmiller)\
**Post date:** [July 25, 2018, 7:52am UTC](https://community.openhab.org/t/icloud-exception-error/48339/1 "2018-07-25T07:52:00Z")

</div>

Hi,  
The iclud binding has been working great for months and then suddenly with no changes around 24 hr ago I started seeing these errors in the log, can some one advise what might be wrong.

```auto
2018-07-25 19:44:09.603 [WARN] [d.handler.ICloudAccountBridgeHandler] - Unable to refresh device data

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

	at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) ~[?:?]

	at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1964) ~[?:?]

	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:328) ~[?:?]

	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:322) ~[?:?]

	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1614) ~[?:?]

	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216) ~[?:?]

	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1052) ~[?:?]

	at sun.security.ssl.Handshaker.process_record(Handshaker.java:987) ~[?:?]

	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072) ~[?:?]

	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385) ~[?:?]

	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413) ~[?:?]

	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397) ~[?:?]

	at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) ~[?:?]

	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:?]

	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1334) ~[?:?]

	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1309) ~[?:?]

	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:259) ~[?:?]

	at org.openhab.binding.icloud.internal.Connection.postRequest(Connection.java:95) ~[?:?]

	at org.openhab.binding.icloud.internal.Connection.requestDeviceStatusJSON(Connection.java:55) ~[?:?]

	at org.openhab.binding.icloud.handler.ICloudAccountBridgeHandler.lambda$0(ICloudAccountBridgeHandler.java:81) ~[?:?]

	at org.eclipse.smarthome.core.cache.ExpiringCache.refreshValue(ExpiringCache.java:81) ~[?:?]

	at org.eclipse.smarthome.core.cache.ExpiringCache.getValue(ExpiringCache.java:61) ~[?:?]

	at org.openhab.binding.icloud.handler.ICloudAccountBridgeHandler.refreshData(ICloudAccountBridgeHandler.java:132) ~[?:?]

	at org.openhab.binding.icloud.handler.ICloudAccountBridgeHandler.lambda$1(ICloudAccountBridgeHandler.java:123) ~[?:?]

	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: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) ~[?:?]

	at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) ~[?:?]

	at sun.security.validator.Validator.validate(Validator.java:262) ~[?:?]

	at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) ~[?:?]

	at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) ~[?:?]

	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) ~[?:?]

	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1596) ~[?:?]

	... 26 more

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

	at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) ~[?:?]

	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) ~[?:?]

	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) ~[?:?]

	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ~[?:?]

	at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) ~[?:?]

	at sun.security.validator.Validator.validate(Validator.java:262) ~[?:?]

	at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) ~[?:?]

	at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) ~[?:?]

	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) ~[?:?]

	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1596) ~[?:?]

	... 26 more

```

Thanks

Paul

---

<div class="post-metadata">

**Author:** ![Bucofski](https://community.openhab.org/user_avatar/community.openhab.org/bucofski/32/61553_2.png) [@Bucofski](https://community.openhab.org/u/Bucofski)\
**Post date:** [July 25, 2018, 10:55am UTC](https://community.openhab.org/t/icloud-exception-error/48339/2 "2018-07-25T10:55:52Z")

</div>

Same issue there

> [@Icloud binding - General SSLEngine problem](https://community.openhab.org/t/icloud-binding-general-sslengine-problem/48314):
>
> Hi Since upgrading to the latest snapshot last night the icloud binding has stopped being able to connect and generates the following message in the logs 2018-07-24 19:02:29.008 [WARN] [d.handler.ICloudAccountBridgeHandler] - Unable to refresh device data java.io.IOException: java.util.concurrent.ExecutionException: javax.net.ssl.SSLHandshakeException: General SSLEngine problem This was working fine up until the latest snapshot openHAB 2.4.0 Build #1314 Any one else seeing this issue?

---

<div class="post-metadata">

**Author:** ![scha](https://community.openhab.org/user_avatar/community.openhab.org/scha/32/58344_2.png) [@scha](https://community.openhab.org/u/scha)\
**Post date:** [July 25, 2018, 11:32am UTC](https://community.openhab.org/t/icloud-exception-error/48339/3 "2018-07-25T11:32:58Z")

</div>

Looks like we have 3 threat around the same issue.  
 → [Sysinfo-Binding in OH2 - #3 by scha](https://community.openhab.org/t/sysinfo-binding-in-oh2/19614/3)

---

<div class="post-metadata">

**Author:** ![sergiucip](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/5e9695/32.png) [@sergiucip](https://community.openhab.org/u/sergiucip)\
**Post date:** [July 25, 2018, 1:56pm UTC](https://community.openhab.org/t/icloud-exception-error/48339/4 "2018-07-25T13:56:28Z")

</div>

Now it 4 problems, my error is "018-07-25 16:50:00.165 [WARN] [d.handler.ICloudAccountBridgeHandler] - Unable to refresh device data

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target "

---

<div class="post-metadata">

**Author:** ![rkrisi](https://community.openhab.org/user_avatar/community.openhab.org/rkrisi/32/68680_2.png) [@rkrisi](https://community.openhab.org/u/rkrisi)\
**Post date:** [July 25, 2018, 2:59pm UTC](https://community.openhab.org/t/icloud-exception-error/48339/5 "2018-07-25T14:59:28Z")

</div>

[Here](https://community.openhab.org/t/icloud-binding-pkix-path-building-failed/48318/6) is my issue on that. I’m using 2.3.0 stable so it didn’t changed anything for me, just stopped working yesterday…

---

<div class="post-metadata">

**Author:** ![dale](https://community.openhab.org/letter_avatar_proxy/v4/letter/d/ecd19e/32.png) [@dale](https://community.openhab.org/u/dale)\
**Post date:** [July 26, 2018, 4:44am UTC](https://community.openhab.org/t/icloud-exception-error/48339/6 "2018-07-26T04:44:32Z")

</div>

I have the same issue.

---

<div class="post-metadata">

**Author:** ![martinvw](https://community.openhab.org/user_avatar/community.openhab.org/martinvw/32/71288_2.png) [@martinvw](https://community.openhab.org/u/martinvw)\
**Post date:** [July 26, 2018, 6:40am UTC](https://community.openhab.org/t/icloud-exception-error/48339/7 "2018-07-26T06:40:46Z")

</div>

Shall we all move to single topic, lets pick [Icloud binding - General SSLEngine problem - #2 by Chri46](https://community.openhab.org/t/icloud-binding-general-sslengine-problem/48314/2)
