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.

Problem with Findbugs

Moderators: Vladimir Kondratyev, Anton Katilin

Problem with Findbugs

Postby test1 » Tue Oct 25, 2016 9:16 pm

When I'm trying to instrument FindBugs within maven build, I encounter

Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:3.0.4:findbugs (findbugs) on project ......: Execution findbugs of goal org.codehaus.mojo:findbugs-maven-plugin:3.0.4:findbugs failed: java.lang.NoClassDefFoundError: com/yourkit/runtime/Callback: com.yourkit.runtime.Callback -> [Help 1]

when attaching YourKit onto a maven build. Do you have any idea how I can avoid this? Is it because I use "attach" mode?
test1
 
Posts: 9
Joined: Tue Aug 23, 2005 5:21 pm

Re: Problem with Findbugs

Postby Anton Katilin » Wed Oct 26, 2016 12:59 pm

Attach mode can cause issues. Please try starting with the agent instead.

Anyway, could you please provide the profiler agent log file <user home>/.yjp/log/<session name>-<pid>.log
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am

Re: Problem with Findbugs

Postby Anton Katilin » Wed Oct 26, 2016 1:01 pm

P.S. Alternatively, please try to specify the startup option "disableall" on attach, to see if this solves the problem.
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am

Re: Problem with Findbugs

Postby test1 » Wed Oct 26, 2016 5:03 pm

disableall seems to help. However, in the log file, it does not seem to provide anything useful at all
test1
 
Posts: 9
Joined: Tue Aug 23, 2005 5:21 pm

Re: Problem with Findbugs

Postby Anton Katilin » Wed Oct 26, 2016 5:09 pm

What do you expect to see in the log? The log file is for troubleshooting purposes only. It does not contain any user-oriented information. Instead, you should turn profiling modes on/off and capture snapshots to get profiling information.
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 4 guests

cron