sibbi77 / openhab2-addons

Add-ons for openHAB 3.x
Eclipse Public License 2.0
0 stars 0 forks source link

java error #3

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi, first of all thanks for migrating the binding to OH3. I copied the jar file to addons folder, activated the binding and the thing is listed as online: image but all values show NULL: image log file shows java error: 2021-01-06 22:03:54.821 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: java.lang.NoSuchMethodError: 'org.openhab.binding.ecotouch.internal.EcoTouchTags[] org.openhab.binding.ecotouch.internal.EcoTouchTags.values()' at org.openhab.binding.ecotouch.internal.EcoTouchHandler.lambda$1(EcoTouchHandler.java:184) ~[?:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:834) [?:?] Could you please help me to find out what's wrong with my binding? Regards Stoffl

sibbi77 commented 3 years ago

I'll have a look at it this evening.

sibbi77 commented 3 years ago

This happens in my test installation:

21:16:11.450 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'ecotouch:geo:3281d1146a' changed from UNINITIALIZED to INITIALIZING
21:16:11.457 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'ecotouch:geo:3281d1146a' changed from INITIALIZING to UNKNOWN
21:16:11.461 [WARN ] [ommon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 
java.lang.NoSuchMethodError: 'org.openhab.binding.ecotouch.internal.EcoTouchTags[] org.openhab.binding.ecotouch.internal.EcoTouchTags.values()'
        at org.openhab.binding.ecotouch.internal.EcoTouchHandler.lambda$1(EcoTouchHandler.java:184) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:834) [?:?]
21:16:11.543 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'ecotouch:geo:3281d1146a' changed from UNKNOWN to ONLINE

This behaviour is normal (ähem...). I'm not sure, why this could happen: first, the method .values() is a built in method of the language itself and second: this happens inside a try catch block, which should silence the warning.

Nevertheless, it is harmless. If your binding does not change to ONLINE, the IP is wrong or the username/password.

ghost commented 3 years ago

thanks for your investigation. This isn't working since OH3 update, in OH2.5 it was working. I checked username, password and IP, can login to CAREL panel: image The only difference is java version, which I updated to 11. I use the zulu repository. I used zulu 8 before when it was mandatory for OH2.5. Could using zulu be the reason why it doesn't work? Is there any possibility to debug and send you a log file? Thanks for your support

sibbi77 commented 3 years ago

please try the new pre-release: https://github.com/sibbi77/openhab2-addons/releases/tag/ecotouch-3.0.0-2

ghost commented 3 years ago

thanks you solved this issue, it's working with pre-release 3.0.0-2: image