Closed cybermanat closed 6 years ago
Problem occurs, if Data is empty and Status Code is 8 (Transfer timeout)
Request: solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData
api Respone: "Body" : { "Data" : {} }, "Head" : { "RequestArguments" : { "DataCollection" : "CommonInverterData", "DeviceClass" : "Inverter", "DeviceId" : "1", "Scope" : "Device" }, "Status" : { "Code" : 8, "Reason" : "Transfer timeout.", "UserMessage" : "" }, "Timestamp" : "2018-05-11T10:51:16+02:00" } }
My fronius binding also not updating the values and showing minus data for grid and load power
Hi, I just updated to 2.4.0 Snapshot of this Jar and experience some more nullpointer exceptions.
2018-10-25 08:52:26.468 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception java.lang.NullPointerException: null at org.openhab.binding.fronius.handler.FroniusSymoInverterHandler.getValue(FroniusSymoInverterHandler.java:86) ~[?:?] 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) [?:?]
Please give me some suggestions if this would be only a configuration issue.
KR, Thomas
When running a while, sometimes the binding stops working (not refreshing any value) and a java.lang.NullPointerException: null occurs.
Logfile Output:
After enabling debug mode for the binding I got the following response data:
working response part from GetPowerFlowRealtimeData.fcgi:
non working response with NullPointerException:
Expected Behavior
Setting the value and continue to update the values instead of crashing and ignoring the "null" value.
Current Behavior
NullPointerException appears and after that, the binding don't update values and seems to be crashed (openhab needs to be restarted)
Possible Solution
Ignore "null" values or translate them to "0"
Steps to Reproduce (for Bugs)
Your Environment