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.

java.lang.ClassCastException while CPU Profiling -> Tracing

Moderators: Vladimir Kondratyev, Anton Katilin

java.lang.ClassCastException while CPU Profiling -> Tracing

Postby esolakov » Mon Jan 16, 2017 1:05 pm

Hello,
While profiling with the option CPU Profiling -> Tracing
I received the following error in yourkit agent and the execution of my web application ended with 500 http code:

Code: Select all
java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
        at com.yourkit.probes.builtin.Servlets.getRequestAttribute(Servlets.java:186)
        at com.yourkit.probes.builtin.Servlets.createRequestRow(Servlets.java:124)
        at com.yourkit.probes.builtin.Servlets.access$100(Servlets.java:38)
        at com.yourkit.probes.builtin.Servlets$Filter_doFilter_Probe.onEnter(Servlets.java:106)



I am using the latest java agent form yourkit.
I am profiling JBOSS 4 (Java 6).

Any ideas?

Thanks.
esolakov
 
Posts: 3
Joined: Mon Jan 16, 2017 12:57 pm

Re: java.lang.ClassCastException while CPU Profiling -> Trac

Postby Anton Katilin » Mon Jan 16, 2017 1:26 pm

Hi,

It's a new issue and we'll fix it ASAP.

As a workaround, you may add the startup option probe_disable=.Servlets

Do you use YourKit Java Profiler 2016.02 or EAP?

Best regards,
Anton
Anton Katilin
 
Posts: 6027
Joined: Wed Aug 11, 2004 8:37 am

Re: java.lang.ClassCastException while CPU Profiling -> Trac

Postby esolakov » Mon Jan 16, 2017 1:58 pm

Hi,

Thanks.

I am using YourKit Java Profiler 2016.02

Best regards, Encho.
esolakov
 
Posts: 3
Joined: Mon Jan 16, 2017 12:57 pm

Re: java.lang.ClassCastException while CPU Profiling -> Trac

Postby Anton Katilin » Mon Jan 16, 2017 4:30 pm

Hi Encho,

We've just published build 2016.02-b46 that solves the problem.

Best regards,
Anton
Anton Katilin
 
Posts: 6027
Joined: Wed Aug 11, 2004 8:37 am

Re: java.lang.ClassCastException while CPU Profiling -> Trac

Postby esolakov » Tue Jan 24, 2017 11:06 am

Hi Anton,

Thanks.
I updated and the issue is not reproducible.

Best regards, Encho.
esolakov
 
Posts: 3
Joined: Mon Jan 16, 2017 12:57 pm

Re: java.lang.ClassCastException while CPU Profiling -> Trac

Postby Anton Katilin » Wed Jan 25, 2017 10:14 am

Hi Encho

Thank you for the feedback.

Best regards,
Anton
Anton Katilin
 
Posts: 6027
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users 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.