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

NoClassDefFoundError when viewing git configuration

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.532.2
      Git plugin 2.0.4
    • Similar Issues:

      Description

      When viewing the configuration for a job using git I now get "ERROR" under the git url and when I click on it I see the following:

      javax.servlet.ServletException: java.lang.NoClassDefFoundError: org.jenkinsci.plugins.gitclient.GitClient
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:778)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
      at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:203)
      at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:181)
      at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86)
      at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:90)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
      at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:79)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:724)
      Caused by: java.lang.NoClassDefFoundError: org.jenkinsci.plugins.gitclient.GitClient
      at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:63)
      at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:54)
      at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:66)
      at hudson.plugins.git.UserRemoteConfig$DescriptorImpl.doCheckUrl(UserRemoteConfig.java:147)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      ... 67 more

        Attachments

          Issue Links

            Activity

            Hide
            jpschewe jpschewe added a comment -

            I get a similar error when trying to checkout code:
            23:13:15 FATAL: org.jenkinsci.plugins.gitclient.GitClient
            23:13:15 java.lang.NoClassDefFoundError: org.jenkinsci.plugins.gitclient.GitClient
            23:13:15 at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:63)
            23:13:15 at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:54)
            23:13:15 at hudson.FilePath.act(FilePath.java:911)
            23:13:15 at hudson.FilePath.act(FilePath.java:884)
            23:13:15 at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:66)
            23:13:15 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:565)
            23:13:15 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:557)
            23:13:15 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:872)
            23:13:15 at hudson.model.AbstractProject.checkout(AbstractProject.java:1411)
            23:13:15 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
            23:13:15 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
            23:13:15 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561)
            23:13:15 at hudson.model.Run.execute(Run.java:1665)
            23:13:15 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
            23:13:15 at hudson.model.ResourceController.execute(ResourceController.java:88)
            23:13:15 at hudson.model.Executor.run(Executor.java:246)

            Show
            jpschewe jpschewe added a comment - I get a similar error when trying to checkout code: 23:13:15 FATAL: org.jenkinsci.plugins.gitclient.GitClient 23:13:15 java.lang.NoClassDefFoundError: org.jenkinsci.plugins.gitclient.GitClient 23:13:15 at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:63) 23:13:15 at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:54) 23:13:15 at hudson.FilePath.act(FilePath.java:911) 23:13:15 at hudson.FilePath.act(FilePath.java:884) 23:13:15 at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:66) 23:13:15 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:565) 23:13:15 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:557) 23:13:15 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:872) 23:13:15 at hudson.model.AbstractProject.checkout(AbstractProject.java:1411) 23:13:15 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652) 23:13:15 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 23:13:15 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561) 23:13:15 at hudson.model.Run.execute(Run.java:1665) 23:13:15 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 23:13:15 at hudson.model.ResourceController.execute(ResourceController.java:88) 23:13:15 at hudson.model.Executor.run(Executor.java:246)
            Hide
            markewaite Mark Waite added a comment -

            The JENKINS-21745 report says that there was a problem if the credentials plugin was disabled. Can you confirm that your credentials plugin is up to date, and is enabled?

            Show
            markewaite Mark Waite added a comment - The JENKINS-21745 report says that there was a problem if the credentials plugin was disabled. Can you confirm that your credentials plugin is up to date, and is enabled?
            Hide
            markewaite Mark Waite added a comment -

            After 3 weeks without a response, I'm closing this as "Cannot Reproduce"

            Show
            markewaite Mark Waite added a comment - After 3 weeks without a response, I'm closing this as "Cannot Reproduce"
            Hide
            jpschewe jpschewe added a comment -

            Sorry, for some reason I didn't see the notification of your previous comment. I have since revered to Git Plugin 2.0. I do not see the error there. I just upgraded to 2.0.4 again and now I'm not seeing the error.

            Show
            jpschewe jpschewe added a comment - Sorry, for some reason I didn't see the notification of your previous comment. I have since revered to Git Plugin 2.0. I do not see the error there. I just upgraded to 2.0.4 again and now I'm not seeing the error.

              People

              • Assignee:
                ndeloof Nicolas De Loof
                Reporter:
                jpschewe jpschewe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: