I have Ignition Reference dataset tags that are sending data via MQTT Transmission to Mosquitto, to which MQTT Engine is subscribed. Generally this is working well. However, in some cases I’m receiving this error on the Engine side:
java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "value" is null
at com.cirruslink.mqtt.common.util.SparkplugUtils.convertToIgnitionDataset(SparkplugUtils.java:720)
at com.cirruslink.mqtt.engine.gateway.sparkplug.SparkplugBPayloadHandler.getIgnitionValue(SparkplugBPayloadHandler.java:1712)
at com.cirruslink.mqtt.engine.gateway.sparkplug.SparkplugBPayloadHandler.handleNodeBirth(SparkplugBPayloadHandler.java:412)
at com.cirruslink.mqtt.engine.gateway.sparkplug.SparkplugPayloadHandler.handlePayload(SparkplugPayloadHandler.java:171)
at com.cirruslink.mqtt.engine.gateway.EngineCallback.lambda$messageArrived$1(EngineCallback.java:247)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
The payload seems fine in MQTT FX, and the payload processes properly as JSON. Any suggestions as to where I can troubleshoot? I unfortunately cannot post the contents of the file.