java.io.IOException

java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.tools.ant.Location

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web9

  • via Unknown by Eyal Edri,
  • via Unknown by Eyal Edri,
  • Stack trace

    • java.io.IOException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.tools.ant.Location at hudson.FilePath.copyRecursiveTo(FilePath.java:2221) at hudson.FilePath.copyRecursiveTo(FilePath.java:2109) at hudson.FilePath.copyRecursiveTo(FilePath.java:2092) at htmlpublisher.HtmlPublisher.perform(HtmlPublisher.java:213) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1743) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.tools.ant.Location at hudson.remoting.Channel$3.adapt(Channel.java:784) at hudson.remoting.Channel$3.adapt(Channel.java:779) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.FilePath.copyRecursiveTo(FilePath.java:2219) ... 12 more Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.tools.ant.Location at org.apache.tools.ant.ProjectComponent.<init>(ProjectComponent.java:43) at org.apache.tools.ant.types.DataType.<init>(DataType.java:40) at org.apache.tools.ant.types.AbstractFileSet.<init>(AbstractFileSet.java:82) at org.apache.tools.ant.types.FileSet.<init>(FileSet.java:36) at hudson.Util.createFileSet(Util.java:1077)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.