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.

          [JENKINS-62622] Jenkins 2.240 reports NPE on getPluginsWithUnavailableUpdates

          Daniel Beck added a comment -

          This issue does not seem to impact the 'Available' tab UI in a notable way. Filtering still works.

          Daniel Beck added a comment - This issue does not seem to impact the 'Available' tab UI in a notable way. Filtering still works.

          doh! I feel stupid!

           

          yes, using the search box, it works

           

          Thanks

           

          Lionel FÉLICITÉ added a comment - doh! I feel stupid!   yes, using the search box, it works   Thanks  

          Daniel Beck added a comment -

          My first draft of the PR made the instruction text when there's no search term super large to be noticeable, but it would have been ugly so we made it smaller

          Daniel Beck added a comment - My first draft of the PR made the instruction text when there's no search term super large to be noticeable, but it would have been ugly so we made it smaller

          Jon Brohauge added a comment -

          I see the above mentioned NPE's as well, and this might be unrelated, but trying to install plugins, the environment variable UC_JENKINS is ignored. Due to corporate firewall, we cannot access updates.jenkins.io directly. In 2.239 it worked.

          Jon Brohauge added a comment - I see the above mentioned NPE's as well, and this might be unrelated, but trying to install plugins, the environment variable UC_JENKINS is ignored. Due to corporate firewall, we cannot access updates.jenkins.io directly. In 2.239 it worked.

          Daniel Beck added a comment -

          trying to install plugins, the environment variable UC_JENKINS is ignored

          Jenkins has never cared about this, it's exclusively used by plugins.sh / install-plugins.sh.

          Daniel Beck added a comment - trying to install plugins, the environment variable UC_JENKINS is ignored Jenkins has never cared about this, it's exclusively used by plugins.sh / install-plugins.sh.

          Jon Brohauge added a comment -

          danielbeck You're telling me that installing plugins via "Manage Jenkins->Manage Plugin" only can be done by downloading directly from plugin.jenkins.io? Wonder why my setup has worked previously?

          Jon Brohauge added a comment - danielbeck You're telling me that installing plugins via "Manage Jenkins->Manage Plugin" only can be done by downloading directly from plugin.jenkins.io? Wonder why my setup has worked previously?

          Daniel Beck added a comment - - edited

          Manage Plugins » Advanced let's you configure a custom update site. Has nothing to do with the env var. It's even documented as such: https://github.com/jenkinsci/docker/blob/08a1833a1a6cd64578715609e7c1e185ab18a7b6/README.md#setting-update-centers

          Daniel Beck added a comment - - edited Manage Plugins » Advanced let's you configure a custom update site. Has nothing to do with the env var. It's even documented as such: https://github.com/jenkinsci/docker/blob/08a1833a1a6cd64578715609e7c1e185ab18a7b6/README.md#setting-update-centers

          Jon Brohauge added a comment -

          Fair enough. FTR We have set a custom URL to point to our "Artifactory-Jenkins-plugins-mirror" that worked prior in 2.239 and earlier

          Jon Brohauge added a comment - Fair enough. FTR We have set a custom URL to point to our "Artifactory-Jenkins-plugins-mirror" that worked prior in 2.239 and earlier

          Daniel Beck added a comment -

          Whatever is happening there is 100% unrelated to this issue.

          Daniel Beck added a comment - Whatever is happening there is 100% unrelated to this issue.

          Jon Brohauge added a comment -

          Jon Brohauge added a comment -

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

              Created:
              Updated:
              Resolved: