java.io.IOException: CreateProcess: C:\opt\ant\apache-ant-1.6.5\bin\ant.bat -f build.xml clean error=5

Atlassian JIRA | Chris Beams | 10 years ago
  1. 0

    I'm using a freshly installed 1.02 Bamboo on Windows XP, and any attempt to kick off a build using Ant fails immediately with the following log output: INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,013 INFO [BAM:Default Queue:BuildExe] [AbstractBuilder] Starting to build 'Packager - Trunk' INFO | jvm 1 | 2007/03/27 22:47:28 | <br /> ... running command line: C:\opt\ant\apache-ant-1.6.5\bin\ant.bat -f build.xml clean INFO | jvm 1 | 2007/03/27 22:47:28 | <br /> ... in : C:\Program Files\BambooHome\xml-data\build-dir\PACKGER-TRUNK INFO | jvm 1 | 2007/03/27 22:47:28 | <br /> ... using java: c:\Program Files\Java\jdk1.5.0_06 INFO | jvm 1 | 2007/03/27 22:47:28 | <br /> ... using environment variables: INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,076 WARN [BAM:Default Queue:BuildExe] [Command] Failed to execute command INFO | jvm 1 | 2007/03/27 22:47:28 | java.io.IOException: CreateProcess: C:\opt\ant\apache-ant-1.6.5\bin\ant.bat -f build.xml clean error=5 INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.ProcessImpl.create(Native Method) INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.ProcessImpl.start(ProcessImpl.java:30) INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.Runtime.exec(Runtime.java:591) INFO | jvm 1 | 2007/03/27 22:47:28 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2007/03/27 22:47:28 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) INFO | jvm 1 | 2007/03/27 22:47:28 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.reflect.Method.invoke(Method.java:585) INFO | jvm 1 | 2007/03/27 22:47:28 | at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:834) INFO | jvm 1 | 2007/03/27 22:47:28 | at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) INFO | jvm 1 | 2007/03/27 22:47:28 | at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) INFO | jvm 1 | 2007/03/27 22:47:28 | at com.atlassian.bamboo.command.Command.executeCommand(Command.java:53) INFO | jvm 1 | 2007/03/27 22:47:28 | at com.atlassian.bamboo.builder.AbstractBuilder.build(AbstractBuilder.java:191) INFO | jvm 1 | 2007/03/27 22:47:28 | at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:51) INFO | jvm 1 | 2007/03/27 22:47:28 | at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176) INFO | jvm 1 | 2007/03/27 22:47:28 | at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) INFO | jvm 1 | 2007/03/27 22:47:28 | at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) INFO | jvm 1 | 2007/03/27 22:47:28 | at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.Thread.run(Thread.java:595) INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,092 INFO [BAM:Default Queue:BuildExe] [Command] err>CreateProcess: C:\opt\ant\apache-ant-1.6.5\bin\ant.bat -f build.xml clean error=5 INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,092 INFO [BAM:Default Queue:BuildExe] [AbstractBuilder] Completed building build "Packager - Trunk" return code = -1 INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,092 INFO [BAM:Default Queue:BuildExe] [ExecuteBuildTask] Build log size: 4 INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,092 INFO [BAM:Default Queue:BuildExe] [ExecuteBuildTask] Setting build artifacts INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,092 INFO [BAM:Default Queue:BuildExe] [SubmittedBuildFuture] Task class com.atlassian.bamboo.build.pipeline.concurrent.SubmittedBuildFuture for PACKGER-TRUNK is done! Cancelled: false INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,092 INFO [BAM:Default Queue:BuildExe] [SaveBuildTask] Setting build logs... INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,107 INFO [BAM:Default Queue:BuildExe] [SaveBuildTask] Saving build results... INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,138 INFO [BAM:Default Queue:BuildExe] [SaveBuildTask] Generating build results summary... INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,263 INFO [BAM:Default Queue:BuildExe] [SaveBuildTask] Indexing build results... INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,326 INFO [BAM:Default Queue:BuildExe] [DefaultBuildResultsIndexer] Indexed PACKGER-TRUNK-12, took: less than 1 second INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,451 INFO [BAM:Default Queue:BuildExe] [SaveBuildTask] Finished build: BuildResults: PACKGER-TRUNK-12 INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,451 INFO [BAM:Default Queue:BuildExe] [SaveBuildTask] Finished building PACKGER-TRUNK-12. INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,451 INFO [BAM:Default Queue:BuildExe] [SubmittedBuildFuture] Task class com.atlassian.bamboo.build.pipeline.concurrent.SubmittedBuildFuture for PACKGER-TRUNK is done! Cancelled: false INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,467 INFO [BAM:queuedTaskMaster:BuildExe] [BambooBuildPipeline] Building completed for build PACKGER-TRUNK-12 INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,467 INFO [BAM:queuedTaskMaster:BuildExe] [BambooBuildPipeline] Done with BuildResults: PACKGER-TRUNK-12 on pipeline 'Default Queue' placing in notification queue INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,467 INFO [BAM:queuedTaskMaster:BuildExe] [SubmittedBuildFuture] Task class com.atlassian.bamboo.build.pipeline.concurrent.SubmittedBuildFuture for PACKGER-TRUNK is done! Cancelled: false INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,467 INFO [BAM::Default Queue::BuildComp] [BuildCompleteNotifier] Running build post actions 'Packager - Trunk' INFO | jvm 1 | 2007/03/27 22:47:29 | 2007-03-27 22:47:29,467 INFO [BAM::DefaultBuildEventNotifier::action] [DependencyBuilder] Checking dependencies of build:Packager - Trunk build:12 INFO | jvm 1 | 2007/03/27 22:47:30 | 2007-03-27 22:47:30,951 INFO [BAM::DefaultBuildEventNotifier::action] [DefaultEmailBuildResultsService] Sent a build results email for build "PACKGER-TRUNK" Note that Maven builds work fine. Also note that I am intentionally passing just the 'clean' target to Ant... this was in an attempt to simplify the situation as much as possible. Please request any additional information and I'll send it immediately.

    Atlassian JIRA | 10 years ago | Chris Beams
    java.io.IOException: CreateProcess: C:\opt\ant\apache-ant-1.6.5\bin\ant.bat -f build.xml clean error=5
  2. 0

    I'm using a freshly installed 1.02 Bamboo on Windows XP, and any attempt to kick off a build using Ant fails immediately with the following log output: INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,013 INFO [BAM:Default Queue:BuildExe] [AbstractBuilder] Starting to build 'Packager - Trunk' INFO | jvm 1 | 2007/03/27 22:47:28 | <br /> ... running command line: C:\opt\ant\apache-ant-1.6.5\bin\ant.bat -f build.xml clean INFO | jvm 1 | 2007/03/27 22:47:28 | <br /> ... in : C:\Program Files\BambooHome\xml-data\build-dir\PACKGER-TRUNK INFO | jvm 1 | 2007/03/27 22:47:28 | <br /> ... using java: c:\Program Files\Java\jdk1.5.0_06 INFO | jvm 1 | 2007/03/27 22:47:28 | <br /> ... using environment variables: INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,076 WARN [BAM:Default Queue:BuildExe] [Command] Failed to execute command INFO | jvm 1 | 2007/03/27 22:47:28 | java.io.IOException: CreateProcess: C:\opt\ant\apache-ant-1.6.5\bin\ant.bat -f build.xml clean error=5 INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.ProcessImpl.create(Native Method) INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.ProcessImpl.start(ProcessImpl.java:30) INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.Runtime.exec(Runtime.java:591) INFO | jvm 1 | 2007/03/27 22:47:28 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2007/03/27 22:47:28 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) INFO | jvm 1 | 2007/03/27 22:47:28 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.reflect.Method.invoke(Method.java:585) INFO | jvm 1 | 2007/03/27 22:47:28 | at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:834) INFO | jvm 1 | 2007/03/27 22:47:28 | at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) INFO | jvm 1 | 2007/03/27 22:47:28 | at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) INFO | jvm 1 | 2007/03/27 22:47:28 | at com.atlassian.bamboo.command.Command.executeCommand(Command.java:53) INFO | jvm 1 | 2007/03/27 22:47:28 | at com.atlassian.bamboo.builder.AbstractBuilder.build(AbstractBuilder.java:191) INFO | jvm 1 | 2007/03/27 22:47:28 | at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:51) INFO | jvm 1 | 2007/03/27 22:47:28 | at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176) INFO | jvm 1 | 2007/03/27 22:47:28 | at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) INFO | jvm 1 | 2007/03/27 22:47:28 | at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) INFO | jvm 1 | 2007/03/27 22:47:28 | at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) INFO | jvm 1 | 2007/03/27 22:47:28 | at java.lang.Thread.run(Thread.java:595) INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,092 INFO [BAM:Default Queue:BuildExe] [Command] err>CreateProcess: C:\opt\ant\apache-ant-1.6.5\bin\ant.bat -f build.xml clean error=5 INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,092 INFO [BAM:Default Queue:BuildExe] [AbstractBuilder] Completed building build "Packager - Trunk" return code = -1 INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,092 INFO [BAM:Default Queue:BuildExe] [ExecuteBuildTask] Build log size: 4 INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,092 INFO [BAM:Default Queue:BuildExe] [ExecuteBuildTask] Setting build artifacts INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,092 INFO [BAM:Default Queue:BuildExe] [SubmittedBuildFuture] Task class com.atlassian.bamboo.build.pipeline.concurrent.SubmittedBuildFuture for PACKGER-TRUNK is done! Cancelled: false INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,092 INFO [BAM:Default Queue:BuildExe] [SaveBuildTask] Setting build logs... INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,107 INFO [BAM:Default Queue:BuildExe] [SaveBuildTask] Saving build results... INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,138 INFO [BAM:Default Queue:BuildExe] [SaveBuildTask] Generating build results summary... INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,263 INFO [BAM:Default Queue:BuildExe] [SaveBuildTask] Indexing build results... INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,326 INFO [BAM:Default Queue:BuildExe] [DefaultBuildResultsIndexer] Indexed PACKGER-TRUNK-12, took: less than 1 second INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,451 INFO [BAM:Default Queue:BuildExe] [SaveBuildTask] Finished build: BuildResults: PACKGER-TRUNK-12 INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,451 INFO [BAM:Default Queue:BuildExe] [SaveBuildTask] Finished building PACKGER-TRUNK-12. INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,451 INFO [BAM:Default Queue:BuildExe] [SubmittedBuildFuture] Task class com.atlassian.bamboo.build.pipeline.concurrent.SubmittedBuildFuture for PACKGER-TRUNK is done! Cancelled: false INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,467 INFO [BAM:queuedTaskMaster:BuildExe] [BambooBuildPipeline] Building completed for build PACKGER-TRUNK-12 INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,467 INFO [BAM:queuedTaskMaster:BuildExe] [BambooBuildPipeline] Done with BuildResults: PACKGER-TRUNK-12 on pipeline 'Default Queue' placing in notification queue INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,467 INFO [BAM:queuedTaskMaster:BuildExe] [SubmittedBuildFuture] Task class com.atlassian.bamboo.build.pipeline.concurrent.SubmittedBuildFuture for PACKGER-TRUNK is done! Cancelled: false INFO | jvm 1 | 2007/03/27 22:47:28 | 2007-03-27 22:47:28,467 INFO [BAM::Default Queue::BuildComp] [BuildCompleteNotifier] Running build post actions 'Packager - Trunk' INFO | jvm 1 | 2007/03/27 22:47:29 | 2007-03-27 22:47:29,467 INFO [BAM::DefaultBuildEventNotifier::action] [DependencyBuilder] Checking dependencies of build:Packager - Trunk build:12 INFO | jvm 1 | 2007/03/27 22:47:30 | 2007-03-27 22:47:30,951 INFO [BAM::DefaultBuildEventNotifier::action] [DefaultEmailBuildResultsService] Sent a build results email for build "PACKGER-TRUNK" Note that Maven builds work fine. Also note that I am intentionally passing just the 'clean' target to Ant... this was in an attempt to simplify the situation as much as possible. Please request any additional information and I'll send it immediately.

    Atlassian JIRA | 10 years ago | Chris Beams
    java.io.IOException: CreateProcess: C:\opt\ant\apache-ant-1.6.5\bin\ant.bat -f build.xml clean error=5
  3. 0

    Problem in creating win installer in i

    Stack Overflow | 7 years ago | Jagadesh
    java.io.IOException: Cannot run program "makensis" (in directory "C:\Program Files\NetBeans 6.5.1\iReport-3.7.2-src"): CreateProcess error=2, The system cannot find the file specified
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: Can't get selenium server to start the browser

    Google Groups | 7 years ago | daScientist
    java.io.IOException: Cannot run program "/usr/lib/firefox/firefox-bin": java.io.IOException: error=12, Cannot allocate memory
  6. 0

    [BAM-608] too many files open error - Atlassian JIRA

    atlassian.com | 7 months ago
    java.io.IOException: java.io.IOException: Too many open files

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      CreateProcess: C:\opt\ant\apache-ant-1.6.5\bin\ant.bat -f build.xml clean error=5

      at java.lang.ProcessImpl.create()
    2. Java RT
      Method.invoke
      1. java.lang.ProcessImpl.create(Native Method)
      2. java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
      3. java.lang.ProcessImpl.start(ProcessImpl.java:30)
      4. java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
      5. java.lang.Runtime.exec(Runtime.java:591)
      6. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      7. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      8. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      9. java.lang.reflect.Method.invoke(Method.java:585)
      9 frames
    3. Ant
      Execute.execute
      1. org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:834)
      2. org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
      3. org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
      3 frames
    4. com.atlassian.bamboo
      ExecuteBuildTask.call
      1. com.atlassian.bamboo.command.Command.executeCommand(Command.java:53)
      2. com.atlassian.bamboo.builder.AbstractBuilder.build(AbstractBuilder.java:191)
      3. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:51)
      3 frames
    5. Backport of JSR 166
      ThreadHelpers$1.run
      1. edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
      2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
      3. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
      4. edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
      4 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame