Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-1479

logger in findbugs breaks build on slave with NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: findbugs-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      When running the findbugs plugin on a slave the build breaks as soon as the
      logger is about to print out a message. The logger does not seem to be set on
      the slave, so a NullPointerException is thrown.
      A sample console output:

      -------------------
      started
      Building remotely on ci-dev@carl.uat.jamba.net
      Collecting findbugs analysis files...
      FATAL: null
      java.lang.NullPointerException
      at
      hudson.plugins.findbugs.parser.FindBugsCollector.parseFile(FindBugsCollector.java:129)
      at
      hudson.plugins.findbugs.parser.FindBugsCollector.invoke(FindBugsCollector.java:93)
      at
      hudson.plugins.findbugs.parser.FindBugsCollector.invoke(FindBugsCollector.java:27)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1093)
      at hudson.remoting.UserRequest.perform(UserRequest.java:69)
      at hudson.remoting.UserRequest.perform(UserRequest.java:23)
      at hudson.remoting.Request$2.run(Request.java:200)
      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)
      -------------------

      On the master the build is fine.
      When I comment out all the logging statements the build runs smoothly.

      The following Java source files contain logging statements:

      hudson.plugins.findbugs.FindBugsPublisher
      hudson.plugins.findbugs.FindBugsReporter
      hudson.plugins.findbugs.parser.FindBugsCollector

        Attachments

          Activity

          Hide
          hriegel_jamba hriegel_jamba added a comment -

          Created an attachment (id=201)
          To comment out all logging statements as a temporary solution

          Show
          hriegel_jamba hriegel_jamba added a comment - Created an attachment (id=201) To comment out all logging statements as a temporary solution
          Hide
          drulli Ulli Hafner added a comment -

          Fixed in HEAD.

          Show
          drulli Ulli Hafner added a comment - Fixed in HEAD.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: drulli
          Path:
          /hudson/hudson/plugins/findbugs/src/main/java/hudson/plugins/findbugs/parser/FindBugsCollector.java (1.11)
          /hudson/hudson/plugins/findbugs/src/main/java/hudson/plugins/findbugs/FindBugsPublisher.java (1.30)
          http://fisheye5.cenqua.com/changelog/hudson/?cs=MAIN:drulli:20080330201514

          Log:
          Fixed issue 1479: don't use the logger if it is not available.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: drulli Path: /hudson/hudson/plugins/findbugs/src/main/java/hudson/plugins/findbugs/parser/FindBugsCollector.java (1.11) /hudson/hudson/plugins/findbugs/src/main/java/hudson/plugins/findbugs/FindBugsPublisher.java (1.30) http://fisheye5.cenqua.com/changelog/hudson/?cs=MAIN:drulli:20080330201514 Log: Fixed issue 1479: don't use the logger if it is not available.

            People

            Assignee:
            drulli Ulli Hafner
            Reporter:
            hriegel_jamba hriegel_jamba
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: