Problem with windcentrale binding

Hi all,

I have a rather new openhab2.4 setup on ubuntu 18.04 with java openjdk version “11.0.4” 2019-07-16.
Amongst other bindings i installed the windcentrale binding. That works as expected, except… It gives after a couple of hours working an exception, and then it stops working…

The exception is as follows:

> 2019-09-12 16:47:17.624 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
> java.lang.ClassCastException: class cannot be cast to class ( and are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @4079f006)
>         at org.openhab.binding.windcentrale.internal.handler.WindcentraleHandler.updateData( ~[?:?]
>         at java.util.concurrent.Executors$ ~[?:?]
>         at java.util.concurrent.FutureTask.runAndReset( ~[?:?]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ ~[?:?]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:?]
>         at java.util.concurrent.ThreadPoolExecutor$ [?:?]
>         at [?:?]

I can restart the binding with the command
ssh openhab@localhost -p8101 ‘bundle:restart org.openhab.binding.windcentrale’
But thats not the solution i was looking for…

Looks like it can’t handle certain data. Maybe it returns incomplete data that can’t be parsed. Unfortunately the log that prints the value returned is after the code that crashes. Can you file a bug report on openHAB2-addons.on GitHub.

Does it also occur with Java 8? That’s the recommended Java version, see the requirements.

1 Like