Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

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: 5575
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: 5575
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: 5575
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot] and 8 guests

cron