Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bdSeq Timestamp is null #117

Open
MRIIOT opened this issue Dec 8, 2024 · 0 comments
Open

bdSeq Timestamp is null #117

MRIIOT opened this issue Dec 8, 2024 · 0 comments

Comments

@MRIIOT
Copy link

MRIIOT commented Dec 8, 2024

Ignition complains about bdSeq having a null timestamp. What is the best place to enforce timestamp on bdSeq or all metrics?

Relevant Metric with null timestamp.

Metric [name=bdSeq, alias=null, timestamp=null, dataType=Int64, isHistorical=null, isTransient=null, metaData=null, properties=null, value=0, isNull=false]

Full Ignition Error.

Failed to handle payload on topic: spBv1.0/dime/DDATA/dime/dime with payload=SparkplugBPayload [timestamp=1733620068755, metrics=[Metric [name=eipSource1/Execution, alias=null, timestamp=1733620068755, dataType=String, isHistorical=null, isTransient=null, metaData=null, properties=null, value=Active, isNull=false], Metric [name=eipSource1/SYSTEM/ExecutionDuration, alias=null, timestamp=1733620068755, dataType=Double, isHistorical=null, isTransient=null, metaData=null, properties=null, value=544.0, isNull=false], Metric [name=bdSeq, alias=null, timestamp=null, dataType=Int64, isHistorical=null, isTransient=null, metaData=null, properties=null, value=0, isNull=false]], seq=207, uuid=, body=[]]
com.cirruslink.common.util.exception.CirrusException: INVALID_ARGUMENT

at com.cirruslink.mqtt.engine.gateway.sparkplug.SparkplugPayloadHandler.handlePayload(SparkplugPayloadHandler.java:234)

at com.cirruslink.mqtt.engine.gateway.sparkplug.SparkplugMessageRunnable.run(SparkplugMessageRunnable.java:72)

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)

Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Date.getTime()" because the return value of "org.eclipse.tahu.message.model.Metric.getTimestamp()" is null

at com.cirruslink.mqtt.engine.gateway.sparkplug.SparkplugBPayloadHandler.handleDeviceData(SparkplugBPayloadHandler.java:1862)

at com.cirruslink.mqtt.engine.gateway.sparkplug.SparkplugPayloadHandler.handlePayload(SparkplugPayloadHandler.java:220)

Here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant