-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvocationTargetException when debugging after upgrading to IntelliJ IDEA 2024.3 #615
Comments
Seeing this as well after 2024.3 upgrade. |
intellij 2024.3 bundled debugger agent seems conflicting with hotswapAgent. |
New debugger agent is redefining core classes from JDK (can be seen by |
provide an vm option on debug agent side like -DdisableRedefineJdkClasses=true seem to be the fast way to fix this. java8 also has issues. |
The current workaround is to disable the "Instrumenting Agent" option. To do this, navigate to "Build, Execution, Deployment" → "Debugger" → "Async Stack Traces" and uncheck the "Instrumenting agent". |
I managed to setup HotswapAgent and got it running last week.
However, after upgrading to IntelliJ IDEA 2024.3, from 2024.2.4, I would receive the following error when debugging:
I don't know enough about the instrumentation to figure out what the error is, however, I can see in the release notes for 2024.3, that there have been changes to the standard hotswap. Perhaps there's a conflict here?
I have downgraded to 2024.2.4 again, and HotswapAgent works once more.
My setup:
IntelliJ IDEA Ultimate 2024.3
My project is language level 11
JDK: https://cache-redirector.jetbrains.com/intellij-jbr/jbr_dcevm-11_0_16-windows-x64-b2043.64.tar.gz
from https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr11_0_16b2043.64
HotswapAgent 2.0.1 jar added to lib/hotswap in the JBR.
Tomcat 9.0.96
VM Options: "-Dnashorn.args=--no-deprecation-warning -XX:+AllowEnhancedClassRedefinition -XX:HotswapAgent=fatjar"
If I run the project without "-XX:+AllowEnhancedClassRedefinition -XX:HotswapAgent=fatjar", then debug starts just fine in 2024.3.
The text was updated successfully, but these errors were encountered: