Quantcast

Process Fork Failed

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Process Fork Failed

Sean Tiley
Hi there,

I have successfully been using ant(1.6.5) to run a number of test suites
for months. I use the JAVA_HOME is set to the IBM JDK and ANT_HOME is
set,

 

All of a sudden I try and I see the following error and I have no idea
what has happened

 

C:\build\build.xml:562: Process fork failed.

 

The target I am trying to run looks like (it has not changed since I
created it).

 

<!-- This target runs the EJB JUNIT tests -->

<target name="test-ejb" description="Run the Junit test cases">

<echo>Running the EJB test suite</echo>

            <!-- run the tests -->

            <mkdir dir="logs"/>

            <junit printsummary="withOutAndErr" fork="true"
haltonfailure="false" failureproperty="ejb.tests.failed"
showoutput="true">

                        <classpath>

                                    <path refid="test-path" />

                        </classpath>

                        <jvmarg value="-Xmx256M" />

                        <formatter type="xml" />

                        <test name="${ejb.test.class}"
outfile="${log.dir}/${ejb-test-results.file}" />

            </junit>

</target>

 

When I turn on the verbose flag in ant, I see the following

 

 

BUILD FAILED

C:\sean\afsc_source_head\build\build.xml:587: Process fork failed.

        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked(J
UnitTask.java:882)

        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask
.java:685)

        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JU
nitTask.java:1434)

        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask
.java:632)

        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

        at org.apache.tools.ant.Task.perform(Task.java:364)

        at org.apache.tools.ant.Target.execute(Target.java:341)

        at org.apache.tools.ant.Target.performTasks(Target.java:369)

        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:40)

        at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)

        at org.apache.tools.ant.Main.runBuild(Main.java:668)

        at org.apache.tools.ant.Main.startAnt(Main.java:187)

        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)

        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Caused by: java.io.IOException: CreateProcess: "C:\Program
Files\IBM\WebSphere\AppServer\java\jre\bin\java.exe"........

 

 

Any ideas as to what may be happening would be greatly appreciated.

 

 

Thanks

Sean

 

 

 

 

 

 

 

 

 

 

 

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Process Fork Failed

Sean Tiley
After looking more closely at the output, I noticed the command ant was
trying to execute seemed to be truncated after a certain number of
characters

(notice the last commons-email-1.0.ja    - missing a character and there
should have been additional jar files after that as well)

 

So I removed some un-necessary jars from the test-path and it is all
working again.

 

io.IOException: CreateProcess: C:\ibm.jdk.1.4\jre\bin\java.exe -Xmx256M
-classpath C:\build\lib\Libraries\Tidy.jar;C:\sean\

source_head\build\lib\Libraries\activation.jar;C:\build\lib\Libraries\an
tlr-2.7.6rc1.jar;C:\build\lib

aries\asm-attrs.jar;C:\build\lib\Libraries\asm.jar;C:\build\lib\Librarie
s\c3p0-0.9.0.jar;C:\sean\afsc

ce_head\build\lib\Libraries\catalina-ant.jar;C:\build\lib\Libraries\cgli
b-2.1.3.jar;C:\build\lib\Libr

\commons-beanutils-1.7.0.jar;C:\build\lib\Libraries\commons-codec.jar;C:
\build\lib\Libraries\commons-

ctions-3.2.jar;C:\build\lib\Libraries\commons-configuration-1.2.jar;C:\b
uild\lib\Libraries\commons-db

2.1.jar;C:\build\lib\Libraries\commons-digester.jar;C:\build\lib\Librari
es\commons-email-1.0.ja

   at java.lang.Win32Process.create(Native Method)

   at java.lang.Win32Process.<init>(Win32Process.java:98)

   at java.lang.Runtime.execInternal(Native Method)

   at java.lang.Runtime.exec(Runtime.java:602)

 

 

Sean

 

 

________________________________________

From: Sean Tiley

Sent: Tuesday, May 15, 2007 9:36 PM

To: 'Ant Users List'

Subject: Process Fork Failed

 

Hi there,

I have successfully been using ant(1.6.5) to run a number of test suites
for months. I use the JAVA_HOME is set to the IBM JDK and ANT_HOME is
set,

 

All of a sudden I try and I see the following error and I have no idea
what has happened

 

C:\build\build.xml:562: Process fork failed.

 

The target I am trying to run looks like (it has not changed since I
created it).

 

<!-- This target runs the EJB JUNIT tests -->

<target name="test-ejb" description="Run the Junit test cases">

        <echo>Running the EJB test suite</echo>

            <!-- run the tests -->

            <mkdir dir="logs"/>

            <junit printsummary="withOutAndErr" fork="true"
haltonfailure="false" failureproperty="ejb.tests.failed"
showoutput="true">

                        <classpath>

                                    <path refid="test-path" />

                        </classpath>

                        <jvmarg value="-Xmx256M" />

                        <formatter type="xml" />

                        <test name="${ejb.test.class}"
outfile="${log.dir}/${ejb-test-results.file}" />

            </junit>

</target>

 

When I turn on the verbose flag in ant, I see the following

 

 

BUILD FAILED

C:\sean\afsc_source_head\build\build.xml:587: Process fork failed.

        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked(J
UnitTask.java:882)

        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask
.java:685)

        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JU
nitTask.java:1434)

        at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask
.java:632)

        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

        at org.apache.tools.ant.Task.perform(Task.java:364)

        at org.apache.tools.ant.Target.execute(Target.java:341)

        at org.apache.tools.ant.Target.performTasks(Target.java:369)

        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:40)

        at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)

        at org.apache.tools.ant.Main.runBuild(Main.java:668)

        at org.apache.tools.ant.Main.startAnt(Main.java:187)

        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)

        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Caused by: java.io.IOException: CreateProcess: "C:\Program
Files\IBM\WebSphere\AppServer\java\jre\bin\java.exe"........

 

 

Any ideas as to what may be happening would be greatly appreciated.

 

 

Thanks

Sean

Loading...