java.lang.ClassCastException while CPU Profiling -> Tracing

Questions about YourKit Java Profiler
Post Reply
esolakov
Posts: 3
Joined: Mon Jan 16, 2017 12:57 pm

java.lang.ClassCastException while CPU Profiling -> Tracing

Post by esolakov »

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

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

Post by Anton Katilin »

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
esolakov
Posts: 3
Joined: Mon Jan 16, 2017 12:57 pm

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

Post by esolakov »

Hi,

Thanks.

I am using YourKit Java Profiler 2016.02

Best regards, Encho.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

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

Post by Anton Katilin »

Hi Encho,

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

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

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

Post by esolakov »

Hi Anton,

Thanks.
I updated and the issue is not reproducible.

Best regards, Encho.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

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

Post by Anton Katilin »

Hi Encho

Thank you for the feedback.

Best regards,
Anton
Post Reply