HotswapProjects/HotswapAgent

Getting error every build

neondeex opened this issue · 1 comments

[12:18:52 INFO]: [STDOUT] [org.hotswap.agent.logging.AgentLoggerHandler] HOTSWAP AGENT: 12:18:52.506 ERROR (org.hotswap.agent.annotation.handler.PluginClassFileTransformer) - InvocationTargetException in transform method on plugin 'class org.hotswap.agent.plugin.proxy.ProxyPlugin' class 'me/neondeex/islandbuilding/listeners/MoveTwo'. java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.hotswap.agent.annotation.handler.PluginClassFileTransformer.transform(PluginClassFileTransformer.java:220) at org.hotswap.agent.annotation.handler.PluginClassFileTransformer.transform(PluginClassFileTransformer.java:112) at org.hotswap.agent.util.HotswapTransformer.transform(HotswapTransformer.java:246) at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244) at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188) at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:541) Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hotswap.agent.plugin.proxy.hscglib.GeneratorParametersRecorder at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method) at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1155) at java.base/jdk.internal.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:42) at java.base/jdk.internal.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:185) at java.base/java.lang.reflect.Field.acquireFieldAccessor(Field.java:1132) at java.base/java.lang.reflect.Field.getFieldAccessor(Field.java:1113) at java.base/java.lang.reflect.Field.get(Field.java:425) at org.hotswap.agent.plugin.proxy.hscglib.GeneratorParametersTransformer.getGeneratorParamsMap(GeneratorParametersTransformer.java:103) at org.hotswap.agent.plugin.proxy.hscglib.GeneratorParametersTransformer.getGeneratorParams(GeneratorParametersTransformer.java:130) at org.hotswap.agent.plugin.proxy.ProxyPlugin.transformCglibProxy(ProxyPlugin.java:110) ... 10 more Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoClassDefFoundError: org/hotswap/agent/logging/AgentLogger [in thread "JDWP Transport Listener: dt_socket"] at islandbuilding.jar//org.hotswap.agent.plugin.proxy.hscglib.GeneratorParametersRecorder.<clinit>(GeneratorParametersRecorder.java:38) ... 20 more

This are my vm options
-XX:+AllowEnhancedClassRedefinition -XX:HotswapAgent=external -javaagent:"/home/neondeex/.jdks/jbr-17.0.7/lib/hotswap/hotswap-agent.jar=disablePlugin=Log4j2"
Using jbr 17
how can i remove this?