# ERROR duplicate key: tracestate:

**URL:** <https://community.dynatrace.com/t/error-duplicate-key-tracestate/55332>\
**Category:** Open Q&A\
**Tags:** installation, services, oneagent, processes\
**Created:** [March 23, 2026, 5:33pm UTC](https://community.dynatrace.com/t/error-duplicate-key-tracestate/55332 "2026-03-23T17:33:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JorgeEMtz](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@JorgeEMtz](https://community.dynatrace.com/u/JorgeEMtz)\
**Post date:** [March 23, 2026, 5:33pm UTC](https://community.dynatrace.com/t/error-duplicate-key-tracestate/55332/1 "2026-03-23T17:33:48Z")

</div>

We have a mobile application running on a Linux host with the JBoss EAP 7.4 application server, where we have OneAgent 1.327 installed and running.

Problem:  
1. The Dynatrace console displays the following message on the Host page: “_This process must be restarted_”

2. When we restart the JBoss processes, the application fails to run. Then, the log file shows the following message: “**ERROR [stderr] (ServerService Thread Pool -- 98) com.google.gson.JsonSyntaxException: duplicate key: tracestate: a1350951-c51fa121@dt**”

3. However, if we stop the OneAgent and restart the JBoss processes, the application works correctly; but when we restart the OneAgent on the Host we receive again the message “_This process must be restarted"_ on the Dynatrace Console.

Could anyone give me some ideas on What I should check to fix this error?

 ![JBossInfoReiniciaProcesos.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/b/bb71159ccc626a351764a66f64b6670ea2912fb1.png)  
 ![JBossInfoReiniciaProcesos02.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/1/c135b8ab5f0638eaf652b70a05fbf5b0365a284a.png)

---

<div class="post-metadata">

**Author:** ![marina\_pollehn](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marina_pollehn/32/39120_2.png) [@marina\_pollehn](https://community.dynatrace.com/u/marina_pollehn)\
**Post date:** [April 8, 2026, 8:44am UTC](https://community.dynatrace.com/t/error-duplicate-key-tracestate/55332/2 "2026-04-08T08:44:14Z")

</div>

Hmmm I haves some ideas to at least begin a troubleshoot.

1. Did you remove any old Dynatrace instrumentation before installing the current version of the OneAgent?&nbsp;If you check in&nbsp;standalone.conf or domain.conf, do you find a “manual” path to an older library? You can search for “agent” in the files. Then it might be, that two injections are being forced (manual + the new automatic). If you find it, comment it out and restart the process. Any improvement?

2. Are there any other agents of observability tools that you are using? Sometimes they’re in each other’s way… in case you do, what happens if you turn the other one off? Or at least run it in an infra-only scenario without injection?

I am basically just testing for any sort of double instrumentation now, it might also be something else, but this could be a good start to check.

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [April 8, 2026, 1:02pm UTC](https://community.dynatrace.com/t/error-duplicate-key-tracestate/55332/3 "2026-04-08T13:02:22Z")

</div>

Hi,

This most likely looks like double instrumentation or duplicate trace-context injection, rather than a JBoss restart issue itself.

The “This process must be restarted” message is expected after a OneAgent installation or update, because already running Java processes must be restarted so OneAgent can inject and start deep monitoring. So that part is normal.

The error

```markup
duplicate key: tracestate: ...@dt

```

suggests, as&nbsp;[@marina\_pollehn](https://community.dynatrace.com/user/2456)&nbsp; mentioned, that the application or one of its parsers/serializers is seeing more than one tracestate entry. Because of that, I would check whether any of the following are present at the same time:

- old/manual Dynatrace instrumentation in standalone.conf or domain.conf
- another Java agent (-javaagent)
- OpenTelemetry or another APM agent running together with OneAgent
- custom code parsing trace headers as JSON/maps and failing on duplicates

Dynatrace documentation also warns that when OneAgent and OpenTelemetry both capture/export tracing data, you can end up with duplicate spans and conflicting telemetry.

[OneAgent with OpenTelemetry data](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/oneagent-and-opentelemetry/oneagent-otel)

Check&nbsp;standalone.conf, standalone.conf.bat, domain.conf, and JBoss startup scripts for:

- -javaagent
- old Dynatrace/AppMon libraries
- OpenTelemetry Java agent

Then env variables like JAVA\_OPTS or&nbsp;JAVA\_TOOL\_OPTIONS.  
Also that&nbsp;the application also includes a manual OTel or Dynatrace SDK.

As a test, you could temporarily run the process in infra-only mode or without deep monitoring to confirm whether the issue is caused by code instrumentation rather than JBoss itself. Dynatrace supports this through monitoring mode and process-group deep monitoring settings.

here is doc how change monitoring mode:&nbsp;[OneAgent monitoring modes](https://docs.dynatrace.com/docs/platform/oneagent/monitoring-modes/monitoring-modes)

and here how disable deep monitoring on process group:&nbsp;[Process deep monitoring](https://docs.dynatrace.com/docs/observe/infrastructure-observability/process-groups/configuration/pg-monitoring)
