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

NullPointerException in WarningsPublisher

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: warnings-plugin
    • Labels:
      None
    • Environment:
      Warnings 4.16
      Jenkins 1.466.2
      JBoss AS
      RHEL 5.4
    • Similar Issues:

      Description

      Some of our build jobs are sporadically getting the following error at the end of the build:

      [WARNINGS] Parsing warnings in console log with parser Maven
      ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception
      java.lang.NullPointerException
      at hudson.plugins.analysis.util.model.AbstractAnnotation.equals(AbstractAnnotation.java:499)
      at com.google.common.collect.RegularImmutableSet.contains(RegularImmutableSet.java:54)
      at java.util.AbstractSet.removeAll(AbstractSet.java:157)
      at hudson.plugins.analysis.core.AnnotationDifferencer.difference(AnnotationDifferencer.java:43)
      at hudson.plugins.analysis.core.AnnotationDifferencer.getNewAnnotations(AnnotationDifferencer.java:27)
      at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:261)
      at hudson.plugins.analysis.core.BuildResult.<init>(BuildResult.java:215)
      at hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:52)
      at hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:46)
      at hudson.plugins.warnings.WarningsPublisher.annotate(WarningsPublisher.java:406)
      at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:365)
      at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:276)
      at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:289)
      at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685)
      at hudson.model.Build$RunnerImpl.post2(Build.java:162)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632)
      at hudson.model.Run.run(Run.java:1463)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:239)

      This only happens on some jobs, and only for some builds. Sometimes we can fix the the error by disabling and enabling the warnings plugin for that build, but sometimes the error will return after a couple of builds. So we don't really have a bulletproof workaround for this issue.

      We have tried using warnings 4.17, but then we got a similar error, but without the whole stacktrace, so we reverted to 4.16:

      [WARNINGS] Parsing warnings in console log with parser Maven
      ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception
      java.lang.NullPointerException

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                drulli Ulli Hafner
                Reporter:
                tle Timo Leinonen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: