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

UserProperty not defensive - causes HTTP 500 errors when rendering myViews

XMLWordPrintable

      java.lang.AssertionError: class org.jenkinsci.plugins.googlelogin.GoogleUserInfo is missing its descriptor
      	at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1537)
      	at hudson.model.UserProperty.getDescriptor(UserProperty.java:67)
      	at hudson.model.UserProperty.getDescriptor(UserProperty.java:52)
      	at hudson.model.Descriptor.toMap(Descriptor.java:989)
      	at hudson.model.User.getProperties(User.java:270)
      	at hudson.model.User.getPropertyActions(User.java:978)
      	at hudson.model.User.getDynamic(User.java:964)
      	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
      	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
      	at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:372)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
      

      This can happen for a variety of reasons

      • one plugin is bad (should not affect others)
      • temporary issue in development
      • The UserProperty is loaded from a different class loader and as such the extension is not picked up at jenkins boot time - where it is acceptable to not show any configuration for the property.

            jglick Jesse Glick
            teilo James Nord
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: