Adding Xstick throws exception

The error is:

Exception in thread “pool-34-thread-1” java.lang.NullPointerException
at com.zsmartsystems.zigbee.ZigBeeNetworkManager.setNetworkStateRunnable(ZigBeeNetworkManager.java:936)
at com.zsmartsystems.zigbee.ZigBeeNetworkManager.access$000(ZigBeeNetworkManager.java:114)
at com.zsmartsystems.zigbee.ZigBeeNetworkManager$2.run(ZigBeeNetworkManager.java:913)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

I using a pc with windows 10 to test openHab 2.4.0

info
Karaf
Karaf version 4.2.1

JVM
Java Virtual Machine Java HotSpot™ 64-Bit Server VM version 25.101-b13
Version 1.8.0_101

Any ideas what i could try to debug?

Regards,

Cesar

This is the old documentation , but the troubleshooting steps should still work.

Zigbee log viewer can help too.

https://www.cd-jackson.com/index.php/openhab/zigbee-log-viewer

Thanks for the help. I activated the Zigbee logs and this is what i got.

3:13:16.137		
XBEE TX XBeeSetSoftwareResetCommand
XBeeSetSoftwareResetCommand [frameId=1]
13:13:16.317		
XBEE RX XBeeSoftwareResetResponse
XBeeSoftwareResetResponse [frameId=1, commandStatus=OK]
13:13:18.678		
XBEE RX XBeeModemStatusEvent status=WATCHDOG_TIMER_RESET
XBeeModemStatusEvent [status=WATCHDOG_TIMER_RESET]
13:13:18.688		
XBEE TX XBeeSetApiEnableCommand
XBeeSetApiEnableCommand [frameId=2, mode=2]
13:13:18.688		
XBEE RX XBeeModemStatusEvent status=COORDINATOR_STARTED
XBeeModemStatusEvent [status=COORDINATOR_STARTED]
13:13:18.848		
XBEE RX XBeeApiEnableResponse
XBeeApiEnableResponse [frameId=2, commandStatus=OK, mode=null]
13:13:18.848		
XBEE TX XBeeSetApiModeCommand
XBeeSetApiModeCommand [frameId=3, mode=3]
13:13:19.018		
XBEE RX XBeeApiModeResponse
XBeeApiModeResponse [frameId=3, commandStatus=OK, mode=null]
13:13:19.018		
XBEE TX XBeeGetHardwareVersionCommand
XBeeGetHardwareVersionCommand [frameId=4]
13:13:19.278		
XBEE RX XBeeHardwareVersionResponse
XBeeHardwareVersionResponse [frameId=4, commandStatus=OK, hardwareVersion=19 4A]
13:13:19.278		
XBEE TX XBeeGetFirmwareVersionCommand
XBeeGetFirmwareVersionCommand [frameId=5]
13:13:19.448		
XBEE RX XBeeFirmwareVersionResponse
XBeeFirmwareVersionResponse [frameId=5, commandStatus=OK, firmwareVersion=21 A7]
13:13:19.448		
XBEE TX XBeeGetDetailedVersionCommand
XBeeGetDetailedVersionCommand [frameId=6]
13:13:19.608		
XBEE RX XBeeDetailedVersionResponse
XBeeDetailedVersionResponse [frameId=6, commandStatus=INVALID_COMMAND]
13:13:19.608		
XBEE TX XBeeGetIeeeAddressHighCommand
XBeeGetIeeeAddressHighCommand [frameId=7]
13:13:19.768		
XBEE RX XBeeIeeeAddressHighResponse
XBeeIeeeAddressHighResponse [frameId=7, commandStatus=OK, ieeeAddress=00 13 A2 00]
13:13:19.768		
XBEE TX XBeeGetIeeeAddressLowCommand
XBeeGetIeeeAddressLowCommand [frameId=8]
13:13:19.928		
XBEE RX XBeeIeeeAddressLowResponse
XBeeIeeeAddressLowResponse [frameId=8, commandStatus=OK, ieeeAddress=41 9B DC CD]
13:13:19.928		
XBEE TX XBeeSetZigbeeStackProfileCommand
XBeeSetZigbeeStackProfileCommand [frameId=9, stackProfile=2]
13:13:20.088		
XBEE RX XBeeZigbeeStackProfileResponse
XBeeZigbeeStackProfileResponse [frameId=9, commandStatus=OK, stackProfile=null]
13:13:20.088		
XBEE TX XBeeSetEncryptionEnableCommand
XBeeSetEncryptionEnableCommand [frameId=10, enableEncryption=true]
13:13:20.347		
XBEE RX XBeeEncryptionEnableResponse
XBeeEncryptionEnableResponse [frameId=10, commandStatus=OK, enableEncryption=null]
13:13:20.347		
XBEE TX XBeeSetEncryptionOptionsCommand
XBeeSetEncryptionOptionsCommand [frameId=11, encryptionOptions=[ENABLE_TRUST_CENTRE]]
13:13:20.517		
XBEE RX XBeeEncryptionOptionsResponse
XBeeEncryptionOptionsResponse [frameId=11, commandStatus=OK]
13:13:20.517		
XBEE TX XBeeSetCoordinatorEnableCommand
XBeeSetCoordinatorEnableCommand [frameId=12, enable=true]
13:13:20.677		
XBEE RX XBeeCoordinatorEnableResponse
XBeeCoordinatorEnableResponse [frameId=12, commandStatus=INVALID_COMMAND]
13:13:20.677		
XBEE TX XBeeSetNetworkKeyCommand
XBeeSetNetworkKeyCommand [frameId=13, networkKey=00000000000000000000000000000000]
13:13:20.948		
XBEE RX XBeeNetworkKeyResponse
XBeeNetworkKeyResponse [frameId=13, commandStatus=OK]
13:13:20.948		
XBEE TX XBeeSetLinkKeyCommand
XBeeSetLinkKeyCommand [frameId=14, linkKey=5A6967426565416C6C69616E63653039]
13:13:20.958		
XBEE RX XBeeReceivePacketExplicitEvent
XBeeReceivePacketExplicitEvent [ieeeAddress=00124B001D4413CA, networkAddress=18107, sourceEndpoint=11, destinationEndpoint=255, clusterId=6, profileId=260, receiveOptions=PACKET_ACKNOWLEDGED, data=08 2B 0A 00 00 10 01]
13:13:21.018	18107	
RX 2B ReportAttributesCommand cluster=ON_OFF
ReportAttributesCommand [On/Off: 18107/11 -> 0/255, cluster=0006, TID=2B, reports=[Attribute Report: attributeDataType=BOOLEAN, attributeIdentifier=0, attributeValue=true]]
13:13:21.148		
XBEE RX XBeeLinkKeyResponse
XBeeLinkKeyResponse [frameId=14, commandStatus=OK]
13:13:21.148		
XBEE TX XBeeSetSaveDataCommand
XBeeSetSaveDataCommand [frameId=15]
13:13:21.308		
XBEE RX XBeeSaveDataResponse
XBeeSaveDataResponse [frameId=15, commandStatus=OK]
13:13:21.308		
XBEE TX XBeeGetPanIdCommand
XBeeGetPanIdCommand [frameId=16]
13:13:21.468		
XBEE RX XBeePanIdResponse
XBeePanIdResponse [frameId=16, commandStatus=OK, panId=51498]
13:13:21.468		
XBEE TX XBeeGetExtendedPanIdCommand
XBeeGetExtendedPanIdCommand [frameId=17]
13:13:21.738		
XBEE RX XBeeExtendedPanIdResponse
XBeeExtendedPanIdResponse [frameId=17, commandStatus=OK, extendedPanId=1D8071447DADE601]
13:13:21.738		
XBEE TX XBeeGetOperatingChannelCommand
XBeeGetOperatingChannelCommand [frameId=18]
13:13:21.888		
XBEE RX XBeeOperatingChannelResponse
XBeeOperatingChannelResponse [frameId=18, commandStatus=OK, channel=11]
13:13:21.898		
XBEE TX XBeeSetScanChannelsCommand
XBeeSetScanChannelsCommand [frameId=19, channels=1]
13:13:22.068		
XBEE RX XBeeScanChannelsResponse
XBeeScanChannelsResponse [frameId=19, commandStatus=OK, channels=null]
13:13:22.068		
XBEE TX XBeeGetOperatingChannelCommand
XBeeGetOperatingChannelCommand [frameId=20]
13:13:22.228		
XBEE RX XBeeOperatingChannelResponse

I would suggest to use the latest binding since 2.4 is very old and it will be difficult to diagnose any issue that’s this old. I would also need to see the exception and the log all in one place so that it’s possible to work out what is causing the exception.

Also, when posting logs, please provide the data in exactly the same format as it comes from the log so that it can be processed more easily.

1 Like

Thanks again I will post after using the latest binding.

Here is a script that can help.

1 Like

Thanks all. It was the binding 2.4.0. I download the milestone version 2.5.0.M3 and it is working.

2 Likes