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

NullPointerException on Matrix project

    Details

    • Similar Issues:

      Description

      FATAL: null
      18:27:14 java.lang.NullPointerException
      18:27:14 at com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterValue$1.resolve(ExtendedChoiceParameterValue.java:40)
      18:27:14 at com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterValue$1.resolve(ExtendedChoiceParameterValue.java:34)
      18:27:14 at hudson.matrix.FilterScript.getConfiguredBinding(FilterScript.java:97)
      18:27:14 at hudson.matrix.FilterScript.apply(FilterScript.java:75)
      18:27:14 at hudson.matrix.DefaultMatrixExecutionStrategyImpl.filterConfigurations(DefaultMatrixExecutionStrategyImpl.java:190)
      18:27:14 at hudson.matrix.DefaultMatrixExecutionStrategyImpl.run(DefaultMatrixExecutionStrategyImpl.java:121)
      18:27:14 at hudson.matrix.MatrixBuild$MatrixBuildExecution.doRun(MatrixBuild.java:352)
      18:27:14 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      18:27:14 at hudson.model.Run.execute(Run.java:1741)
      18:27:14 at hudson.matrix.MatrixBuild.run(MatrixBuild.java:301)
      18:27:14 at hudson.model.ResourceController.execute(ResourceController.java:98)
      18:27:14 at hudson.model.Executor.run(Executor.java:381)

        Attachments

          Activity

          Hide
          intel352 Jonathan Langevin added a comment -

          Jaroslaw Niec, so what is the extended choice param plugin doing differently in 0.50, that results in this error in conjunction with Matrix plugin?
          I'm not doubting that Matrix is at fault in some way, but the extended choice plugin 0.48 works fine

          Show
          intel352 Jonathan Langevin added a comment - Jaroslaw Niec , so what is the extended choice param plugin doing differently in 0.50, that results in this error in conjunction with Matrix plugin? I'm not doubting that Matrix is at fault in some way, but the extended choice plugin 0.48 works fine
          Hide
          zuljin Jaroslaw Niec added a comment -

          0.50 added all this json kind of configuration and this requires new code that right now fails on latest Jenkins with matrix plugin. And it doesn't matter if previously it was working.

          I'm not sure but maybe author could implement a workaround so this json would still fail but at least old kind of configuration could work even with buggy matrix plugin.
          I think this would be the best solution till matrix plugin is fixed.

          Maybe even adding simple check if build != null could be this workaround.

          Show
          zuljin Jaroslaw Niec added a comment - 0.50 added all this json kind of configuration and this requires new code that right now fails on latest Jenkins with matrix plugin. And it doesn't matter if previously it was working. I'm not sure but maybe author could implement a workaround so this json would still fail but at least old kind of configuration could work even with buggy matrix plugin. I think this would be the best solution till matrix plugin is fixed. Maybe even adding simple check if build != null could be this workaround.
          Hide
          nmanos Noam Manos added a comment - - edited

          I saw on my Jenkins server, where I downgraded back to 0.48, the following warning, which seems to be the cause:

          Unreadable Data

          It is acceptable to leave unreadable data in these files, as Jenkins will safely ignore it. To avoid the log messages at Jenkins startup you can permanently delete the unreadable data by resaving these files using the button below.

          Type Name Error
          hudson.matrix.MatrixProject Automation_Matrix MissingFieldException: No field 'saveJSONParameterToFile' found in class 'com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition'

          Show
          nmanos Noam Manos added a comment - - edited I saw on my Jenkins server, where I downgraded back to 0.48, the following warning, which seems to be the cause: Unreadable Data It is acceptable to leave unreadable data in these files, as Jenkins will safely ignore it. To avoid the log messages at Jenkins startup you can permanently delete the unreadable data by resaving these files using the button below. Type Name Error hudson.matrix.MatrixProject Automation_Matrix MissingFieldException: No field 'saveJSONParameterToFile' found in class 'com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition'
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: vimil
          Path:
          src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterValue.java
          src/main/webapp/js/jsoneditor.js
          http://jenkins-ci.org/commit/extended-choice-parameter-plugin/fbec4f64fafea11df25ce6f03a55553391c6d6f8
          Log:
          JENKINS-29539 NullPointerException on Matrix project

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: vimil Path: src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterValue.java src/main/webapp/js/jsoneditor.js http://jenkins-ci.org/commit/extended-choice-parameter-plugin/fbec4f64fafea11df25ce6f03a55553391c6d6f8 Log: JENKINS-29539 NullPointerException on Matrix project
          Hide
          vimil vimil added a comment -

          fixed in version 0.51

          Show
          vimil vimil added a comment - fixed in version 0.51

            People

            • Assignee:
              vimil vimil
              Reporter:
              nmanos Noam Manos
            • Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: