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 com.google.gson.JsonNull cannot be cast to class com.google.gson.JsonObject (com.google.gson.JsonNull and com.google.gson.JsonObject are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @4079f006) > at org.openhab.binding.windcentrale.internal.handler.WindcentraleHandler.updateData(WindcentraleHandler.java:125) ~[?:?] > 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) [?:?]
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…