Sengled Zigbee Builbs HANDLER_INITIALIZING_ERROR

I have recently updated to openHAB 4.3.0 Build #4376 and have found that all my Sengled E11-G13 are no longer able to initialize giving a error in the log related to channels.

2024-11-14 19:18:44.669 [ERROR] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE1814035644AF: Exception creating channels

java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap')

	at com.zsmartsystems.zigbee.serialization.DefaultSerializer.appendZigBeeType(DefaultSerializer.java:224) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.field.AttributeReportingConfigurationRecord.serialize(AttributeReportingConfigurationRecord.java:361) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.ZclFieldSerializer.serialize(ZclFieldSerializer.java:39) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.clusters.general.ConfigureReportingCommand.serialize(ConfigureReportingCommand.java:107) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.ZigBeeNetworkManager.sendCommand(ZigBeeNetworkManager.java:904) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.send(ZigBeeTransactionManager.java:452) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.sendNextTransaction(ZigBeeTransactionManager.java:694) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.queueTransaction(ZigBeeTransactionManager.java:379) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.sendTransaction(ZigBeeTransactionManager.java:357) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.ZigBeeNetworkManager.sendTransaction(ZigBeeNetworkManager.java:2031) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.ZigBeeNode.sendTransaction(ZigBeeNode.java:1061) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.ZigBeeEndpoint.sendTransaction(ZigBeeEndpoint.java:615) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.ZclCluster.sendCommand(ZclCluster.java:339) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.ZclCluster.sendCommand(ZclCluster.java:350) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.ZclCluster.setReporting(ZclCluster.java:1870) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.ZclCluster.setReporting(ZclCluster.java:637) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.ZclAttribute.setReporting(ZclAttribute.java:452) ~[bundleFile:?]

	at org.openhab.binding.zigbee.internal.converter.ZigBeeConverterMeteringSummationDelivered.initializeDevice(ZigBeeConverterMeteringSummationDelivered.java:94) ~[bundleFile:?]

	at org.openhab.binding.zigbee.handler.ZigBeeThingHandler.initializeDevice(ZigBeeThingHandler.java:540) ~[bundleFile:?]

	at org.openhab.binding.zigbee.handler.ZigBeeThingHandler.doNodeInitialisation(ZigBeeThingHandler.java:394) [bundleFile:?]

	at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:244) [bundleFile:?]

	at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:1) [bundleFile:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]

	at java.lang.Thread.run(Thread.java:840) [?:?]

These bulbs have been working fine for two years so I am guessing something is odd about there config file and it broke on a update of the something else int he binding.

Please try the latest snapshot

Have upgrade to Build Build #4377 same result.

It seems to be resolved here - please double check your system really updated, and if so please provide an updated log.

I also just looked at the times of the various builds on ci and it’s quite possible that the latest snapshot doesn’t contain the fix since it was merged around the same time that the builds were performed.

Good day @chris ,

I’m not so sure about this.

And also in the Binary:

But this isn’t the version you were running - is it? According to your karaf list command, you were running M3 and not the snapshot (IIRC from the other thread). What is this that you’re showing? Did you get this from CI, or from the official snapshot?

I’m just not sure what version of the zigbee binding is included in what release since there are quite a few steps in the process. If you download and use the one from CI that was built after the merge, then it should be fine. But I personally don’t know what version is in the latest snapshot.

For me, the problem is solved with this update, but Ive compiled it myself here rather than using official snapshots.

Please can you provide an updated log.

Updated Log.

2024-11-15 07:02:25.373 [ERROR] [ng.zigbee.handler.ZigBeeThingHandler] - B0CE181403598092: Exception creating channels

java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap')

	at com.zsmartsystems.zigbee.serialization.DefaultSerializer.appendZigBeeType(DefaultSerializer.java:224) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.field.AttributeReportingConfigurationRecord.serialize(AttributeReportingConfigurationRecord.java:361) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.ZclFieldSerializer.serialize(ZclFieldSerializer.java:39) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.clusters.general.ConfigureReportingCommand.serialize(ConfigureReportingCommand.java:107) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.ZigBeeNetworkManager.sendCommand(ZigBeeNetworkManager.java:904) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.send(ZigBeeTransactionManager.java:452) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.sendNextTransaction(ZigBeeTransactionManager.java:694) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.queueTransaction(ZigBeeTransactionManager.java:379) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.sendTransaction(ZigBeeTransactionManager.java:357) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.ZigBeeNetworkManager.sendTransaction(ZigBeeNetworkManager.java:2031) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.ZigBeeNode.sendTransaction(ZigBeeNode.java:1061) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.ZigBeeEndpoint.sendTransaction(ZigBeeEndpoint.java:615) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.ZclCluster.sendCommand(ZclCluster.java:339) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.ZclCluster.sendCommand(ZclCluster.java:350) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.ZclCluster.setReporting(ZclCluster.java:1870) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.ZclCluster.setReporting(ZclCluster.java:637) ~[bundleFile:?]

	at com.zsmartsystems.zigbee.zcl.ZclAttribute.setReporting(ZclAttribute.java:452) ~[bundleFile:?]

	at org.openhab.binding.zigbee.internal.converter.ZigBeeConverterMeteringSummationDelivered.updateConfiguration(ZigBeeConverterMeteringSummationDelivered.java:151) ~[bundleFile:?]

	at org.openhab.binding.zigbee.handler.ZigBeeThingHandler.doNodeInitialisation(ZigBeeThingHandler.java:421) [bundleFile:?]

	at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:244) [bundleFile:?]

	at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:1) [bundleFile:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]

	at java.lang.Thread.run(Thread.java:840) [?:?]

Thanks. This is different to the first log - the first was line 94, which was fixed in the first PR, and the second is line 151, which was fixed yesterday. Hopefully the latest snapshot will hopefully now fully resolve this.

Has the latest snapshot come out yet? I am still on Build #4377 after forcing an update.

I’ve not looked, but the snapshot builds normally are done in the early hours of the morning UTC (ie European time) - ie around now. Probably therefore this change isn’t in the latest build, but it should be in the next few hours I expect.

Ok, will try again a in a bit.

Can report after getting build #4381 to finally show up to install that the issue has resolved itself.