# IncompatibleClassChangeError on Spring Boot app

**URL:** <https://discuss.elastic.co/t/incompatibleclasschangeerror-on-spring-boot-app/261252>\
**Category:** APM\
**Tags:** java\
**Created:** [January 15, 2021, 10:34am UTC](https://discuss.elastic.co/t/incompatibleclasschangeerror-on-spring-boot-app/261252 "2021-01-15T10:34:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zzzykf](https://avatars.discourse-cdn.com/v4/letter/z/58f4c7/32.png) [@zzzykf](https://discuss.elastic.co/u/zzzykf)\
**Post date:** [January 15, 2021, 10:34am UTC](https://discuss.elastic.co/t/incompatibleclasschangeerror-on-spring-boot-app/261252/1 "2021-01-15T10:34:42Z")

</div>

Hi, I'm currently using Java APM Agent v1.19.0 with my Spring Boot (v2.2.1) app.  
I encountered an issue where by my app couldn't startup and throws IncompatibleClassChangeError.

I'm starting the app manually using java -javaagent:/apps/libs/elastic-apm-agent-1.20.0.jar

On the Spring Boot App start up, it hit this the following exception:  
[apm log|690x347](https://discuss.elastic.co/uploads/short-url/w4JFJqTfI251nvTwvI8yNqhyC4F.png)

The app can be started normally after I removed the -javaagent.

I'm using Open JDK v1.8.0\_252.

Any help is appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)\
**Post date:** [January 15, 2021, 12:33pm UTC](https://discuss.elastic.co/t/incompatibleclasschangeerror-on-spring-boot-app/261252/2 "2021-01-15T12:33:22Z")

</div>

Hi,

The error you report seems to be triggered by the [glowroot](https://github.com/glowroot/glowroot) java agent, and not directly by the Elastic APM Agent, but that could however be a side-effect of it.

- Did the issue happens only with 1.20.0 and not with 1.19.0 ?
- Does the issue happens when you remove the glowroot agent ?

Running with multiple agents at the same time (especially if they serve the same purpose) is definitely not recommended.

side note: sharing log in screenshot form is not the most convenient here, if you have to send more logs/errors, please copy/paste text or attach a file.

---

<div class="post-metadata">

**Author:** ![zzzykf](https://avatars.discourse-cdn.com/v4/letter/z/58f4c7/32.png) [@zzzykf](https://discuss.elastic.co/u/zzzykf)\
**Post date:** [January 15, 2021, 2:09pm UTC](https://discuss.elastic.co/t/incompatibleclasschangeerror-on-spring-boot-app/261252/3 "2021-01-15T14:09:32Z")

</div>

Hi,

My apologize for sharing the log in screenshot.  
Thank you for the info!  
The issue gone after I removed the glowroot agent.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 5, 2021, 10:09am UTC](https://discuss.elastic.co/t/incompatibleclasschangeerror-on-spring-boot-app/261252/4 "2021-02-05T10:09:43Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
