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

Gerrit plugin breaks job dsl documentation viewer

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Environment:

      • Jenkins core: 2.277.4
      • Gerrit Trigger plugin: 2.34.0
      • JobDSL pluigin: 1.77
      • Jenkins DSL job API viewer does not load any documentation in a Jenkins server with gerrit trigger installed .

      The following error is shown in Web browser console

       

      And the following error in the jenkins logs:

      Error while serving https://XXXXXX/job-dsl-api-viewer/data
      java.lang.ClassNotFoundException: junit.framework.TestCase
       at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1387)
       at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1342)
       at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1089)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
      Caused: java.lang.NoClassDefFoundError: junit/framework/TestCase
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
       at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1155)
       at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:718)
       at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1326)
       at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1377)
       at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1342)
       at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1089)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
       at java.lang.Class.getDeclaredFields0(Native Method)
       at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
       at java.lang.Class.privateGetPublicFields(Class.java:2614)
       at java.lang.Class.getFields(Class.java:1557)
       at org.kohsuke.stapler.ClassDescriptor.<init>(ClassDescriptor.java:81)
       at org.jenkinsci.plugins.structs.describable.DescribableModel.<init>(DescribableModel.java:153)
       at org.jenkinsci.plugins.structs.describable.DescribableModel.of(DescribableModel.java:123)
       at org.jenkinsci.plugins.structs.describable.ParameterType.of(ParameterType.java:84)
       at org.jenkinsci.plugins.structs.describable.DescribableParameter.getType(DescribableParameter.java:60)
       at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
       at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
       at org.codehaus.groovy.runtime.metaclass.MethodMetaProperty$GetBeanMethodMetaProperty.getProperty(MethodMetaProperty.java:76)
       at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:64)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296)
       at javaposse.jobdsl.plugin.EmbeddedApiDocGenerator.generateSignature(EmbeddedApiDocGenerator.groovy:268)
       at javaposse.jobdsl.plugin.EmbeddedApiDocGenerator.generateMethod(EmbeddedApiDocGenerator.groovy:259)
       at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
       at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
       at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:384)
       at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
       at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
       at javaposse.jobdsl.plugin.EmbeddedApiDocGenerator$_generateContext_closure10.doCall(EmbeddedApiDocGenerator.groovy:234)
       at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
       at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
       at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
       at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
       at groovy.lang.Closure.call(Closure.java:414)
       at groovy.lang.Closure.call(Closure.java:430)
       at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2040)
       at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2025)
       at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2054)
       at org.codehaus.groovy.runtime.dgm$161.invoke(Unknown Source)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
       at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
       at javaposse.jobdsl.plugin.EmbeddedApiDocGenerator.generateContext(EmbeddedApiDocGenerator.groovy:232)
       at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
       at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
       at javaposse.jobdsl.plugin.EmbeddedApiDocGenerator.generateApi(EmbeddedApiDocGenerator.groovy:51)
       at javaposse.jobdsl.plugin.EmbeddedApiDocGenerator$generateApi.call(Unknown Source)
       at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
       at javaposse.jobdsl.plugin.actions.ApiViewerRootAction.generateData(ApiViewerRootAction.groovy:49)
       at javaposse.jobdsl.plugin.actions.ApiViewerRootAction.doData(ApiViewerRootAction.groovy:43)
       at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
       at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
      Caused: java.lang.reflect.InvocationTargetException
       at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:400)
       at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
       at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
       at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
       at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:536)
       at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
       at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
       at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
       at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:457)
       at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
       at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
       at org.kohsuke.stapler.Stapler.invoke(Stapler.java:694)
       at org.kohsuke.stapler.Stapler.service(Stapler.java:240)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
       at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:791)
       at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1626)
       at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
       at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:248)
       at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
       at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76)
       at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
       at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:129)
       at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
       at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:60)
       at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
       at com.cloudbees.jenkins.support.slowrequest.SlowRequestFilter.doFilter(SlowRequestFilter.java:37)
       at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
       at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
       at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
       at hudson.plugins.locale.LocaleFilter.doFilter(LocaleFilter.java:42)
       at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
       at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:64)
       at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
       at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
       at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
       at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
       at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:159)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
       at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:92)
       at jenkins.security.AcegiSecurityExceptionFilter.doFilter(AcegiSecurityExceptionFilter.java:52)
       at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
       at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
       at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
       at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
       at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
       at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
       at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:105)
       at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
       at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:101)
       at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:92)
       at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
       at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:218)
       at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:212)
       at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
       at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
       at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
       at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110)
       at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
       at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:62)
       at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
       at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:109)
       at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:168)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
       at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:51)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
       at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
       at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
       at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:36)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
       at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
       at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)
       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
       at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
       at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1435)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
       at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
       at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
       at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1350)
       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
       at org.eclipse.jetty.server.Server.handle(Server.java:516)
       at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
       at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
       at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:279)
       at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
       at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
       at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
       at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
       at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
       at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
       at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
       at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:383)
       at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:882)
       at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1036)
       at java.lang.Thread.run(Thread.java:748)

       

       

       

       

        Attachments

          Activity

          cesaralbloz César Alba Lozano created issue -

            People

            Assignee:
            rsandell rsandell
            Reporter:
            cesaralbloz César Alba Lozano
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: