openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.85k stars 3.56k forks source link

[dscalarm] Creation of event failed, because one of the registered event factories has thrown an exception #10728

Open richardbergen opened 3 years ago

richardbergen commented 3 years ago

In OH3, the DSC Alarm binding throws the following warning on startup:

Creation of event failed, because one of the registered event factories has thrown an exception: Error invoking #valueOf(String) on class 'org.openhab.core.library.types.DateTimeType' with value '2-01-01T00:00:00.000-0700'.

As Gary pointed out at the following link https://community.openhab.org/t/oh3-dscalarm-binding-error/112615, the issue appears to start in the binding org.openhab.binding.dscalarm/src/main/java/org/openhab/binding/dscalarm/internal/handler/PanelThingHandler.java at line 95 updateState(channelUID, new DateTimeType(systemTime)); since the variable systemTime seems to contain ‘2-01-01T00:00:00.000-0700

Would @Hilbrand or @wborn be able to have a look? Thank you so much!

dsc_errors.txt

openhab-bot commented 3 years ago

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/oh3-dscalarm-binding-error/112615/3

garyn87048 commented 2 years ago

Watching this one too!

lsiepel commented 3 weeks ago

Can you confirm this is still an issue with the latest openHAB 4.2 milestone?

ve3sjk commented 2 weeks ago

Can you confirm this is still an issue with the latest openHAB 4.2 milestone?

I am running OpenHab 4.1.3 release version and can confirm that is still an active error in the logs, and that the dsc binding has a NULL for system time.