HotswapProjects/HotswapAgent

Application run failed

lei-huang-netty opened this issue · 2 comments

Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.hotswap.agent.plugin.spring.reload.SpringChangedAgent.onEvent(Lorg/hotswap/agent/plugin/spring/listener/SpringEvent;)V" the class loader (instance of org/springframework/boot/loader/LaunchedURLClassLoader) of the current class, org/hotswap/agent/plugin/spring/reload/SpringChangedAgent, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for interface org/hotswap/agent/plugin/spring/listener/SpringListener have different Class objects for the type org/hotswap/agent/plugin/spring/listener/SpringEvent used in the signature
at java.lang.Class.forName0(Native Method) ~[na:1.8.0_372]
at java.lang.Class.forName(Class.java:348) ~[na:1.8.0_372]
at org.hotswap.agent.plugin.spring.SpringPlugin.init(SpringPlugin.java:86) ~[classes!/:1.4.2-SNAPSHOT]
... 24 common frames omitted

Versions:

OS: Oracle Linux Server 7.9
Hotswap Agent: 1.4.2-SNAPSHOT
DCEVM: dcevm8u282b08
Spring: 5.3.23
Spring-boot: 2.7.5
Tomcat: 9.0.68

use java -jar