IMD SolutionComputing LibraryShop main store

Troubleshooting

Why Transmission 4.0.25 fails the Integer Long birth check

Edge computing and IIoT Published 6 min read By IMD Solution engineering team

Short answer

The SparkplugInvalidTypeException reporting expected java.lang.Integer against actual java.lang.Long is a known Transmission 4.0.25 defect in copying cached birth metrics, not a misconfigured tag. Refresh the affected Transmitters to restore publishing immediately, then upgrade to Transmission 4.0.26, which contains the fix, and confirm births publish without a manual refresh.

On this page
  1. The exact log signature
  2. Why the birth cache is at fault, not the tag
  3. Restore publishing now
  4. Upgrade to 4.0.26
  5. Verify the fix
  6. Other faults that stop Transmitters
  7. Questions asked

Transmission 4.0.25 carries a defect in the routine that copies cached Sparkplug birth metrics. When the module replays a stored birth, the copy fails with SparkplugInvalidTypeException: the payload declares java.lang.Integer while the cached metric holds java.lang.Long, and the Transmitters behind that birth publish nothing until you refresh them by hand. It is not a misconfigured tag. Refresh the affected Transmitters now to restore publishing; that is the bridge. The fix is Transmission 4.0.26, which contains the corrected copy routine: upgrade, restart the gateway, and confirm the births go out on their own. Below are the exact log signature, the reasoning that rules out a tag change, the recovery steps, and the verification.

The exact log signature #

Two lines land in the gateway log within the same second, followed by a stack trace. The warning comes first, from the metric type checker, and the failure follows from the birth cache:

MetricDataType 07Jan2025 13:06:52 Failed type check - expected class java.lang.Integer != actual class java.lang.Long
BirthCache 07Jan2025 13:06:52 Failed to copy metric in addEdgeNodeBirth
org.eclipse.tahu.SparkplugInvalidTypeException: Invalid type class java.lang.Long
    at org.eclipse.tahu.message.model.MetricDataType.checkType(MetricDataType.java:171)
    at org.eclipse.tahu.message.model.Metric.<init>(Metric.java:195)
    at com.cirruslink.mqtt.common.gateway.agent.BirthCache.getDeepCopy(BirthCache.java:323)
    at com.cirruslink.mqtt.common.gateway.agent.BirthCache.getDeviceBirthPayload(BirthCache.java:299)
    at com.cirruslink.mqtt.common.gateway.agent.Agent.getCachedBirths(Agent.java:2128)
    at com.cirruslink.mqtt.transmission.gateway.sparkplug.SparkplugTransmissionClient.publishBirthSequence(SparkplugTransmissionClient.java:100)
    at com.cirruslink.mqtt.transmission.gateway.TransmissionClient.sendBirth(TransmissionClient.java:544)

Read the frames from the bottom up. sendBirth is the moment Transmission replays a birth sequence, publishBirthSequence is the Sparkplug layer doing it, getCachedBirths pulls the stored births out of the module's birth cache, and getDeviceBirthPayload with getDeepCopy duplicates that cached payload metric by metric. The Metric constructor calls checkType, which compares the value's Java class against the declared type and throws when they differ. The warning and the copy failure carry the same timestamp because they are one event. If your trace matches these frames, you are looking at the 4.0.25 birth-cache defect; if the frames differ, match them to their own cause before acting.

Why the birth cache is at fault, not the tag #

Nothing in the failing path reads a tag value. getDeepCopy duplicates metrics the module stored from a previous birth, and the tag provider is not consulted anywhere in those frames. A genuine configuration mismatch, a source that really delivers a 64-bit value where the payload declares a 32-bit integer, would surface while Transmission assembles the live payload, with frames in the value-assembly path instead of under BirthCache.getDeepCopy. Your trace sits entirely in the cache-copy path, and the module maintainer has confirmed the conclusion: a known 4.0.25 issue, fixed in the nightly builds and included in the official 4.0.26 release.

Worked example of what one failed metric costs. Say an edge node's last stored birth covered 40 device metrics plus the node birth itself, 41 metrics in all. During the replay, the copy routine reaches one cached metric carrying java.lang.Long where the payload declares java.lang.Integer. The exception aborts the entire copy, so 0 of the 41 metrics in that payload are published: the node and all 40 device metrics go silent together, while the warning names only the single metric that tripped the check. That ratio, one cached metric failing to copy and 41 metrics not sent, is why the symptom looks like a whole Transmitter dying rather than one bad tag.

Decision: do not edit tag data types on the strength of this trace. The trace cannot tell you which cached metric tripped the check, and a type edit made from it rewrites a configuration the evidence has not examined.

Restore publishing now #

The refresh is the immediate workaround, and it works the same way the symptom does: it makes the module build fresh birth payloads instead of replaying the cached copies that fail to duplicate.

  1. Note the timestamp on the Failed to copy metric line. The log does not name the affected node, so match that moment against the Transmitters that stopped reporting.
  2. In the Transmission module's Transmitters configuration page, refresh the Transmitters you identified. Refresh rebuilds and republishes their birth sequence.
  3. Watch the gateway log while the births go out. A clean refresh completes the sequence with no new Failed to copy metric line.
  4. Confirm at the subscriber that values for those nodes arrive again.

Publishing resumes as soon as the refresh completes, and if it does not, the trace you are chasing is not this one. The 4.0.25 defect is still installed, so treat the refresh as a bridge to the upgrade, not as the fix.

Upgrade to 4.0.26 #

4.0.26 is the release to run: the maintainer confirmed the fix reached the nightly builds first and that the official 4.0.26 release includes it. Run the released build on a production gateway and keep nightlies on a test bench.

  1. Check the version the gateway actually runs. The module list in the gateway's configuration shows the installed build of each module, so confirm it reads 4.0.25 before you plan the window.
  2. Get the official Transmission 4.0.26 build from the same channel your other MQTT modules come from. The Ignition third-party modules downloads page publishes the current module builds and their release notes for each Ignition version; use the release notes to confirm the build pairs with your gateway version.
  3. Install the module through the gateway's module installation and restart the gateway so the new build loads.

Decision: any gateway running Transmission 4.0.25 gets the upgrade. Staying on 4.0.25 leaves the defective copy routine in the birth path, with a manual refresh as the only remedy.

Verify the fix #

Verification succeeds when all four of these hold after the upgrade:

  • The module list shows Transmission 4.0.26 as the installed build, not just the file you downloaded.
  • A gateway restart completes with no Failed type check warning and no SparkplugInvalidTypeException from the birth cache in the startup log.
  • Transmitters publish their births on their own as the gateway comes up, with no manual refresh.
  • A rebirth cycle, triggered by a broker restart or the module's rebirth control, completes with the same clean log.

If any one of them fails, the gateway is still running the old build or the new one did not load: check the installed version again before you look anywhere else.

Other faults that stop Transmitters #

Transmitters idle at startup has other signatures, and each has its own fix. If the log shows a failure to validate the primary host instead of a type check failure, work through the article on MQTT Transmission failing to validate the primary host online. If the Transmission connection fails TLS while other clients reach the same broker without trouble, the article on Transmission failing TLS while other clients connect is the one to follow. And if only tags you newly created are missing from publishing, newly added calculated tags for example, that is a separately reported behavior of its own: the signature is a missing tag with no exception in the log, not a stack trace.

Decision: match the trace first. The birth-cache defect is the one with the Integer-versus-Long warning and the getDeepCopy frame; every other stall has a different fingerprint and a different fix.

Questions asked

Why does the type check expect java.lang.Integer when the cached value is a java.lang.Long?

A Sparkplug birth payload declares a data type per metric, and the message model verifies each value's Java class against that declaration while the payload is assembled. Transmission 4.0.25's deep-copy routine for cached birth metrics can produce a java.lang.Long for a metric declared as java.lang.Integer, the check rejects it, and the whole birth payload fails to send. The module maintainer has confirmed this as a known 4.0.25 defect.

How do I restore publishing before upgrading?

Refresh the affected Transmitters from the module's Transmitters configuration page. Refreshing makes Transmission build and publish fresh birth payloads for those nodes instead of replaying the cached copies that fail to duplicate, and publishing resumes right away. It is a bridge, not the fix: the copy defect remains in the 4.0.25 build until you upgrade to 4.0.26.

Which Transmission release fixes the Integer-versus-Long birth error?

Transmission 4.0.26. The maintainer confirmed the fix reached the nightly builds first and that the official 4.0.26 release includes it, so 4.0.26 or a later released build is the one to run. After upgrading and restarting the gateway, confirm the module list shows the new build and the startup log shows a clean birth sequence with no Failed type check warning and no SparkplugInvalidTypeException from BirthCache.getDeepCopy.

Should I change a tag's data type because of this error?

No. The stack trace shows the failure inside the birth-cache copy routine, not in live tag value processing, and it does not identify which cached metric tripped the check. Changing tag types on the strength of this trace alone risks rewriting a configuration the evidence has not examined. Upgrade to 4.0.26 first; investigate a tag's data type only if the same cache-copy trace still appears after the fixed build is installed and confirmed.

How do I tell which Transmitters the error stopped?

The log lines do not name the node. Take the timestamp on the Failed to copy metric line, then match it against the Transmitters that went quiet, the ones with no live values since that moment. Refresh those and watch the log as their births republish. After the upgrade to 4.0.26, a gateway restart should bring every Transmitter back without this step.

Keep reading

  • Troubleshooting

    MQTT Transmission connected but missing from the node list

    A connected badge only certifies the broker session; the gateway node list fills from the node's birth message and subscriptions. The compatibility matrix lists module 4.0.13 as supported on Ignition 8.1.21, so the fault sits in subscription behavior or MQTT Server ACLs. Read three logs from one attempt, repair the specific grants, and roll the new edge back to Ignition 8.1.18 with module 4.0.8 if production waits.

    Edge computing and IIoT

  • Troubleshooting

    Why an MQTT Engine UDT instance shows up as a folder

    Stop MQTT Transmission on the Edge gateway, delete the affected tags and UDT definitions from MQTT Engine, re-enable Transmission and force the refresh; Engine then rebuilds the objects as UDT instances. On the 4.0.10 builds, upgrade both MQTT modules to 4.0.16 afterwards and restart the Ignition service to clear leaked TransmissionClient threads.

    Edge computing and IIoT

  • Troubleshooting

    MQTT Transmission fails to validate the primary host online

    The message means your Transmission Set has a Primary Host ID configured, but no Sparkplug Host Application with that same ID is connected and publishing its STATE online message. Match the identifiers and restore the host connection; clearing the Primary Host ID is a design change that removes the presence check, not a fix.

    Edge computing and IIoT

Why a Sparkplug integer array is missing in MQTT.fx