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

Strange NoClassDefFoundError on slave

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • core
    • None
    • Jenkins

      At the end of the job:

      Waiting for Jenkins to finish collecting data
      channel stopped
      Run condition [Always] enabling perform for step [Archive the artifacts]
      Archiving artifacts
      ERROR: Failed to archive artifacts: */.log
      hudson.util.IOException2: java.lang.NoClassDefFoundError: Could not initialize class jnr.posix.POSIXFactory
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1943)
      at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:137)
      at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
      at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154)
      at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
      at org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:88)
      at org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:96)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:969)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
      at hudson.model.Run.execute(Run.java:1618)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:491)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:242)
      Caused by: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class jnr.posix.POSIXFactory
      at hudson.remoting.Channel$4.adapt(Channel.java:755)
      at hudson.remoting.Channel$4.adapt(Channel.java:750)
      at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1941)
      ... 15 more
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class jnr.posix.POSIXFactory
      at hudson.os.PosixAPI.jnr(PosixAPI.java:30)
      at hudson.util.IOUtils.mode(IOUtils.java:125)
      at hudson.util.io.TarArchiver.visit(TarArchiver.java:102)
      at hudson.util.DirScanner$Glob.scan(DirScanner.java:133)
      at hudson.FilePath.writeToTar(FilePath.java:1979)
      at hudson.FilePath.access$1000(FilePath.java:169)
      at hudson.FilePath$36.invoke(FilePath.java:1920)
      at hudson.FilePath$36.invoke(FilePath.java:1916)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2388)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Build step 'Flexible publish' changed build result to FAILURE
      Finished: FAILURE

            Unassigned Unassigned
            magnayn magnayn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: