Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy to use performance and memory .NET profiler for Windows and Linux.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

Tomcat 9 crashes with latest YourKit and Intellij 2020.2

Moderators: Vladimir Kondratyev, Anton Katilin

Tomcat 9 crashes with latest YourKit and Intellij 2020.2

Postby kyrill007 » Tue Aug 11, 2020 11:33 pm

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.
kyrill007
 
Posts: 12
Joined: Sun Dec 04, 2005 9:01 pm
Location: Toronto

Re: Tomcat 9 crashes with latest YourKit and Intellij 2020.2

Postby Anton Katilin » Wed Aug 12, 2020 7:44 am

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".
Anton Katilin
 
Posts: 6029
Joined: Wed Aug 11, 2004 8:37 am

Re: Tomcat 9 crashes with latest YourKit and Intellij 2020.2

Postby Vladimir Kondratyev » Wed Aug 12, 2020 1:58 pm

We have just released 2020.7.372 https://www.yourkit.com/download/
It should fix this issue. Please confirm.
Vladimir Kondratyev
 
Posts: 1527
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Re: Tomcat 9 crashes with latest YourKit and Intellij 2020.2

Postby kyrill007 » Thu Aug 13, 2020 12:18 am

Yes, it works now. Thanks!
kyrill007
 
Posts: 12
Joined: Sun Dec 04, 2005 9:01 pm
Location: Toronto


Return to Java Profiler

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.