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

Exception in WarningsPlugin

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • Linux, Hudson v1.386, Warnings plugin v3.11

    Description

      Builds are finishing with a failure result, and the following exception is being shown:

      [WARNINGS] Parsing warnings in console log...
      ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception
      java.lang.NullPointerException: Name is null
      at java.lang.Enum.valueOf(Enum.java:195)
      at hudson.plugins.analysis.util.model.Priority.valueOf(Priority.java:18)
      at hudson.plugins.analysis.core.HealthAwarePublisher.getMinimumPriority(HealthAwarePublisher.java:522)
      at hudson.plugins.analysis.core.AbstractHealthDescriptor.<init>(AbstractHealthDescriptor.java:36)
      at hudson.plugins.warnings.WarningsHealthDescriptor.<init>(WarningsHealthDescriptor.java:25)
      at hudson.plugins.warnings.WarningsResultAction.<init>(WarningsResultAction.java:31)
      at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:202)
      at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:280)
      at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:603)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:582)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:651)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:529)
      at hudson.model.Run.run(Run.java:1349)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:349)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:139)

      If I disable the warnings publisher from the job configuration, the build ends successfully.

      Here is the config section of the warnings plugin of the job:

      <hudson.plugins.warnings.WarningsPublisher>
      <pluginName>[WARNINGS] </pluginName>
      <defaultEncoding></defaultEncoding>
      <canRunOnFailed>false</canRunOnFailed>
      <useDeltaValues>false</useDeltaValues>
      <thresholds>
      <unstableTotalHigh></unstableTotalHigh>
      <unstableTotalNormal></unstableTotalNormal>
      <unstableTotalLow></unstableTotalLow>
      <unstableNewHigh></unstableNewHigh>
      <unstableNewNormal></unstableNewNormal>
      <unstableNewLow></unstableNewLow>
      <failedTotalHigh></failedTotalHigh>
      <failedTotalNormal></failedTotalNormal>
      <failedTotalLow></failedTotalLow>
      <failedNewHigh></failedNewHigh>
      <failedNewNormal></failedNewNormal>
      <failedNewLow></failedNewLow>
      </thresholds>
      <pattern></pattern>
      <parserNames>
      <string>Java Compiler</string>
      </parserNames>
      <ignoreConsole>false</ignoreConsole>
      </hudson.plugins.warnings.WarningsPublisher>

      Attachments

        Issue Links

          Activity

            xster xster added a comment -

            Jenkins 1.439

            Plugins
            Token Macro Plugin 1.4
            Static Code Analysis Plug-ins 1.32
            Warnings Plugin 3.21
            Static Analysis Collector Plug-in 1.18
            Run Condition Plugin 0.6
            conditional-buildstep 0.2
            Flexible Publish Plugin 0.7
            Any Build Step Plugin 0.1
            Jenkins Artifact Deployer Plug-in 0.13
            Avatar Plugin 1.0
            Backup plugin 1.6.1
            Hudson batch task plugin 1.14
            Jenkins Mercurial plugin 1.37
            Jenkins MSBuild Plugin 1.7
            Jenkins Parameterized Trigger plugin 2.12
            Jenkins Post-Build Script Plug-in 0.7
            Jenkins SLOCCount Plug-in 1.6
            SVN Publisher plugin 0.1
            Template Project plugin 1.3
            ThinBackup 1.4
            Jenkins Translation Assistance plugin 1.8

            I am using template project for configuration.
            If I change any settings of template project, the warnings plugin setting lost a configuration value.
            So I edit the job's config.xml to insert the lost value.

            Here is my configuration for the warnings plugin.

            <hudson.plugins.warnings.WarningsPublisher>
            <healthy>0</healthy>
            <unHealthy>1</unHealthy>
            <!-- there should be <thresholdLimit>low</thresholdLimit>, but it's missing -->
            <pluginName>[WARNINGS] </pluginName>
            <defaultEncoding></defaultEncoding>
            <canRunOnFailed>false</canRunOnFailed>
            <useDeltaValues>false</useDeltaValues>
            <thresholds>
            <unstableTotalAll></unstableTotalAll>
            <unstableTotalHigh></unstableTotalHigh>
            <unstableTotalNormal></unstableTotalNormal>
            <unstableTotalLow></unstableTotalLow>
            <unstableNewAll></unstableNewAll>
            <unstableNewHigh></unstableNewHigh>
            <unstableNewNormal></unstableNewNormal>
            <unstableNewLow></unstableNewLow>
            <failedTotalAll></failedTotalAll>
            <failedTotalHigh></failedTotalHigh>
            <failedTotalNormal></failedTotalNormal>
            <failedTotalLow></failedTotalLow>
            <failedNewAll></failedNewAll>
            <failedNewHigh></failedNewHigh>
            <failedNewNormal></failedNewNormal>
            <failedNewLow></failedNewLow>
            </thresholds>
            <shouldDetectModules>false</shouldDetectModules>
            <parserConfigurations/>
            <consoleLogParsers>
            <string>MSBuild</string>
            </consoleLogParsers>
            </hudson.plugins.warnings.WarningsPublisher>

            xster xster added a comment - Jenkins 1.439 Plugins Token Macro Plugin 1.4 Static Code Analysis Plug-ins 1.32 Warnings Plugin 3.21 Static Analysis Collector Plug-in 1.18 Run Condition Plugin 0.6 conditional-buildstep 0.2 Flexible Publish Plugin 0.7 Any Build Step Plugin 0.1 Jenkins Artifact Deployer Plug-in 0.13 Avatar Plugin 1.0 Backup plugin 1.6.1 Hudson batch task plugin 1.14 Jenkins Mercurial plugin 1.37 Jenkins MSBuild Plugin 1.7 Jenkins Parameterized Trigger plugin 2.12 Jenkins Post-Build Script Plug-in 0.7 Jenkins SLOCCount Plug-in 1.6 SVN Publisher plugin 0.1 Template Project plugin 1.3 ThinBackup 1.4 Jenkins Translation Assistance plugin 1.8 I am using template project for configuration. If I change any settings of template project, the warnings plugin setting lost a configuration value. So I edit the job's config.xml to insert the lost value. Here is my configuration for the warnings plugin. <hudson.plugins.warnings.WarningsPublisher> <healthy>0</healthy> <unHealthy>1</unHealthy> <!-- there should be <thresholdLimit>low</thresholdLimit>, but it's missing --> <pluginName> [WARNINGS] </pluginName> <defaultEncoding></defaultEncoding> <canRunOnFailed>false</canRunOnFailed> <useDeltaValues>false</useDeltaValues> <thresholds> <unstableTotalAll></unstableTotalAll> <unstableTotalHigh></unstableTotalHigh> <unstableTotalNormal></unstableTotalNormal> <unstableTotalLow></unstableTotalLow> <unstableNewAll></unstableNewAll> <unstableNewHigh></unstableNewHigh> <unstableNewNormal></unstableNewNormal> <unstableNewLow></unstableNewLow> <failedTotalAll></failedTotalAll> <failedTotalHigh></failedTotalHigh> <failedTotalNormal></failedTotalNormal> <failedTotalLow></failedTotalLow> <failedNewAll></failedNewAll> <failedNewHigh></failedNewHigh> <failedNewNormal></failedNewNormal> <failedNewLow></failedNewLow> </thresholds> <shouldDetectModules>false</shouldDetectModules> <parserConfigurations/> <consoleLogParsers> <string>MSBuild</string> </consoleLogParsers> </hudson.plugins.warnings.WarningsPublisher>
            drulli Ulli Hafner added a comment -

            Hmm, this looks like a bug in the template project...

            drulli Ulli Hafner added a comment - Hmm, this looks like a bug in the template project...
            drulli Ulli Hafner added a comment -

            Can you please check if removing flexible-publisher and run-condition plug-in solves the problem? (Just to be sure which plugins cause the problems?)

            drulli Ulli Hafner added a comment - Can you please check if removing flexible-publisher and run-condition plug-in solves the problem? (Just to be sure which plugins cause the problems?)
            xster xster added a comment -

            I reinstalled Jenkins to another machine, without flexible-publisher and run-condition.
            Now I don't have any problems.

            xster xster added a comment - I reinstalled Jenkins to another machine, without flexible-publisher and run-condition. Now I don't have any problems.
            drulli Ulli Hafner added a comment -

            Fixed in flexible-publisher plug-in, see JENKINS-12692.

            drulli Ulli Hafner added a comment - Fixed in flexible-publisher plug-in, see JENKINS-12692 .

            People

              huybrechts huybrechts
              ingmartinlopez ingmartinlopez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: