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

CustomType descriptor breaks Hudson core descriptor search

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      hudson.plugin.xunit.types.CustomType.CustomInputMetricDescriptor.getId() throws an UnsupportedOperationException. However, hudson.model.Hudson.getDescriptor(String) uses getId() to identify plugins since December 2010. The exception can be seen for example in the Hudson logs during jelly parsing.
      (In my case, a more severe problem was losing the build history due to an internal plugin which uses Hudson.getDescriptor() - the exception prevented serializing the build.xml files to disk.)

        Attachments

          Activity

          Hide
          sebastian_bergmann sebastian_bergmann added a comment -

          I am seeing the same exception when configuring the Plot plugin:

          Status Code: 500
          Exception:
          Stacktrace:
          
          java.lang.UnsupportedOperationException: The descriptor registry with the called getId() method is not used. The descriptor redefines its own getInputMetric() method.
          	at com.thalesgroup.hudson.plugins.xunit.types.CustomType$CustomInputMetricDescriptor.getId(CustomType.java:66)
          	at hudson.model.Hudson.getDescriptor(Hudson.java:955)
          	at hudson.model.Hudson.getDescriptorByName(Hudson.java:968)
          	at hudson.model.AbstractItem.getDescriptorByName(AbstractItem.java:375)
          	at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          	at java.lang.reflect.Method.invoke(Method.java:616)
          	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
          	at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:242)
          	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:562)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640)
          	at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:242)
          	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:562)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:478)
          	at org.kohsuke.stapler.Stapler.service(Stapler.java:160)
          	at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
          	at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
          	at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
          	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
          	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
          	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
          	at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
          	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
          	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
          	at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
          	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
          	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
          	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
          	at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
          	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
          	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
          	at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
          	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
          	at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
          	at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
          	at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
          	at java.lang.Thread.run(Thread.java:636)
          
          Show
          sebastian_bergmann sebastian_bergmann added a comment - I am seeing the same exception when configuring the Plot plugin: Status Code: 500 Exception: Stacktrace: java.lang.UnsupportedOperationException: The descriptor registry with the called getId() method is not used. The descriptor redefines its own getInputMetric() method. at com.thalesgroup.hudson.plugins.xunit.types.CustomType$CustomInputMetricDescriptor.getId(CustomType.java:66) at hudson.model.Hudson.getDescriptor(Hudson.java:955) at hudson.model.Hudson.getDescriptorByName(Hudson.java:968) at hudson.model.AbstractItem.getDescriptorByName(AbstractItem.java:375) at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282) at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:242) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:562) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640) at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:242) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:562) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:478) at org.kohsuke.stapler.Stapler.service(Stapler.java:160) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:636)
          Hide
          gbois Gregory Boissinot added a comment -

          xUnit 1.14 was upgraded to latest API (the current target is JENKINS 1.396)

          Show
          gbois Gregory Boissinot added a comment - xUnit 1.14 was upgraded to latest API (the current target is JENKINS 1.396)

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              eifert eifert
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: