FindBugs Plugin

Plugin Information

Plugin ID findbugs
Latest Release 4.48-h-1
Latest Release Date Mar 7, 2013
Sources Github
Support Eclipse Hudson Forum
Issue Tracking Eclipse Bugzilla

This plugin generates the trend report for FindBugs, an open source program which uses static analysis to look for bugs in Java code. 

Quick Overview

Installation Requirements
This plug-in requires the utility plug-in "analysis-core" (called "Static Analysis Utilities" in the update manager). Please ensure that the latest version of this plug-in is also installed.

As noted by Jonathan Benoit, previously installed version of Findbugs may break, if  latest version of "analysis-core" is installed with out updating Findbugs plugin.

Description

This plug-in is supported by the Static Analysis Collector plug-in that collects different analysis results and shows the results in aggregated trend graphs. Additionally, health reporting and build stability is also based on the aggregated results.

The FindBugs plug-in scans for findbugs.xml files in the build workspace and reports the number of warnings found. This plug-in is part of the suite of static code analysis plug-ins that are documented on a separate WIKI page.

The following features are provided by this plug-in:

  • Configuration of the files to scan after a build.
  • Build summary showing the new and fixed warnings of a build
  • Several trend reports showing the number of warnings per build
  • Overview of the found warnings per module, package, category, or type
    • Parsing of Maven pom.xml or Ant build.xml configuration files to obtain the module or project name
    • Parsing of Java or C# files to obtain the package or name space name
  • Detail reports of the found warnings optionally filtered by severity (or new and fixed)
    • Short messages is read from the report file
    • Detailed description is read from the FindBugs library
  • Colored HTML display of the corresponding source file and warning lines:
    • Direct link to the warning line
    • Highlighting of single lines as well as line ranges
    • Highlighting of multiple line ranges per warning (different color for primary range)
    • Tool tip describing the warning message
  • Failure threshold to mark a build as unstable
  • Configurable project health support
  • Support for the findbugs ant task and the maven-findbugs-plugin 1.1.1 and newer
  • Works with the freestyle and native m2 build option of Hudson (activated on goal findbugs:findbugs or site)
  • Remote API to export the build quality and found warnings
  • Localization available for: DE, JA (Please help to localize findbugs for your locale!)

Labels:

