• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • core
    • None
    • Windows server 2008 64bit
      Windows XP Professional SP3

      Since last 2-3 versions (now 1.367) artifacts archiving fails with the following error:
      BUILD SUCCESSFUL
      Total time: 4 seconds
      Archiving artifacts
      ERROR: Failed to archive artifacts: publish/*/
      hudson.util.IOException2: Failed to copy c:\opencm\hudson\jobs\Jade_M1-daily\workspace/publish/*/ to c:\opencm\hudson\jobs\Jade_M1-daily\builds\2010-07-19_13-27-32\archive
      at hudson.FilePath$31.invoke(FilePath.java:1451)
      at hudson.FilePath$31.invoke(FilePath.java:1418)
      at hudson.FilePath.act(FilePath.java:753)
      at hudson.FilePath.act(FilePath.java:735)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1418)
      at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
      at hudson.model.Build$RunnerImpl.post2(Build.java:158)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      at hudson.model.Run.run(Run.java:1280)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:129)
      Caused by: Failed to copy c:\opencm\hudson\jobs\Jade_M1-daily\workspace\publish\dailydictionary_50.47_19072010.mdb to c:\opencm\hudson\jobs\Jade_M1-daily\builds\2010-07-19_13-27-32\archive\publish\dailydictionary_50.47_19072010.mdb due to Map failed
      at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:853)
      at hudson.FilePath$31$1CopyImpl.doFileOperations(FilePath.java:1434)
      at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:523)
      at hudson.FilePath$31.invoke(FilePath.java:1448)
      ... 15 more
      Caused by: java.io.IOException: Map failed
      at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:761)
      at sun.nio.ch.FileChannelImpl.transferToTrustedChannel(FileChannelImpl.java:450)
      at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:523)
      at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:475)
      at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:519)
      at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:481)
      at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:310)
      at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:841)
      ... 18 more
      Caused by: java.lang.OutOfMemoryError: Map failed
      at sun.nio.ch.FileChannelImpl.map0(Native Method)
      at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:758)
      ... 25 more
      Finished: SUCCESS

      Page generated: Jul 19, 2010 2:23:10 PMHudson ver. 1.367

      while some of the files are copied.

          [JENKINS-7013] Build fails to archive the artifacts

          liyatikal created issue -

          liyatikal added a comment -

          I had to downgrade Hudson to 1.362, all newer ones failed with this error on archiving large files.

          I had the same problem in two different installations with completely different configuration, except that both were Windows installations.

          liyatikal added a comment - I had to downgrade Hudson to 1.362, all newer ones failed with this error on archiving large files. I had the same problem in two different installations with completely different configuration, except that both were Windows installations.

          Manfred Koch added a comment -

          Looks like a problem with ant 1.8.1 which is used for local to local copy.
          https://issues.apache.org/bugzilla/show_bug.cgi?id=49326

          Manfred Koch added a comment - Looks like a problem with ant 1.8.1 which is used for local to local copy. https://issues.apache.org/bugzilla/show_bug.cgi?id=49326

          liyatikal added a comment -

          Seems like the fix was done on the trunk (http://svn.apache.org/viewvc?view=revision&revision=947339)
          Does that mean that we will need to wait till ant 1.8.2 is released??

          liyatikal added a comment - Seems like the fix was done on the trunk ( http://svn.apache.org/viewvc?view=revision&revision=947339 ) Does that mean that we will need to wait till ant 1.8.2 is released??

          jjthomas3 added a comment - - edited

          We're seeing it under Windows Server 2003 R2 x86 as well.

          This is still an issue in 1.376.

          I downloaded the latest ANT sources and compiled them and replaced ResourceUtils.class in the ant-1.8.1.jar located in the Hudson Webapp, this solved the issue for us, so the commit that was noted by liyatikal, above, does fix the problem.

          We're using 1.376 now with no issue.

          jjthomas3 added a comment - - edited We're seeing it under Windows Server 2003 R2 x86 as well. This is still an issue in 1.376. I downloaded the latest ANT sources and compiled them and replaced ResourceUtils.class in the ant-1.8.1.jar located in the Hudson Webapp, this solved the issue for us, so the commit that was noted by liyatikal, above, does fix the problem. We're using 1.376 now with no issue.

          jjthomas3 added a comment -

          As a workaround -> This is the corrected ResourceUtils.class file.

          If you replace the ResourceUtils.class file inside ${webapps}\Hudson\WEB-INF\lib\ant-1.8.1.jar with this one your problem will be corrected. The sources came from the 9/14 nightly snapshot of Ant. The location for ResourceUtils.class inside the JAR archive is org\apache\tools\ant\util\ResourceUtils.class.

          I used WinZIP, renamed the JAR to ZIP, opened it up in WinZIP, browsed to the correct file in the archive and then drag and drop the new class over the old. Renamed back to JAR and started Tomcat. Problem solved.

          jjthomas3 added a comment - As a workaround -> This is the corrected ResourceUtils.class file. If you replace the ResourceUtils.class file inside ${webapps}\Hudson\WEB-INF\lib\ant-1.8.1.jar with this one your problem will be corrected. The sources came from the 9/14 nightly snapshot of Ant. The location for ResourceUtils.class inside the JAR archive is org\apache\tools\ant\util\ResourceUtils.class. I used WinZIP, renamed the JAR to ZIP, opened it up in WinZIP, browsed to the correct file in the archive and then drag and drop the new class over the old. Renamed back to JAR and started Tomcat. Problem solved.
          jjthomas3 made changes -
          Attachment New: ResourceUtils.class [ 19742 ]
          Andrew Bayer made changes -
          Assignee New: Andrew Bayer [ abayer ]

          Andrew Bayer added a comment -

          Looks like this will require waiting for 1.8.2 - not sure why we moved to 1.8.1 in the first place. I'll see if that can be rolled back, but worst case, yeah, 1.8.2.

          Andrew Bayer added a comment - Looks like this will require waiting for 1.8.2 - not sure why we moved to 1.8.1 in the first place. I'll see if that can be rolled back, but worst case, yeah, 1.8.2.
          Andrew Bayer made changes -
          Link New: This issue is duplicated by JENKINS-7038 [ JENKINS-7038 ]

            abayer Andrew Bayer
            liyatikal liyatikal
            Votes:
            9 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: