# \#java

**URL:** https://discuss.elastic.co/tag/java/32.md

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

---

## [Elastic APM Java agent on Java 25 with inferred spans](https://discuss.elastic.co/t/elastic-apm-java-agent-on-java-25-with-inferred-spans/383042)

<div class="topic-metadata">

**Author:** [@rhuitl](https://discuss.elastic.co/u/rhuitl)\
**Replies:** 4\
**Last updated:** [September 28, 2026, 12:40pm UTC](https://discuss.elastic.co/t/elastic-apm-java-agent-on-java-25-with-inferred-spans/383042 "2026-09-28T12:40:56Z")

</div>

I’d like to understand how to get inferred spans working with Java 25. It’s working with Java 17. Java agent version: 1.55.0 Java 25 (Azul) Profiling configuration options | APM Java agent says: “In addition only Java…

---

## [Messaging.message.conversation\_id visible in Traces but not searchable in Discover](https://discuss.elastic.co/t/messaging-message-conversation-id-visible-in-traces-but-not-searchable-in-discover/390038)

<div class="topic-metadata">

**Author:** [@ex.ko](https://discuss.elastic.co/u/ex.ko)\
**Replies:** 9\
**Last updated:** [September 8, 2026, 10:50am UTC](https://discuss.elastic.co/t/messaging-message-conversation-id-visible-in-traces-but-not-searchable-in-discover/390038 "2026-09-08T10:50:29Z")

</div>

Hi everyone, We're using the JMS Correlation ID in our application. In Elastic APM / Traces, I can see the field and its value on individual spans in the field: attributes.messaging.message.conversation\_id However, I c…

---

## [Traceparent with Spring-ai from Github Copilot](https://discuss.elastic.co/t/traceparent-with-spring-ai-from-github-copilot/389953)

<div class="topic-metadata">

**Author:** [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Replies:** 1\
**Last updated:** [September 1, 2026, 1:19pm UTC](https://discuss.elastic.co/t/traceparent-with-spring-ai-from-github-copilot/389953 "2026-09-01T13:19:36Z")

</div>

Kibana version: 8.19.17 Elasticsearch version: 8.19.17 APM Server version: 8.19.17 APM Agent language and version: Java, 1.56.0 Browser version: Chrome Original install method (e.g. download page, yum, deb, from so…

---

## [Enable Response Body in APM securely?](https://discuss.elastic.co/t/enable-response-body-in-apm-securely/388627)

<div class="topic-metadata">

**Author:** [@kkumar123](https://discuss.elastic.co/u/kkumar123)\
**Replies:** 3\
**Last updated:** [August 3, 2026, 7:24pm UTC](https://discuss.elastic.co/t/enable-response-body-in-apm-securely/388627 "2026-08-03T19:24:38Z")

</div>

Looking for enabling the APM Response body from Kibana or Observability UI instead of code if not possible then how we can do it code but securely. Kibana version: 9.3.4 Elasticsearch version: 9.3.4 APM Server versio…

---

## [Method not found java.util.Set org.springframework.http.HttpHeaders.entrySet()](https://discuss.elastic.co/t/method-not-found-java-util-set-org-springframework-http-httpheaders-entryset/387412)

<div class="topic-metadata">

**Author:** [@VVK](https://discuss.elastic.co/u/VVK)\
**Replies:** 1\
**Last updated:** [July 1, 2026, 7:27am UTC](https://discuss.elastic.co/t/method-not-found-java-util-set-org-springframework-http-httpheaders-entryset/387412 "2026-07-01T07:27:14Z")

</div>

This message comes here because while creating issue, it is recommended to discuss here before creating an issue in github. I am using 1.56.0 java apm agent which is supporting springboot 4.0 and spring webflux on expe…

---

## [Instrumentation failure with Java Agent 1.56](https://discuss.elastic.co/t/instrumentation-failure-with-java-agent-1-56/387319)

<div class="topic-metadata">

**Author:** [@igorlovich](https://discuss.elastic.co/u/igorlovich)\
**Replies:** 5\
**Last updated:** [June 26, 2026, 12:26pm UTC](https://discuss.elastic.co/t/instrumentation-failure-with-java-agent-1-56/387319 "2026-06-26T12:26:03Z")

</div>

Hello, After upgrading to Java Agent 1.56 Instrumentation stopped working. It works fine with 1.55.6. Java version: 26.0.1+8-FR (Amazon.com Inc.) Linux 6.12.88-119.157.amzn2023.x86\_64 Tomcat version: 10.1.55 Linux: A…

---

## [Java APM agent crashes JVM](https://discuss.elastic.co/t/java-apm-agent-crashes-jvm/386522)

<div class="topic-metadata">

**Author:** [@adminunix](https://discuss.elastic.co/u/adminunix)\
**Replies:** 3\
**Last updated:** [May 27, 2026, 1:59pm UTC](https://discuss.elastic.co/t/java-apm-agent-crashes-jvm/386522 "2026-05-27T13:59:31Z")

</div>

Hello, The APM agent has caused a JVM crash on a production Tomcat system. Kibana version: 9.4.0 Elasticsearch version: 9.4.0 APM Server version: 9.4.0 APM Agent language and version: APM Java agent version 1.55.…

---

## [Problem with distributing tracing for Jakarta 10 and payara 6](https://discuss.elastic.co/t/problem-with-distributing-tracing-for-jakarta-10-and-payara-6/372920)

<div class="topic-metadata">

**Author:** [@ciment](https://discuss.elastic.co/u/ciment)\
**Replies:** 10\
**Last updated:** [February 5, 2026, 9:52am UTC](https://discuss.elastic.co/t/problem-with-distributing-tracing-for-jakarta-10-and-payara-6/372920 "2026-02-05T09:52:54Z")

</div>

Hi, I have a problem with distributing tracing after migration of my application (few microservices) from Payara 5.201 to 6.2024.12. During migration we have already updated application to Jakarta 10 (previous Java EE 8…

---

## [How to make EDOT not extract traceparentid from external requests?](https://discuss.elastic.co/t/how-to-make-edot-not-extract-traceparentid-from-external-requests/384457)

<div class="topic-metadata">

**Author:** [@nilsen](https://discuss.elastic.co/u/nilsen)\
**Replies:** 5\
**Last updated:** [January 12, 2026, 2:58pm UTC](https://discuss.elastic.co/t/how-to-make-edot-not-extract-traceparentid-from-external-requests/384457 "2026-01-12T14:58:51Z")

</div>

I'm using the EDOT for Java (elastic-otel-javaagent-1.6.0.jar) which automatically extracts traceparentid from incoming HTTP requests for distributed tracing. This works as expected, however, when our external users also…

---

## [APM Errors showing as "N/A" when using Java agent log\_sending=true (errors coming from logs)](https://discuss.elastic.co/t/apm-errors-showing-as-n-a-when-using-java-agent-log-sending-true-errors-coming-from-logs/384232)

<div class="topic-metadata">

**Author:** [@nicolasbalao](https://discuss.elastic.co/u/nicolasbalao)\
**Replies:** 1\
**Last updated:** [January 5, 2026, 12:07pm UTC](https://discuss.elastic.co/t/apm-errors-showing-as-n-a-when-using-java-agent-log-sending-true-errors-coming-from-logs/384232 "2026-01-05T12:07:16Z")

</div>

Versions Kibana version: 9.2.2 Elasticsearch version: 9.2.2 APM Server version: 9.2.2 (via Fleet integration) APM Agent language and version: Java agent 1.55.2 Browser version: Chrome (latest) Installation Original i…

---

## [Spring Boot 4.0 / Spring Framework 7.0 Incompatibility with Elastic APM Java Agent](https://discuss.elastic.co/t/spring-boot-4-0-spring-framework-7-0-incompatibility-with-elastic-apm-java-agent/384087)

<div class="topic-metadata">

**Author:** [@cthurston-clgx](https://discuss.elastic.co/u/cthurston-clgx)\
**Replies:** 4\
**Last updated:** [January 5, 2026, 9:26am UTC](https://discuss.elastic.co/t/spring-boot-4-0-spring-framework-7-0-incompatibility-with-elastic-apm-java-agent/384087 "2026-01-05T09:26:42Z")

</div>

\*\*Kibana version:\*\* N/A (issue occurs during instrumentation) \*\*Elasticsearch version:\*\* N/A (issue occurs during instrumentation) \*\*APM Server version:\*\* N/A (issue occurs during instrumentation) \*\*APM Agent language…

---

## [Any Reason traces-apm@template is using Standard Index mode instead of timeseries or logsdb](https://discuss.elastic.co/t/any-reason-traces-apm-template-is-using-standard-index-mode-instead-of-timeseries-or-logsdb/383301)

<div class="topic-metadata">

**Author:** [@Serak\_Shiferaw](https://discuss.elastic.co/u/Serak_Shiferaw)\
**Replies:** 10\
**Last updated:** [December 22, 2025, 8:51am UTC](https://discuss.elastic.co/t/any-reason-traces-apm-template-is-using-standard-index-mode-instead-of-timeseries-or-logsdb/383301 "2025-12-22T08:51:09Z")

</div>

we are capturing enterprise java traces, and the trace is filling up all the spaces on my cluster, its generating 1.4TB daily and i cant keep up, then upon checking there is no compression on the created index and its ju…

---

## [Question about APM Logs feature support across agents](https://discuss.elastic.co/t/question-about-apm-logs-feature-support-across-agents/383418)

<div class="topic-metadata">

**Author:** [@barcus](https://discuss.elastic.co/u/barcus)\
**Replies:** 3\
**Last updated:** [December 4, 2025, 3:07pm UTC](https://discuss.elastic.co/t/question-about-apm-logs-feature-support-across-agents/383418 "2025-12-04T15:07:34Z")

</div>

Hello APM team, I have a question regarding the experimental feature that allows application logs to be ingested through the APM Agent and stored directly into the APM log indices (one index per APM service). From what…

---

## [Enable APM for springboot running on windows](https://discuss.elastic.co/t/enable-apm-for-springboot-running-on-windows/383568)

<div class="topic-metadata">

**Author:** [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Replies:** 20\
**Last updated:** [November 26, 2025, 2:56pm UTC](https://discuss.elastic.co/t/enable-apm-for-springboot-running-on-windows/383568 "2025-11-26T14:56:31Z")

</div>

Hello , I want to enable APM for java application running on tomcat server(windows). I’ve followed the steps mentioned in the setup-tomcat-windows . I have restarted the tomcat service running on windows but it was not …

---

## [JsonXContent NoClassDefFoundError only in Production — Works Locally](https://discuss.elastic.co/t/jsonxcontent-noclassdeffounderror-only-in-production-works-locally/383673)

<div class="topic-metadata">

**Author:** [@Md\_Nisar\_Ahmed](https://discuss.elastic.co/u/Md_Nisar_Ahmed)\
**Replies:** 3\
**Last updated:** [November 26, 2025, 1:35pm UTC](https://discuss.elastic.co/t/jsonxcontent-noclassdeffounderror-only-in-production-works-locally/383673 "2025-11-26T13:35:51Z")

</div>

Hi team, I am getting this error only in my production server, but the exact same code works perfectly on my local machine: java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.xcontent.json.Js…

---

## [Android APM (EDOT auto-instrumentation) not tracking full app activity](https://discuss.elastic.co/t/android-apm-edot-auto-instrumentation-not-tracking-full-app-activity/383422)

<div class="topic-metadata">

**Author:** [@Faisal\_siddiqui](https://discuss.elastic.co/u/Faisal_siddiqui)\
**Replies:** 1\
**Last updated:** [November 13, 2025, 2:49pm UTC](https://discuss.elastic.co/t/android-apm-edot-auto-instrumentation-not-tracking-full-app-activity/383422 "2025-11-13T14:49:47Z")

</div>

Hello, team! I integrated Elastic APM in my Android app using EDOT (Elastic Distribution of OpenTelemetry) for auto-instrumentation, but it’s only tracking a few API calls — not the complete app activity. Most screens, …

---

## [How to use Universal Profiling to minitor JBoss](https://discuss.elastic.co/t/how-to-use-universal-profiling-to-minitor-jboss/383395)

<div class="topic-metadata">

**Author:** [@edgarmat1964](https://discuss.elastic.co/u/edgarmat1964)\
**Replies:** 1\
**Last updated:** [November 12, 2025, 2:44pm UTC](https://discuss.elastic.co/t/how-to-use-universal-profiling-to-minitor-jboss/383395 "2025-11-12T14:44:57Z")

</div>

LS, at the moment we are using an additional javaagent argument on JBoss’ commandline to monitor it using apm. Which works but has (at least) one downside: to roll out a new version of the apm agent you have to restart …

---

## [Ingest pipeline for APM traces not working](https://discuss.elastic.co/t/ingest-pipeline-for-apm-traces-not-working/382419)

<div class="topic-metadata">

**Author:** [@SamehSaeed](https://discuss.elastic.co/u/SamehSaeed)\
**Replies:** 4\
**Last updated:** [October 6, 2025, 2:17pm UTC](https://discuss.elastic.co/t/ingest-pipeline-for-apm-traces-not-working/382419 "2025-10-06T14:17:14Z")

</div>

Kibana version:9.0.3 Elasticsearch version:9.0.3 APM Server version:9.0.3 APM Agent language and version: Java, 1.49.0 Browser version: Chrome 140.0.7339.81 Original install method (e.g. download page, yum, deb, fro…

---

## [APM Central configuration not working](https://discuss.elastic.co/t/apm-central-configuration-not-working/382194)

<div class="topic-metadata">

**Author:** [@SamehSaeed](https://discuss.elastic.co/u/SamehSaeed)\
**Replies:** 8\
**Last updated:** [September 29, 2025, 12:31pm UTC](https://discuss.elastic.co/t/apm-central-configuration-not-working/382194 "2025-09-29T12:31:55Z")

</div>

Kibana version:9.0.3 Elasticsearch version:9.0.3 APM Server version:9.0.3 APM Agent language and version:1.49.0 Browser version: Chrome Version 140.0.7339.128 (Official Build) (64-bit) Original install method (e.g. …

---

## [Trying to ingore OPTIONS http method](https://discuss.elastic.co/t/trying-to-ingore-options-http-method/380758)

<div class="topic-metadata">

**Author:** [@miguel.longo](https://discuss.elastic.co/u/miguel.longo)\
**Replies:** 5\
**Last updated:** [September 15, 2025, 1:29pm UTC](https://discuss.elastic.co/t/trying-to-ingore-options-http-method/380758 "2025-09-15T13:29:18Z")

</div>

Kibana version: 8.6.2 Elasticsearch version: 8.6.2 APM Server version: 8.6.2 APM Agent language and version: Java Agent v1.52.1 Hello Folks. I'd like to know, if it's possible in java agent arguments, remove the pre…

---

## [Elastic-apm Java agent the unable to get msearch quries and aggregate & find mongo quries](https://discuss.elastic.co/t/elastic-apm-java-agent-the-unable-to-get-msearch-quries-and-aggregate-find-mongo-quries/381795)

<div class="topic-metadata">

**Author:** [@uttamkrpanda](https://discuss.elastic.co/u/uttamkrpanda)\
**Replies:** 6\
**Last updated:** [September 10, 2025, 10:53am UTC](https://discuss.elastic.co/t/elastic-apm-java-agent-the-unable-to-get-msearch-quries-and-aggregate-find-mongo-quries/381795 "2025-09-10T10:53:26Z")

</div>

Kibana version: 8.17 Elasticsearch version: 8.17.0 APM Server version: 1.55.0 APM Agent language and version: apm-javaagent , 1.55.0 Browser version: Original install method (e.g. download page, yum, deb, from sour…

---

## [APM FileSystemAlreadyExistsException](https://discuss.elastic.co/t/apm-filesystemalreadyexistsexception/381337)

<div class="topic-metadata">

**Author:** [@jrf](https://discuss.elastic.co/u/jrf)\
**Replies:** 9\
**Last updated:** [September 3, 2025, 9:09am UTC](https://discuss.elastic.co/t/apm-filesystemalreadyexistsexception/381337 "2025-09-03T09:09:50Z")

</div>

APM Server version: 8.18.2 APM Agent language and version: Java 1.55.0 Is there anything special in your setup? This is a Scala application running on Kubernetes with embedded Jetty server. Entrypoint for the container…

---

## [Apm-server set-up for version 9.1.2](https://discuss.elastic.co/t/apm-server-set-up-for-version-9-1-2/381437)

<div class="topic-metadata">

**Author:** [@Namita\_Jaokar](https://discuss.elastic.co/u/Namita_Jaokar)\
**Replies:** 6\
**Last updated:** [September 1, 2025, 6:29am UTC](https://discuss.elastic.co/t/apm-server-set-up-for-version-9-1-2/381437 "2025-09-01T06:29:10Z")

</div>

Hi Team, Our team for a brief time had elasticsearch , kibana and standalone apm-server all having version 8.6 for observability and visualizing traces in kibana. Recently we migrated to the latest version i.e. 9.1.2 v…

---

## [ApmServer stopped infusing kubernetes.pod.name in output stream](https://discuss.elastic.co/t/apmserver-stopped-infusing-kubernetes-pod-name-in-output-stream/380252)

<div class="topic-metadata">

**Author:** [@VVK](https://discuss.elastic.co/u/VVK)\
**Replies:** 1\
**Last updated:** [July 18, 2025, 4:00pm UTC](https://discuss.elastic.co/t/apmserver-stopped-infusing-kubernetes-pod-name-in-output-stream/380252 "2025-07-18T16:00:14Z")

</div>

Kibana version: 8.17.6 Elasticsearch version: 8.17.2 APM Server version: 8.16.2 APM Agent language and version: Java/ Nodejs. Java version: apm-agent-nodejs/4.4.1 / ; apm-agent-nodejs/3.52.2 apm-agent-java/1.38.…

---

## [Elastic APM shows 100% CPU usage but the cause is unclear – need help!](https://discuss.elastic.co/t/elastic-apm-shows-100-cpu-usage-but-the-cause-is-unclear-need-help/376173)

<div class="topic-metadata">

**Author:** [@truongsontn96](https://discuss.elastic.co/u/truongsontn96)\
**Replies:** 9\
**Last updated:** [July 7, 2025, 1:17pm UTC](https://discuss.elastic.co/t/elastic-apm-shows-100-cpu-usage-but-the-cause-is-unclear-need-help/376173 "2025-07-07T13:17:27Z")

</div>

I am experiencing an issue with Elastic APM where the system.cpu.total.norm.pct metric for a specific service is always 1, indicating that CPU usage is constantly at 100%, However, when I check inside the container, I d…

---

## [APM transaction name grouping](https://discuss.elastic.co/t/apm-transaction-name-grouping/379513)

<div class="topic-metadata">

**Author:** [@Johan\_Vandevenne](https://discuss.elastic.co/u/Johan_Vandevenne)\
**Replies:** 6\
**Last updated:** [June 27, 2025, 1:13pm UTC](https://discuss.elastic.co/t/apm-transaction-name-grouping/379513 "2025-06-27T13:13:27Z")

</div>

Kibana version: 8.17.6 Elasticsearch version: 8.17.6 APM Server version: 8.17.6 APM Agent language and version: Elastic OTEL Java agent 1.4.1 Browser version: Chrome Version 137.0.7151.120 (Official Build) (64-bit) O…

---

## [Identify Java Spring boot services by its application name](https://discuss.elastic.co/t/identify-java-spring-boot-services-by-its-application-name/379428)

<div class="topic-metadata">

**Author:** [@Namita\_Jaokar](https://discuss.elastic.co/u/Namita_Jaokar)\
**Replies:** 5\
**Last updated:** [June 24, 2025, 1:12pm UTC](https://discuss.elastic.co/t/identify-java-spring-boot-services-by-its-application-name/379428 "2025-06-24T13:12:47Z")

</div>

Hi Team, Below are the version details for the Elastic APM agent configuration. I have a microservice based java application and the java agent jar is attached to all the java services (.jar) under same agent name. I n…

---

## [This can happen when not properly deactivating a previous span or context](https://discuss.elastic.co/t/this-can-happen-when-not-properly-deactivating-a-previous-span-or-context/378026)

<div class="topic-metadata">

**Author:** [@Oskars\_Adamovics](https://discuss.elastic.co/u/Oskars_Adamovics)\
**Replies:** 7\
**Last updated:** [May 15, 2025, 11:59am UTC](https://discuss.elastic.co/t/this-can-happen-when-not-properly-deactivating-a-previous-span-or-context/378026 "2025-05-15T11:59:53Z")

</div>

Current stack setup: Spring boot version: 3.4.1 Apache camel version: 4.9.0 ActiveMQ: 5.14.0 Elastic apm agent version: 1.53.0 Apm server version: 8.12.2 Java version: 17 After upgrading Spring boot version from 2.7.…

---

## [JAVA APM Agent latest version is crashing the jvm of the application](https://discuss.elastic.co/t/java-apm-agent-latest-version-is-crashing-the-jvm-of-the-application/377830)

<div class="topic-metadata">

**Author:** [@AKAM14](https://discuss.elastic.co/u/AKAM14)\
**Replies:** 4\
**Last updated:** [May 6, 2025, 8:30am UTC](https://discuss.elastic.co/t/java-apm-agent-latest-version-is-crashing-the-jvm-of-the-application/377830 "2025-05-06T08:30:51Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight\_smile: TIP 1: select at lea…

---

## [APM transaction not shown in request but clearly in custom](https://discuss.elastic.co/t/apm-transaction-not-shown-in-request-but-clearly-in-custom/377574)

<div class="topic-metadata">

**Author:** [@AnuragAgarwal](https://discuss.elastic.co/u/AnuragAgarwal)\
**Replies:** 7\
**Last updated:** [April 30, 2025, 8:59am UTC](https://discuss.elastic.co/t/apm-transaction-not-shown-in-request-but-clearly-in-custom/377574 "2025-04-30T08:59:17Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight\_smile: TIP 1: select at lea…

[Next page](https://discuss.elastic.co/tag/java/32.md?match_all_tags=true&page=1&tags%5B%5D=java)
