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?
Problem with Findbugs
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Problem with Findbugs
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
Anyway, could you please provide the profiler agent log file <user home>/.yjp/log/<session name>-<pid>.log
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Problem with Findbugs
P.S. Alternatively, please try to specify the startup option "disableall" on attach, to see if this solves the problem.
-
- Posts: 9
- Joined: Tue Aug 23, 2005 5:21 pm
Re: Problem with Findbugs
disableall seems to help. However, in the log file, it does not seem to provide anything useful at all
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Problem with Findbugs
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.