java.io.IOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • junit & fork problem
    via emma by peartdavid
    ,
  • Problem in creating win installer in i
    via Stack Overflow by Jagadesh
    ,
  • cant get SRC to run
    via by Christian Kreutzer,
  • 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.
    via by Chris Beams,
  • Not sure how close it relates, but it would seem we get a lot of {quote} java.io.IOException: Too many open files {quote} which consequently cause the build to fail 10 times then disable itself. Happened in version 0.7 as well, not in 0.3 and 0.5. Only happens on our linux box, not the two windows machines (different error has occurred on windows, logged separately) So the latest error in the logs would be {quote} 2006-12-27 14:16:22,908 INFO [BAM::BuildChangeDetector] [DefaultBuildChangeDetector] Detected that build "XXX" needs building. 2006-12-27 14:16:22,926 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Starting to build 'XXX' <br /> ... running command line: [ant loc] -f build.xml continuous-build <br /> ... in : [location] <br /> ... using java: [location] <br /> ... using environment variables: 2006-12-27 14:16:22,932 WARN [BAM::BuildPipeline::BuildExecutor] [Command] Failed to execute command java.io.IOException: java.io.IOException: Too many open files at java.lang.UNIXProcess.<init>(UNIXProcess.java:143) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:566) at sun.reflect.GeneratedMethodAccessor486.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) at com.atlassian.bamboo.command.Command.executeCommand(Command.java:53) at com.atlassian.bamboo.builder.AbstractBuilder.build(AbstractBuilder.java:191) at com.atlassian.bamboo.builder.DefaultBuildExecutor.build(DefaultBuildExecutor.java:187) at com.atlassian.bamboo.builder.DefaultBuildExecutor.doTask(DefaultBuildExecutor.java:103) at com.atlassian.bamboo.container.BambooTask.run(BambooTask.java:33) at java.lang.Thread.run(Thread.java:534) 2006-12-27 14:16:22,933 INFO [BAM::BuildPipeline::BuildExecutor] [Command] err>java.io.IOException: Too many open files 2006-12-27 14:16:22,933 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Completed building build "XXX" return code = -1 {quote} clean build with no checked out files throws same error after checking out all files: {quote} [all other files checked out] 2006-12-27 14:13:53,656 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] AU build.xml 2006-12-27 14:13:53,668 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] AU continuous-build.properties 2006-12-27 14:13:53,703 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] U 2006-12-27 14:13:53,706 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] At revision 13524 2006-12-27 14:13:55,129 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Starting to build 'XXX' <br /> ... running command line: [ant loc] -f build.xml continuous-build <br /> ... in : [checkout dir] <br /> ... using java: [java loc] <br /> ... using environment variables: 2006-12-27 14:13:55,134 WARN [BAM::BuildPipeline::BuildExecutor] [Command] Failed to execute command java.io.IOException: java.io.IOException: Too many open files at java.lang.UNIXProcess.<init>(UNIXProcess.java:143) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:566) at sun.reflect.GeneratedMethodAccessor486.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) at com.atlassian.bamboo.command.Command.executeCommand(Command.java:53) at com.atlassian.bamboo.builder.AbstractBuilder.build(AbstractBuilder.java:191) at com.atlassian.bamboo.builder.DefaultBuildExecutor.build(DefaultBuildExecutor.java:187) at com.atlassian.bamboo.builder.DefaultBuildExecutor.doTask(DefaultBuildExecutor.java:103) at com.atlassian.bamboo.container.BambooTask.run(BambooTask.java:33) at java.lang.Thread.run(Thread.java:534) 2006-12-27 14:13:55,135 INFO [BAM::BuildPipeline::BuildExecutor] [Command] err>java.io.IOException: Too many open files 2006-12-27 14:13:55,135 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Completed building build "XXX" return code = -1 {quote} Admittedly the checkout folder is /apps/WebSphere/Portal/bamboo-data/xml-data/build-dir/XXX which it may be having issues with, so I'll try a shorter address and see if that helps, but file length isn't the error here...
    via by Riaz Khanmohamed,
  • Error running apt compiler
    via by user11988303,
    • java.io.IOException: CreateProcess: java "-Demma.coverage.out.file=C:\WSAD\_WORKSPACE\FootNotes\J2EESRC\FMFootNotesWeb\Code Coverage\coverage\coverage.emma" -Demma.coverage.out.merge=true -classpath "C:\Program Files\IBM\WebSphere Studio\eclipse\plugins\org.junit\_3.7.0\junit.jar;C:\Program Files\IBM\WebSphere Studio\eclipse\plugins\org.apache.ant\_1.4.1\ant.jar;C:\Program Files\IBM\WebSphere Studio\eclipse\plugins\org.apache.ant\_1.4.1\jakarta-ant-1.4.1-optional.jar;C:\WSAD\_WORKSPACE\FootNotes\J2EESRC\FMFootNotesWeb\Web Content\WEB-INF\classes;C:\WSAD\_WORKSPACE\FootNotes\J2EESRC\FMFootNotesWeb\Test Source;C:\WSAD\_WORKSPACE\FootNotes\J2EESRC\FMFootNotesWeb\Java Source;C:\WSAD\_WORKSPACE\FootNotes\J2EESRC\FMFootNotesWeb\Code Coverage;C:\WSAD\_WORKSPACE\FootNotes\J2EESRC\FMFootNotesWeb\Web Content\WEB-INF\classes\net\atpco\common\struts\menu\DisplayDynamicMenuTag.class;C:\WSAD\_WORKSPACE\FootNotes\J2EESRC\FMFootNotesWeb\Web Content\WEB-INF\classes\net\atpco\common\struts\menu\MenuUtility.class;C:\WSAD\_WORKSPACE\FootNot es\J2EESRC\FMFootNo at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.<init>(Win32Process.java:87) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:582) at java.lang.reflect.Method.invoke(Native Method) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:564) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:384) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked(JUnitTask.java:499) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:406) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:380) at org.apache.tools.ant.Task.perform(Task.java:217) at org.apache.tools.ant.Target.execute(Target.java:184) at org.apache.tools.ant.Target.performTasks(Target.java:202) at org.apache.tools.ant.Project.executeTarget(Project.java:601) at org.apache.tools.ant.Project.executeTargets(Project.java:560) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:262) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.ant.core.AntRunner.run(AntRunner.java:234) at org.eclipse.ui.externaltools.internal.core.AntFileRunner.execute(AntFileRunner.java:56) at org.eclipse.ui.externaltools.internal.core.DefaultRunnerContext.executeRunner(DefaultRunnerContext.java:428) at org.eclipse.ui.externaltools.internal.core.DefaultRunnerContext.run(DefaultRunnerContext.java:479) at org.eclipse.ui.externaltools.internal.ui.ExternalToolsAction$4.run(ExternalToolsAction.java:202) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,