Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
DevTools - java.lang.LinkageError: loader constraint violation in interface itable initialization #1061
Trying to use axon-framework with spring boot 2.1.4. When I add spring-boot-devtools dependency I get the following exception:
Found #491 but couldn't find a way to get around the exception. The only thing that works is removing devtools..
changed the title
java.lang.LinkageError: loader constraint violation in interface itable initialization
May 6, 2019
Thanks for filing this issue @mbogner. At the moment we suggest not to use the devtools, which as you've noticed does solve the issue. As @abuijze points out in the issue you've shared, it has to do with differing class loaders. It's under investigation from our part.
With Spring Boot (I'm currently at 2.1.3) I think I resolved devtools issues by creating a file:
My project was also adding/getting started with a library called modelmapper which had similar warnings for using Spring Boot Devtools.
I thought why not try the same workaround for Axon? And so far so good for a number of months now and a few Spring Boot version bumps. I don't know where this workaround may fall flat for others...