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

Jenkins 2.240 reports NPE on getPluginsWithUnavailableUpdates

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • Jenkins 2.240
    • Jenkins 2.242

      When I start Jenkins 2.240, it reports a null pointer exception:

      2020-06-09 01:33:06.017+0000 [id=11]    WARNING h.ExpressionFactory2$JexlExpression#evaluate: Caught exception evaluating: app.updateCenter.pluginsWithUnavailableUpdates in /pluginManager/. Reason: java.lang.reflect.InvocationTargetException
      java.lang.NullPointerException
              at hudson.model.UpdateCenter.getPluginsWithUnavailableUpdates(UpdateCenter.java:1069)
      Caused: java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
      

      Does not report the null pointer exception on Jenkins 2.239.

      The null pointer exception is not reported when all plugins are running their most recent releases. When I saw the NPE, I was running credentials plugin 2.3.7. After updating to 2.3.8, the NPE is not displayed.

        1. image-2020-06-15-20-12-10-030.png
          69 kB
          Lionel FÉLICITÉ
        2. image-2020-06-14-23-53-51-184.png
          64 kB
          Lionel FÉLICITÉ

          [JENKINS-62622] Jenkins 2.240 reports NPE on getPluginsWithUnavailableUpdates

          Mark Waite created issue -
          Mark Waite made changes -
          Description Original: When I start Jenkins 2.240, it reports a null pointer exception:

          {noformat}
          2020-06-09 01:33:06.017+0000 [id=11] WARNING h.ExpressionFactory2$JexlExpression#evaluate: Caught exception evaluating: app.updateCenter.pluginsWithUnavailableUpdates in /pluginManager/. Reason: java.lang.reflect.InvocationTargetException
          java.lang.NullPointerException
                  at hudson.model.UpdateCenter.getPluginsWithUnavailableUpdates(UpdateCenter.java:1069)
          Caused: java.lang.reflect.InvocationTargetException
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:498)
          {noformat}
          New: When I start Jenkins 2.240, it reports a null pointer exception:

          {noformat}
          2020-06-09 01:33:06.017+0000 [id=11] WARNING h.ExpressionFactory2$JexlExpression#evaluate: Caught exception evaluating: app.updateCenter.pluginsWithUnavailableUpdates in /pluginManager/. Reason: java.lang.reflect.InvocationTargetException
          java.lang.NullPointerException
                  at hudson.model.UpdateCenter.getPluginsWithUnavailableUpdates(UpdateCenter.java:1069)
          Caused: java.lang.reflect.InvocationTargetException
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:498)
          {noformat}

          Does not report the null pointer exception on Jenkins 2.239.
          Mark Waite made changes -
          Description Original: When I start Jenkins 2.240, it reports a null pointer exception:

          {noformat}
          2020-06-09 01:33:06.017+0000 [id=11] WARNING h.ExpressionFactory2$JexlExpression#evaluate: Caught exception evaluating: app.updateCenter.pluginsWithUnavailableUpdates in /pluginManager/. Reason: java.lang.reflect.InvocationTargetException
          java.lang.NullPointerException
                  at hudson.model.UpdateCenter.getPluginsWithUnavailableUpdates(UpdateCenter.java:1069)
          Caused: java.lang.reflect.InvocationTargetException
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:498)
          {noformat}

          Does not report the null pointer exception on Jenkins 2.239.
          New: When I start Jenkins 2.240, it reports a null pointer exception:

          {noformat}
          2020-06-09 01:33:06.017+0000 [id=11] WARNING h.ExpressionFactory2$JexlExpression#evaluate: Caught exception evaluating: app.updateCenter.pluginsWithUnavailableUpdates in /pluginManager/. Reason: java.lang.reflect.InvocationTargetException
          java.lang.NullPointerException
                  at hudson.model.UpdateCenter.getPluginsWithUnavailableUpdates(UpdateCenter.java:1069)
          Caused: java.lang.reflect.InvocationTargetException
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:498)
          {noformat}

          Does not report the null pointer exception on Jenkins 2.239.

          The null pointer exception is not reported when all plugins are running their most recent releases. When I saw the NPE, I was running credentials plugin 2.3.7. After updating to 2.3.8, the NPE is not displayed.
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-62332 [ JENKINS-62332 ]

          got the same, jumping from 2.228 to 2.240

           

          • os: debian 8

          Lionel FÉLICITÉ added a comment - got the same, jumping from 2.228 to 2.240   os: debian 8

          Tim Jacomb added a comment - - edited

          danielbeck anything to do with https://github.com/jenkinsci/jenkins/pull/4742 possibly?
          There's a separate changelog weather unhappy for: https://issues.jenkins-ci.org/browse/JENKINS-62332

          Tim Jacomb added a comment - - edited danielbeck anything to do with https://github.com/jenkinsci/jenkins/pull/4742 possibly? There's a separate changelog weather unhappy for: https://issues.jenkins-ci.org/browse/JENKINS-62332
          Lionel FÉLICITÉ made changes -
          Attachment New: image-2020-06-14-23-53-51-184.png [ 51618 ]

          I just noticed that I d'on't see any 'available' plugins anymore

           

          Lionel FÉLICITÉ added a comment - I just noticed that I d'on't see any 'available' plugins anymore  

          Tim Jacomb added a comment -

          Lionel have you tried using the search box?

          Tim Jacomb added a comment - Lionel have you tried using the search box?

          Mark Waite added a comment -

          deogracia thanks for reminding me that we need to include a note in the 2.235.1 upgrade guide that the plugin manager changed its default. The previous default was to list all available plugins then filter to find the desired plugin. The new default is to only show plugins that match the filter criteria. You'll need to enter a filter string for the plugin you are seeking.

          Mark Waite added a comment - deogracia thanks for reminding me that we need to include a note in the 2.235.1 upgrade guide that the plugin manager changed its default. The previous default was to list all available plugins then filter to find the desired plugin. The new default is to only show plugins that match the filter criteria. You'll need to enter a filter string for the plugin you are seeking.

            danielbeck Daniel Beck
            markewaite Mark Waite
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: