Zigbee binding Telegesis Nullpointer exception

Tags: #<Tag:0x00007f6176dfffa0>

I’m trying to join a Tradfri remote to my zigbee network when I get a nullpoint exception in the log. Updated the binding using @5iver’s script:

Current openHAB snapshot version: 2.5.3
Requested Zigbee version: ZigBee Library release (pre-openHAB snapshot)
Requested Zigbee library version: 1.3.1

but still the same.

2020-03-07 21:55:10.668 [WARN ] [zsmartsystems.zigbee.ZigBeeExecutors] - Uncaught exception in thread TelegesisCommands-thread-1
java.lang.NullPointerException: null
	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) ~[?:1.8.0_222]
	at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis.telegesisEventReceivedRunnable(ZigBeeDongleTelegesis.java:773) ~[?:?]
	at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis$2.run(ZigBeeDongleTelegesis.java:749) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_222]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_222]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]

@chris Any thoughts?

Can you provide a log please? My guess is that this is just happening as the binding is shutting down, but without a log file I’m just guessing what is happening.

Well, I started the evening with rerunning 5ivers install script to get my dependencies right, and now the problem dissapeared, so I’m afraid I can’t provide more logs… Suppose it was related to the missing dependencies. Thanks anyway!

No - it’s not related to dependencies. The binding won’t run if it doesn’t have the dependencies it needs.

As I mentioned earlier, it’s most likely that this is just something that can occur during system shutdown - if there are commands still trying to be sent when we close down, then it’s possible to get this exception. It doesn’t matter though since the system is closing and the commands are just being aborted.

1 Like

Hi @chris I’ve been getting this sporadically, unfortunately not during startup or shutdown, running openHAB 2.5.4:

Each time it happens the thread number increases by one, not sure if that’s significant. Shall I make a github issue?

openhab.log

2020-04-23 18:47:31.253 [INFO ] [bee.discovery.ZigBeeDiscoveryService] - 90FD9FFFFEEC3336: Starting ZigBee device discovery
2020-04-23 21:36:38.534 [INFO ] [bee.discovery.ZigBeeDiscoveryService] - 001788011029F4B8: Starting ZigBee device discovery
2020-04-23 21:36:41.519 [WARN ] [zsmartsystems.zigbee.ZigBeeExecutors] - Uncaught exception in thread TelegesisCommands-thread-1
java.lang.NullPointerException: null
        at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) ~[?:1.8.0_222]
        at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis.telegesisEventReceivedRunnable(ZigBeeDongleTelegesis.java:776) ~[?:?]
        at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis$2.run(ZigBeeDongleTelegesis.java:752) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_222]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_222]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
2020-04-23 21:36:41.520 [WARN ] [zsmartsystems.zigbee.ZigBeeExecutors] - Uncaught exception in thread TelegesisCommands-thread-2
java.lang.NullPointerException: null
        at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) ~[?:1.8.0_222]
        at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis.telegesisEventReceivedRunnable(ZigBeeDongleTelegesis.java:776) ~[?:?]
        at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis$2.run(ZigBeeDongleTelegesis.java:752) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_222]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_222]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
2020-04-23 21:36:55.676 [WARN ] [zsmartsystems.zigbee.ZigBeeExecutors] - Uncaught exception in thread TelegesisCommands-thread-3
java.lang.NullPointerException: null
        at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) ~[?:1.8.0_222]
        at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis.telegesisEventReceivedRunnable(ZigBeeDongleTelegesis.java:776) ~[?:?]
        at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis$2.run(ZigBeeDongleTelegesis.java:752) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_222]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_222]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
2020-04-24 02:16:55.811 [INFO ] [bee.discovery.ZigBeeDiscoveryService] - 0017880103E4043B: Starting ZigBee device discovery
2020-04-24 02:16:55.817 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'zigbee:device:04000B8C:0017880103e4043b' to inbox.
2020-04-24 02:37:33.287 [WARN ] [zsmartsystems.zigbee.ZigBeeExecutors] - Uncaught exception in thread TelegesisCommands-thread-4
java.lang.NullPointerException: null
        at com.zsmartsystems.zigbee.serialization.DefaultDeserializer.readZigBeeType(DefaultDeserializer.java:70) ~[?:?]
        at com.zsmartsystems.zigbee.zcl.ZclFieldDeserializer.deserialize(ZclFieldDeserializer.java:82) ~[?:?]
        at com.zsmartsystems.zigbee.zdo.ZdoCommand.deserialize(ZdoCommand.java:32) ~[?:?]
        at com.zsmartsystems.zigbee.zdo.command.ManagementLqiResponse.deserialize(ManagementLqiResponse.java:162) ~[?:?]
        at com.zsmartsystems.zigbee.ZigBeeNetworkManager.receiveZdoCommand(ZigBeeNetworkManager.java:1022) ~[?:?]
        at com.zsmartsystems.zigbee.ZigBeeNetworkManager.receiveCommand(ZigBeeNetworkManager.java:941) ~[?:?]
        at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis.telegesisEventReceivedRunnable(ZigBeeDongleTelegesis.java:770) ~[?:?]
        at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis$2.run(ZigBeeDongleTelegesis.java:752) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_222]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_222]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
2020-04-24 02:37:33.287 [WARN ] [zsmartsystems.zigbee.ZigBeeExecutors] - Uncaught exception in thread TelegesisCommands-thread-4
java.lang.NullPointerException: null
        at com.zsmartsystems.zigbee.serialization.DefaultDeserializer.readZigBeeType(DefaultDeserializer.java:70) ~[?:?]
        at com.zsmartsystems.zigbee.zcl.ZclFieldDeserializer.deserialize(ZclFieldDeserializer.java:82) ~[?:?]
        at com.zsmartsystems.zigbee.zdo.ZdoCommand.deserialize(ZdoCommand.java:32) ~[?:?]
        at com.zsmartsystems.zigbee.zdo.command.ManagementLqiResponse.deserialize(ManagementLqiResponse.java:162) ~[?:?]
        at com.zsmartsystems.zigbee.ZigBeeNetworkManager.receiveZdoCommand(ZigBeeNetworkManager.java:1022) ~[?:?]
        at com.zsmartsystems.zigbee.ZigBeeNetworkManager.receiveCommand(ZigBeeNetworkManager.java:941) ~[?:?]
        at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis.telegesisEventReceivedRunnable(ZigBeeDongleTelegesis.java:770) ~[?:?]
        at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis$2.run(ZigBeeDongleTelegesis.java:752) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_222]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_222]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
2020-04-24 02:37:33.287 [WARN ] [zsmartsystems.zigbee.ZigBeeExecutors] - Uncaught exception in thread TelegesisCommands-thread-5
java.lang.NullPointerException: null
        at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) ~[?:1.8.0_222]
        at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis.telegesisEventReceivedRunnable(ZigBeeDongleTelegesis.java:776) ~[?:?]
        at com.zsmartsystems.zigbee.dongle.telegesis.ZigBeeDongleTelegesis$2.run(ZigBeeDongleTelegesis.java:752) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_222]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_222]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]

events

2020-04-23 21:36:42.961 [me.event.ThingUpdatedEvent] - Thing 'zigbee:device:04000B8C:00178801102b5321' has been updated.
2020-04-23 21:36:42.978 [me.event.ThingUpdatedEvent] - Thing 'zigbee:device:04000B8C:0017880100fd9ed3' has been updated.
2020-04-23 21:36:43.161 [me.event.ThingUpdatedEvent] - Thing 'zigbee:device:04000B8C:001788011029f4b8' has been updated.
2020-04-23 21:36:43.199 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_telegesis:04000B8C' has been updated.
2020-04-23 21:36:43.362 [me.event.ThingUpdatedEvent] - Thing 'zigbee:device:04000B8C:0017880103beda8c' has been updated.
2020-04-23 21:36:56.364 [me.event.ThingUpdatedEvent] - Thing 'zigbee:device:04000B8C:90fd9ffffeec3336' has been updated.
2020-04-23 21:36:56.988 [me.event.ThingUpdatedEvent] - Thing 'zigbee:device:04000B8C:001788011029dee4' has been updated.
[...]
2020-04-24 02:37:31.074 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_telegesis:04000B8C' has been updated.
2020-04-24 02:37:36.096 [me.event.ThingUpdatedEvent] - Thing 'zigbee:device:04000B8C:0017880100fd9ed3' has been updated.
2020-04-24 02:37:36.105 [me.event.ThingUpdatedEvent] - Thing 'zigbee:device:04000B8C:0017880103beda8c' has been updated.
2020-04-24 02:37:36.191 [me.event.ThingUpdatedEvent] - Thing 'zigbee:device:04000B8C:00178801102b5321' has been updated.
2020-04-24 02:37:43.093 [me.event.ThingUpdatedEvent] - Thing 'zigbee:device:04000B8C:90fd9ffffeec3336' has been updated.

Always seems to happen during discovery.

2 posts were split to a new topic: Problem with ZigBee Telegesis

A post was merged into an existing topic: Problem with ZigBee Telegesis