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

java.lang.NoClassDefFoundError: org/acegisecurity/acls/NotFoundException

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi all after upgrading to 2.277.1 from 2.263.4

      All pipeline started to crash with the following output:

       
      java.lang.ClassNotFoundException: org.acegisecurity.acls.NotFoundException*18:11:22* at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1387)18:11:22 at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1342)18:11:22 at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1089)18:11:22 at java.lang.ClassLoader.loadClass(ClassLoader.java:352)18:11:22 at org.jfrog.hudson.pipeline.scripted.steps.GetArtifactoryServerStep$Execution.run(GetArtifactoryServerStep.java:41)18:11:22 at org.jfrog.hudson.pipeline.scripted.steps.GetArtifactoryServerStep$Execution.run(GetArtifactoryServerStep.java:28)18:11:22 at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start(AbstractSynchronousStepExecution.java:42)18:11:22 at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:286)18:11:22 at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:179)18:11:22 at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)18:11:22 at org.jfrog.hudson.pipeline.scripted.dsl.ArtifactoryPipelineGlobal.server(ArtifactoryPipelineGlobal.java:39)18:11:22 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)18:11:22 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)18:11:22 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)18:11:22 at java.lang.reflect.Method.invoke(Method.java:498)18:11:22 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)18:11:22 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)18:11:22 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)18:11:22 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)18:11:22 at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:47)18:11:22 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)18:11:22 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)18:11:22 at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:163)18:11:22 at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)18:11:22 at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:157)18:11:22 at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:161)18:11:22 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:165)18:11:22 at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)18:11:22 Caused: java.lang.NoClassDefFoundError: org/acegisecurity/acls/NotFoundException*18:11:22* at org.jfrog.hudson.pipeline.scripted.steps.GetArtifactoryServerStep$Execution.run(GetArtifactoryServerStep.java:41)18:11:22 at org.jfrog.hudson.pipeline.scripted.steps.GetArtifactoryServerStep$Execution.run(GetArtifactoryServerStep.java:28)18:11:22 at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start(AbstractSynchronousStepExecution.java:42)18:11:22 at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:286)18:11:22 at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:179)18:11:22 at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)18:11:22 at org.jfrog.hudson.pipeline.scripted.dsl.ArtifactoryPipelineGlobal.server(ArtifactoryPipelineGlobal.java:39)18:11:22 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)18:11:22 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)18:11:22 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)18:11:22 at java.lang.reflect.Method.invoke(Method.java:498)18:11:22 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)18:11:22 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)18:11:22 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)18:11:22 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)18:11:22 at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:47)18:11:22 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)18:11:22 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)18:11:22 at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:163)18:11:22 at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)18:11:22 at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:157)18:11:22 at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:161)18:11:22 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:165)18:11:22 at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)18:11:22 at WorkflowScript.run(WorkflowScript:263)18:11:22 at __cps.transform__(Native Method)18:11:22 at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86)18:11:22 at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)18:11:22 at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)18:11:22 at sun.reflect.GeneratedMethodAccessor404.invoke(Unknown Source)18:11:22 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)18:11:22 at java.lang.reflect.Method.invoke(Method.java:498)18:11:22 at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)18:11:22 at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)18:11:22 at com.cloudbees.groovy.cps.Next.step(Next.java:83)18:11:22 at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)18:11:22 at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)18:11:22 at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)18:11:22 at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)18:11:22 at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)18:11:22 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)18:11:22 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)18:11:22 at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)18:11:22 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:400)18:11:22 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)18:11:22 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312)18:11:22 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276)18:11:22 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)18:11:22 at java.util.concurrent.FutureTask.run(FutureTask.java:266)18:11:22 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)18:11:22 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)18:11:22 at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)18:11:22 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)18:11:22 at java.util.concurrent.FutureTask.run(FutureTask.java:266)18:11:22 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)18:11:22 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)18:11:22 at java.lang.Thread.run(Thread.java:748)

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          FTR https://www.jenkins.io/blog/2020/11/10/spring-xstream/ . This is related to the Acegi replacement by Spring Security. Looks like the compatibility layer does not support this class. The plugin likely needs a fix

           

          CC Jesse Glick Wadeck Follonier

           

          Show
          oleg_nenashev Oleg Nenashev added a comment - FTR https://www.jenkins.io/blog/2020/11/10/spring-xstream/  . This is related to the Acegi replacement by Spring Security. Looks like the compatibility layer does not support this class. The plugin likely needs a fix   CC Jesse Glick Wadeck Follonier  
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          The core's Acegi facade does not include the referenced class: https://github.com/jenkinsci/jenkins/tree/223f41b371b3f55d4f54b759e2a7b0ecbe0744e7/core/src/main/java/org/acegisecurity . The easiest fix is to just add the exception class to the Jenkins core. I am not sure whether it will be enough though

          Show
          oleg_nenashev Oleg Nenashev added a comment - The core's Acegi facade does not include the referenced class: https://github.com/jenkinsci/jenkins/tree/223f41b371b3f55d4f54b759e2a7b0ecbe0744e7/core/src/main/java/org/acegisecurity  . The easiest fix is to just add the exception class to the Jenkins core. I am not sure whether it will be enough though
          Hide
          danielbeck Daniel Beck added a comment -

          https://github.com/jenkinsci/artifactory-plugin/commit/b40b174e6d6416258f05e02affa614fe70a0bac0 was supposed to fix this. Are you on an older Artifactory release?

          Show
          danielbeck Daniel Beck added a comment - https://github.com/jenkinsci/artifactory-plugin/commit/b40b174e6d6416258f05e02affa614fe70a0bac0 was supposed to fix this. Are you on an older Artifactory release?
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Kovács which plugin version do you use? AFAICT https://github.com/jfrog/jenkins-artifactory-plugin/pull/327 in Artifactory Plugin 3.9.0+ should have fixed that

          Show
          oleg_nenashev Oleg Nenashev added a comment - Kovács  which plugin version do you use? AFAICT https://github.com/jfrog/jenkins-artifactory-plugin/pull/327  in Artifactory Plugin 3.9.0+ should have fixed that
          Hide
          jglick Jesse Glick added a comment -

          Yes, you just need to update plugins before updating Jenkins core, as mentioned in the upgrade guide.

          Show
          jglick Jesse Glick added a comment - Yes, you just need to update plugins before updating Jenkins core, as mentioned in the upgrade guide.
          Hide
          balage Kovács added a comment -

          Hi, thanks  for the quick help, i will do the update and update the jenkins again in the next maintenance window. 

           

          Unfortunetly we were on 3.6.1 old version, now its clear!

           

          Br

           

          B.

          Show
          balage Kovács added a comment - Hi, thanks  for the quick help, i will do the update and update the jenkins again in the next maintenance window.    Unfortunetly we were on 3.6.1 old version, now its clear!   Br   B.

            People

            Assignee:
            jglick Jesse Glick
            Reporter:
            balage Kovács
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: