Problem with Findbugs

Questions about YourKit Java Profiler
Post Reply
test1
Posts: 9
Joined: Tue Aug 23, 2005 5:21 pm

Problem with Findbugs

Post by test1 »

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

Re: Problem with Findbugs

Post by Anton Katilin »

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

Re: Problem with Findbugs

Post by Anton Katilin »

P.S. Alternatively, please try to specify the startup option "disableall" on attach, to see if this solves the problem.
test1
Posts: 9
Joined: Tue Aug 23, 2005 5:21 pm

Re: Problem with Findbugs

Post by test1 »

disableall seems to help. However, in the log file, it does not seem to provide anything useful at all
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Problem with Findbugs

Post by Anton Katilin »

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.
Post Reply