I have an issue, i migrate my openhab install to a fresh debian 10 installation, everything works fine except openhabcloud. My previous install was already in 2.5 but with openjdk, now i’m using zulu as recommended.
I try to remove the cloud addon, secret and uuid, clear the cache, reinstall but nothing.
The error log is about activate method string index out of range:
2020-01-02 16:32:15.368 [ERROR] [org.openhab.io.openhabcloud ] - bundle
org.openhab.io.openhabcloud:2.5.0.201912151152 (262)
[org.openhab.io.openhabcloud.internal.Cloud
Service(264)] : The activate method has thrown an exception
java.lang.StringIndexOutOfBoundsException: String index out of range: 2
at java.lang.StringLatin1.charAt(StringLatin1.java:44) ~[?:?]
at java.lang.String.charAt(String.java:692) ~[?:?]
at
org.openhab.io.openhabcloud.internal.CloudService.checkJavaVersion(CloudService.java:161)
~[?:?]
at org.openhab.io.openhabcloud.internal.CloudService.activate(CloudService.java:154) ~[?:?]
I would also restart OH (may need to clean cache as well, but only once) a few times if you continue to see the error. Took me 3 restarts for OH to load and run correctly.