Closed 2x2xplz closed 4 years ago
According logs it crashed in jdwp. Does it mean, you've been upgrading from j8 to j11 and have this problem now or you've been using j11 for some time successfully and have problem on this specific project?
This was a new project, when running on standard OpenJDK 11 I got this error in IntelliJ when I try to Recompile my class (the only change is to a String):
Hot Swap failed.
MainKt: class not in class file format
MainKt: Class format error : class not in class file format
After this error, I tried to run with the TravaJDK. Unfortunately hotswapping also failed, with the com.sun.jdi.VMDisconnectedException : null
error and log listed above.
Thanks again for the help.
If you make simple class modification - change method body, no method or field addition/removal even the hotswap in standard JVM should work. I don't have Idea neither am I Kotlin programmer, but it looks like problem in your setup, since many are using HA+dcevm11 for Kotlin development.
Agreed, the fault is not with dcevm. Was hoping the logs would help pinpoint an incompatible dependency or help determine what code might be triggering the failure.
Thanks.
Just a follow up, I made some architecture changes to my project, including splitting it into 3 modules. No major changes to the code or to dependencies, however. Good news, all 3 can successfully be hotswapped with TravaJDK/DCEVM.
First, thanks in advance for your work on this project, it's normally a huge timesaver.
My latest Kotlin project (Gradle, using IntelliJ 2020.1 on Windows 10) runs on the TravaOpenJDK v.11 DCEVM distro. Unfortunately my classes fail to recompile via hotswap. The specific error (in the pink box) is
MainKt: Exception while reloading classes : com.sun.jdi.VMDisconnectedException : null
I have completely uninstalled IntelliJ then re-installed. I was able to get hotswapping to work with a very simple project. But once I rebuilt my main project, it failed again exactly the same. I have tried removing each individual dependency but am unable to isolate the problem.
I'd prefer not to post the entire
hs_err_pid
crash log, but selected sections are below, I can add more if it would help. Thanks again.