Tomcat 9 crashes with latest YourKit and Intellij 2020.2

Questions about YourKit Java Profiler
Locked
kyrill007
Posts: 12
Joined: Sun Dec 04, 2005 9:01 pm

Tomcat 9 crashes with latest YourKit and Intellij 2020.2

Post by kyrill007 »

I am trying to start an app inside Intellij 2020.2 and YourKit 2020.7-b369, but the app crashes (fails to start) with the following error:

Error running Tomcat Server. Exception occurred : java.lang.ClassCastException Exception message : class com.yourkit.idea14_1Plugin.MyRunner cannot be cast to class com.intellij.execution.runners.JvmPatchableProgramRunner (com.yourkit.idea14_1Plugin.MyRunner is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @3abcf89b; com.intellij.execution.runners.JvmPatchableProgramRunner is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @105b10b6)

YourKit and Intellij run Java 11, the Tomcat will start with Java 8.

Any ideas would be very appreciated.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Tomcat 9 crashes with latest YourKit and Intellij 2020.2

Post by Anton Katilin »

Hi,

We're investigating.

As a workaround, please enable profiling manually. In the profiler Welcome screen please use "Profile local Java EE server or application", choose the wizard option "Other Java application", then manually add the generated -agentpath parameter to the run configuration in IDEA. After that use "Run" action instead of "Profile".
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Re: Tomcat 9 crashes with latest YourKit and Intellij 2020.2

Post by Vladimir Kondratyev »

We have just released 2020.7.372 https://www.yourkit.com/download/
It should fix this issue. Please confirm.
kyrill007
Posts: 12
Joined: Sun Dec 04, 2005 9:01 pm

Re: Tomcat 9 crashes with latest YourKit and Intellij 2020.2

Post by kyrill007 »

Yes, it works now. Thanks!
Locked