plugin-maven plugin-maven Delete
tier3-compat-plugin tier3-compat-plugin Delete
plugin-report plugin-report Delete
supports-dashboard-view supports-dashboard-view Delete
tier2-plugin tier2-plugin Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Dec 06, 2007

    Anonymous says:

    HI,   I am trying to install the Findbugs plugin via Hudson GUI and am not...

    HI,

      I am trying to install the Findbugs plugin via Hudson GUI and am not able to do so.I downloaded the findbugs.zip file, extracted it under a foler findbugs under Hudson/Plugins.

    How do I install this plugin?

    I have Hudson running on windows.

    Thanks

    Hans 

  2. Dec 06, 2007

    Anonymous says:

    The plugin is not in ZIP format. You should not try to unzip it. The plugin shou...

    The plugin is not in ZIP format. You should not try to unzip it. The plugin should download as .hpi file (if not, then the web server is not configured correctly). Try to rename the file from .zip to .hpi.
    --
    Ulli 

  3. Dec 07, 2007

    Anonymous says:

    Tahnks a lot Ulli.   That worked. I have downloaded several Plugins. All h...

    Tahnks a lot Ulli.

      That worked. I have downloaded several Plugins. All have the extension .zip

    I will change the extensions to .hpi and use them

    WArm REgards

    Hans

  4. Dec 14, 2007

    Anonymous says:

    Hello,  does this work with maven2 project type or is it just for free sty...

    Hello,

     does this work with maven2 project type or is it just for free style? I cannot find any options in maven2 project.

    I use:

    - hudson v.1.160

    - findbugs plugin v.1.18

  5. Dec 18, 2007

    Anonymous says:

    The same with me. Installed plugin but does not seem to be activated in Hudson G...

    The same with me. Installed plugin but does not seem to be activated in Hudson GUI. Any hint ?

    Thank you,

    R

  6. Dec 20, 2007

    Anonymous says:

    For the record, me too.  The same with me. Installed plugin but does not s...

    For the record, me too.

     The same with me. Installed plugin but does not seem to be activated in Hudson GUI. Any hint ?

     does this work with maven2 project type or is it just for free style? I cannot find any options in maven2 project.


    ~ Mike 

  7. Dec 30, 2007

    Stephen Connolly says:

    This plugin does not currently work with the m2 project type

    This plugin does not currently work with the m2 project type

  8. Jan 15, 2008

    Anonymous says:

    Hi, I'm getting a double tool tip when I mouse over the highlighted text. Has a...

    Hi,

    I'm getting a double tool tip when I mouse over the highlighted text. Has anyone experienced this?

    Screen shot 

    Hudson v1.171

    FindBugs v1.18

    -> Sandro

    1. Jan 16, 2008

      Anonymous says:

      UPDATE:  The warning descriptions are also doubled; this is the page which...

      UPDATE: 

      The warning descriptions are also doubled; this is the page which has links to the source.

      This bug appears in the findbugs plugin v1.18 only. I tried installing v1.17 and the issue went away. When I put v1.18 back in, it came back.

      Eagerly awaiting v1.19! :-) 

      -> Sandro 

  9. Jan 18, 2008

    Anonymous says:

    Hi, I have some problem with running plugin (version 1.18) on my XML file gener...

    Hi, I have some problem with running plugin (version 1.18) on my XML file generated by FindBugs. I'm getting this NPE: FATAL: Could not parse FindBugs files. Please check if the file pattern is correct and the latest FindBugs scanner is used (i.e., maven-findbugs-plugin >= 1.1.1) java.lang.NullPointerException at org.apache.commons.digester.Digester.createSAXException(Digester.java:2919) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2945) at org.apache.commons.digester.Digester.endElement(Digester.java:1133) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at org.apache.commons.digester.Digester.parse(Digester.java:1666) at hudson.plugins.findbugs.FindBugsCounter.parseNativeFormat(FindBugsCounter.java:162) at hudson.plugins.findbugs.FindBugsCounter.parse(FindBugsCounter.java:74) at hudson.plugins.findbugs.FindBugsCounter.findBugs(FindBugsCounter.java:222) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:89) at hudson.model.Build$RunnerImpl.performAllBuildStep(Build.java:150) at hudson.model.Build$RunnerImpl.post2(Build.java:137) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:254) at hudson.model.Run.run(Run.java:673) at hudson.model.Build.run(Build.java:102) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:64) Thanks for any suggestions, Mike

    1. Jan 18, 2008

      Anonymous says:

      [sorry for last post, i had some troubles with javascripts and csss on this page...

      [sorry for last post, i had some troubles with javascripts and csss on this page, i'll try again:] 

      Hi, I have some problem with running plugin (version 1.18) on my XML file generated by FindBugs. I'm getting this NPE:FATAL: Could not parse FindBugs files. Please check if the file pattern is correct
      and the latest FindBugs scanner is used (i.e., maven-findbugs-plugin >= 1.1.1)
      java.lang.NullPointerException
      at org.apache.commons.digester.Digester.createSAXException(Digester.java:2919)
      at org.apache.commons.digester.Digester.createSAXException(Digester.java:2945)
      at org.apache.commons.digester.Digester.endElement(Digester.java:1133)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
      at org.apache.commons.digester.Digester.parse(Digester.java:1666)
      at hudson.plugins.findbugs.FindBugsCounter.parseNativeFormat(FindBugsCounter.java:162)
      at hudson.plugins.findbugs.FindBugsCounter.parse(FindBugsCounter.java:74)
      at hudson.plugins.findbugs.FindBugsCounter.findBugs(FindBugsCounter.java:222)
      at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:89)
      at hudson.model.Build$RunnerImpl.performAllBuildStep(Build.java:150)
      at hudson.model.Build$RunnerImpl.post2(Build.java:137)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:254)
      at hudson.model.Run.run(Run.java:673)
      at hudson.model.Build.run(Build.java:102)
      at hudson.model.ResourceController.execute(ResourceController.java:70)
      at hudson.model.Executor.run(Executor.java:64)Thanks for any suggestions,

        Mike

  10. Mar 06, 2008

    Gerald Reinhart says:

    specify **/findbugsXml.xml See issue 1369

    specify **/findbugsXml.xml

    See issue 1369

  11. Mar 19, 2008

    Manik Surtani says:

    I just upgraded my Hudson instance (to 1.197) and installed the findbugs plugin ...

    I just upgraded my Hudson instance (to 1.197) and installed the findbugs plugin (ver 2.2), and all seems to have run well - the findbugs XML file was generated and I'm guessing it was picked up by the plugin - but I can't find any reports on the Hudson UI. 

    Where would one look to find this?  A screen shot on this wiki page would be supremely useful ...

    1. Apr 06, 2008

      Ulli Hafner says:

      What Information is shown in the log of the build? Which type of build are you u...

      What Information is shown in the log of the build? Which type of build are you using (m2 or freestyle?)

      BTW: Could you please discuss such issues in the mailing lists as I don't regularly check the comments on this page.

  12. May 16, 2008

    Lukasz says:

    getting "java.lang.NoClassDefFoundError: hudson/util/ChartUtil$NumberOnlyBuildLa...

    getting "java.lang.NoClassDefFoundError: hudson/util/ChartUtil$NumberOnlyBuildLabel"

    when using Hudson 1.215 and 2.6, 2.5 works fine.

  13. Oct 12, 2009

    Dan Morrow says:

    Non-admin users cannot view the code. I just install the FindBugs plugins for H...

    Non-admin users cannot view the code.

    I just install the FindBugs plugins for Hudson, and it works great. The reports it generates are very useful to me and my team.

    There is one small issue though. In the "Details" view, where it lists each warning (with file-name, line number, and problem) it shows a link to the file-name only for me, the Hudson admin. For all of my colleagues, it doesn't show the link to "MyBadFile.java". This is unfortunate, because that is such a great view, showing the line in the context of the file.

    I do manage the permissions of users logging into Hudson. My permissions, as the admin, are different from everyone else using Hudson. And I don't want to change it. But the rest of the team has pretty broad permissions. The permissions that are turned off for them are "overall:administer", "slave:configure" "slave:delete" and "job:release". I don't know why any of these permissions would prevent them from seeing the source view here. But if you have any ideas, I'd be grateful.

    Thanks for any help you could provide.

    -Dan.

    1. Oct 13, 2009

      Ulli Hafner says:

      That has been fixed already in trunk and will be part of the next release. Then ...

      That has been fixed already in trunk and will be part of the next release. Then all users with "Workspace" Permission will be able to view the source code.

      1. Nov 06, 2009

        Dan Morrow says:

        Trying not to be pushy, but will the next release be out soon?

        Trying not to be pushy, but will the next release be out soon?

  14. Nov 25, 2009

    Daniel Parnitzke says:

    I got problems with this plugin. Following situation: native m2 project using...

    I got problems with this plugin. Following situation:

    • native m2 project
    • using Maven 2.0.9 and Findbugs-Hudson-Plugin v3.8
    • Added findbugs mojo as plugin to project pom as advised above:

                  <plugin>
                      <groupId>org.codehaus.mojo</groupId>
                      <artifactId>findbugs-maven-plugin</artifactId>
                      <version>2.2</version>
                      <configuration>
                          <findbugsXmlOutput>true</findbugsXmlOutput>
                          <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
                          <xmlOutput>true</xmlOutput>
                      </configuration>
                  </plugin>

    • added goal findbugs:findbugs to build
    • enabled release of findbugs results in hudsons project properties

    A local call of mvn clean findbugs:findbugs works just fine, produces target/findbugs.xml and target/findbugsXml.xml. However, the build in hudson fails with

    ...
    [TASKS] Scipping maven reporter: there is already a result available.
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to configure plugin parameters for: org.codehaus.mojo:findbugs-maven-plugin:2.2
    Cause: Cannot find setter nor field in org.codehaus.mojo.findbugs.FindBugsMojo for 'findbugsXmlWithMessages'
    ...

    Any suggestions?

    1. Nov 25, 2009

      Daniel Parnitzke says:

      Tried some more and now it works. What did I do? Disabled publishing of FindBu...

      Tried some more and now it works. What did I do?

      • Disabled publishing of FindBugs reports in project settings (but kept goal findbugs:findbugs)
      • Build project -> OK
      • Enabled publishing again
      • Build project -> OK and I have my reports

      Is it only me, how find that strange? And ideas on how to avoid this (as I most likely will have to set up more maven based project in the future)?

      1. Dec 27, 2009

        Ulli Hafner says:

        This bug has been fixed in release 4.0.

        This bug has been fixed in release 4.0.

  15. Jan 11, 2010

    Daniel Triphaus says:

    Hi, i get the following error using the 4.1 and the findbugs-maven-plugin 2.3 (h...

    Hi, i get the following error using the 4.1 and the findbugs-maven-plugin 2.3 (hudson 1.339):

    [INFO] [findbugs:findbugs execution: default]
    [java] Warnings generated: 2
    [INFO] ------------------------------------------------------------------------
    [ERROR] FATAL ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] null
    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    java.lang.NullPointerException
    at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.hashCode(RemoteClassLoader.java:419)
    at java.util.HashMap.get(HashMap.java:300)
    at hudson.remoting.ExportTable.export(ExportTable.java:155)
    at hudson.remoting.Channel.export(Channel.java:468)
    at hudson.remoting.RemoteClassLoader.exportId(RemoteClassLoader.java:341)
    at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch2(RemoteClassLoader.java:373)
    at sun.reflect.GeneratedMethodAccessor1315.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
    at hudson.remoting.Request$2.run(Request.java:270)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)

    Is there any chance to get this working? The build is working when it's run from the console and if the findbugs hudson plugin is deactivated.

    EDIT: It seems to be container-related (tomcat), if i run hudson via webstart (standalone) the findbugs-analysis works from a hudson build.

    1. Jan 11, 2010

      Daniel Triphaus says:

      I found the reason for this. The problem is caused by a xalan.jar placed in tomc...

      I found the reason for this. The problem is caused by a xalan.jar placed in tomcats common directory (in this case common/endorsed).

  16. Feb 01, 2010

    He Tangjun says:

    I use Hudson ver. 1.343 and findbug plugin 4.3. I got the error below, who can h...

    I use Hudson ver. 1.343 and findbug plugin 4.3. I got the error below, who can help me ? Thank you for any idea.

    [FINDBUGS] Collecting findbugs analysis files...
    [FINDBUGS] Parsing of file D:\Development Kit\Hudson\jobs\scs\workspace\trunk\target\findbugs\findbugs.xml failed due to an exception:
    org.dom4j.DocumentException: Sax error  Nested exception: BugInstance with invalid priority value "Normal"
        at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:291)
        at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:263)
        at hudson.plugins.findbugs.parser.NativeFindBugsParser.parse(NativeFindBugsParser.java:129)
        at hudson.plugins.findbugs.parser.NativeFindBugsParser.parse(NativeFindBugsParser.java:69)
        at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:74)
        at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:152)
        at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:131)
        at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:87)
        at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:28)
        at hudson.FilePath.act(FilePath.java:694)
        at hudson.FilePath.act(FilePath.java:676)
        at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:104)
        at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:140)
        at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
        at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550)
        at hudson.model.Build$RunnerImpl.post2(Build.java:152)
        at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
        at hudson.model.Run.run(Run.java:1221)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:122)
    Caused by: java.lang.NumberFormatException: For input string: "Normal"
        at edu.umd.cs.findbugs.SAXBugCollectionHandler.startElement(SAXBugCollectionHandler.java:204)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
        at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:286)
        ... 22 more
    Caused by: java.lang.NumberFormatException: For input string: "Normal"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at edu.umd.cs.findbugs.SAXBugCollectionHandler.startElement(SAXBugCollectionHandler.java:201)
        ... 34 more
    Nested exception:
    java.lang.NumberFormatException: For input string: "Normal"
        at edu.umd.cs.findbugs.SAXBugCollectionHandler.startElement(SAXBugCollectionHandler.java:204)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
        at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:286)
        at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:263)
        at hudson.plugins.findbugs.parser.NativeFindBugsParser.parse(NativeFindBugsParser.java:129)
        at hudson.plugins.findbugs.parser.NativeFindBugsParser.parse(NativeFindBugsParser.java:69)
        at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:74)
        at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:152)
        at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:131)
        at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:87)
        at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:28)
        at hudson.FilePath.act(FilePath.java:694)
        at hudson.FilePath.act(FilePath.java:676)
        at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:104)
        at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:140)
        at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
        at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550)
        at hudson.model.Build$RunnerImpl.post2(Build.java:152)
        at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
        at hudson.model.Run.run(Run.java:1221)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:122)
    Caused by: java.lang.NumberFormatException: For input string: "Normal"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at edu.umd.cs.findbugs.SAXBugCollectionHandler.startElement(SAXBugCollectionHandler.java:201)
        ... 34 more
    [FINDBUGS] Found 0 annotations (0 new, 0 high, 0 normal, 0 low)
    [FINDBUGS] Not changing build status, since no threshold has been exceeded

  17. Feb 05, 2010

    Nabanita Nayak says:

    Hi,     I am using Hudson 1.329 version and findbugs plugin 4.3 ...

    Hi,

        I am using Hudson 1.329 version and findbugs plugin 4.3 version. While trying build my project with findbugs:findbugs option it throws the following error. Can somebody please give me the solution to resolve the issue?

    [FINDBUGS] File encoding has not been set in pom.xml, using platform encoding UTF-8, i.e. build is platform dependent (see <a href="http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding">Maven FAQ</a>).
    [INFO] ------------------------------------------------------------------------
    [ERROR] FATAL ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Name is null
    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    java.lang.NullPointerException: Name is null
    at java.lang.Enum.valueOf(Enum.java:191)
    at hudson.plugins.analysis.util.model.Priority.valueOf(Priority.java:18)
    at hudson.plugins.analysis.core.HealthAwareMavenReporter.getMinimumPriority(HealthAwareMavenReporter.java:397)
    at hudson.plugins.analysis.core.AbstractHealthDescriptor.<init>(AbstractHealthDescriptor.java:42)
    at hudson.plugins.findbugs.FindBugsHealthDescriptor.<init>(FindBugsHealthDescriptor.java:25)
    at hudson.plugins.findbugs.FindBugsResultAction.<init>(FindBugsResultAction.java:36)
    at hudson.plugins.findbugs.MavenFindBugsResultAction.<init>(MavenFindBugsResultAction.java:59)
    at hudson.plugins.findbugs.FindBugsReporter.persistResult(FindBugsReporter.java:127)
    at hudson.plugins.analysis.core.HealthAwareMavenReporter$1.call(HealthAwareMavenReporter.java:157)
    at hudson.plugins.analysis.core.HealthAwareMavenReporter$1.call(HealthAwareMavenReporter.java:155)
    at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:325)
    at sun.reflect.GeneratedMethodAccessor223.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at hudson.model.Executor$1.call(Executor.java:376)
    at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
    at $Proxy21.execute(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor331.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
    at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
    at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
    at hudson.remoting.UserRequest.perform(UserRequest.java:104)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:244)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1 minute 9 seconds
    [INFO] Finished at: Fri Feb 05 11:25:00 GMT 2010
    [INFO] Final Memory: 55M/373M
    [INFO] ------------------------------------------------------------------------
    channel stopped

    Thanks

  18. Feb 08, 2010

    Sarita Tripathy says:

    I am seeing the issue, that when I look at a build it says something like 41 new...

    I am seeing the issue, that when I look at a build it says something like 41 new warnings, and 38 fixed warnings, but if I click on the it takes me to a page which contains actually 0 issues, total 0, to high low and all other category fixes 0. In effect the whole build might have only a couple of extra issues in the build, but this seeing so many fixed and new confuses the developers, and they are not sure whats wrong and which one is actually new.

    Is anybody else experiencing this problem ? I am getting same unusual numbers for the Duplicate Code checker, and the Checkstyle always says all warning are new.

    We are on Hudson 1.344,

    Static Analysis Utilities 1.3

    Checkstyle Plug-in 3.2

    Duplicate Code Scanner Plug-in 2.2

    Findbugs Plug-in 4.3

    We are using ant to do the build, and publish the findings to xml files.

  19. May 13, 2010

    czp says:

    Hudson shows that there are 41 warnings in FindBugs result report. But all deta...

    Hudson shows that there are 41 warnings in FindBugs result report. But all details tabs(Categories, Types, Warnings, Details) are empty.

    plugin:
    Static Analysis Utilities 1.8
    FindBugs Plug-in 4.8
    LOG:findbugs:
    [findbugs] Executing findbugs from ant task
    [findbugs] Running FindBugs...
    [findbugs] Warnings generated: 41
    [findbugs] Calculating exit code...
    [findbugs] Setting 'bugs found' flag (1)
    [findbugs] Exit code set to: 1
    [findbugs] Java Result: 1
    [findbugs] Output saved to findbugs_report/findbugs.xml

    BUILD SUCCESSFUL
    Total time: 56 seconds
    [FINDBUGS] Collecting findbugs analysis files...
    [FINDBUGS] Successfully parsed file XXX\findbugs_report\findbugs.xml of module findbugs_report with 41 warnings.
    Recording test results
    Finished: SUCCESS

    Any suggestions?

    Thanks!

  20. Dec 04, 2010

    Alfred Pfeffer says:

    Hi, is it possible to customize the bug ranking for findbugs issues?

    Hi,

    is it possible to customize the bug ranking for findbugs issues?

    1. Dec 15, 2010

      Ulli Hafner says:

      I think that could be done in the findbugs analysis step.

      I think that could be done in the findbugs analysis step.

  21. Jul 28, 2011

    Jason Lu says:

    Hi Guys, Would the findbugs plugin generate the same results as the findbugs to...

    Hi Guys,

    Would the findbugs plugin generate the same results as the findbugs tool itself, assuming run on the same set of files?

    Also is it possible to run the findbugs pluggin in jenkins on jar files(what kind of job would that be)?

    Any help would be appreciated. Thanks!

    1. Jul 29, 2011

      Ulli Hafner says:

      The findbugs plugin does not produce results, it only visualises the results. So...

      The findbugs plugin does not produce results, it only visualises the results. So the result would be the same. When you can run findbugs on jar files then this is possible in Jenkins, too.

  22. Nov 08, 2011

    Harshad Narkar says:

    I have downloaded Findbugs plugin for Hudson. Hudson - 2.1.2 Findbugs - 4.3 I a...

    I have downloaded Findbugs plugin for Hudson.
    Hudson - 2.1.2
    Findbugs - 4.3

    I am getting error -

    taskdef class edu.umd.cs.findbugs.anttask.FindBugsTask cannot be found

    I am missing something with the Findbugs-Ant config.
    Can somebody throw some light?

    Thanks.

  23. Nov 24, 2011

    Alice Lliu says:

    hello~~~ Is anyone there? I have a question about findbugs in hudson. the...

    hello~~~

    Is anyone there?

    I have a question about findbugs in hudson. there will show the new and fixed bugs for my project in fingbugs-hudson, but does hudson allow me to assign the 'not a bugs' status in hudson GUI? because I have to see the same report in the next new build, it's a little redundant effort for me...

    Thanks for your help:)

    regards

    alice