HotswapProjects / HotswapAgent

Java unlimited redefinition of classes at runtime.
GNU General Public License v2.0
2.36k stars 493 forks source link

Application run failed #523

Open lei-huang-netty opened 11 months ago

lei-huang-netty commented 11 months ago

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

lei-huang-netty commented 11 months ago

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

lei-huang-netty commented 11 months ago

use java -jar