Closed ChristianHeinz71 closed 6 years ago
I have the same issue!
Save issue here (i guess - the first line of the stack trace has moved from 86 to 87).
2018-08-05 20:32:33.616 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception
java.lang.NullPointerException: null
at org.openhab.binding.fronius.handler.FroniusSymoInverterHandler.getValue(FroniusSymoInverterHandler.java:87) ~[?:?]
at org.openhab.binding.fronius.handler.FroniusBaseThingHandler.updateChannel(FroniusBaseThingHandler.java:99) ~[?:?]
at org.openhab.binding.fronius.handler.FroniusBaseThingHandler.updateChannels(FroniusBaseThingHandler.java:85) ~[?:?]
at org.openhab.binding.fronius.handler.FroniusSymoInverterHandler.refresh(FroniusSymoInverterHandler.java:58) ~[?:?]
at org.openhab.binding.fronius.handler.FroniusBridgeHandler.lambda$0(FroniusBridgeHandler.java:109) ~[?:?]
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) [?:?]
Unfortunately, the issue is still there, the Fronius binding is Not Working. I am using this bugfix in my OH Installation and it works fine.
So could any of you (@Hilbrand, @benschi11 & @ChristianHeinz71) simply come up with a PR to finally fix it?
I think the problem will be fixed once the PR (https://github.com/openhab/openhab2-addons/pull/3828) is merged. I currently have no dev tools installed on my pc.
Ah, right, thanks - I wasn't aware of that PR. Looks as if we are waiting for @trokohl to incorporate @Hilbrand's comments then.
oh, I overlooked the hints. I took they over.
Fixed by #3828.
When running a while, the binding stops working and is not refreshing any value any more. A java.lang.NullPointerException was thrown. This issue is similar to #3556 but has a different callstack / root cause.
Output from logfile:
After enabling debug mode for the binding I got the following response data with a transfer timeout issue and empty data node:
Expected Behavior
No Crash while reading data from Fronius which is incomplete or has an error response.
Current Behavior
NullPointerException appears in case of "Transfer timeout". after that, the binding don't update values and seems to be crashed (openhab needs to be restarted)
Possible Solution
Check if the body and data node is not null:
Steps to Reproduce (for Bugs)
Context
Your Environment