ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: Problem with forked java process
Date Mon, 05 Jan 2004 16:47:41 GMT
This is due to bug 24181
http://issues.apache.org/bugzilla/show_bug.cgi?id=24181
Peter

Byron K. Appelt wrote:

>I am trying to run a few java processes in forked JVM's. The following is where I try
to execute the process:
> 
> 
><echo message="Starting testbed node1" />
><java fork="true" classpath="${sl.classpath}" 
>jvmargs="-Dsl.typename=testbed -Dsl.instancename=node1 -Dsl.cluster.directory=/sensorlogic/slbehavior/clusters"

>classname="com.sensorlogic.behavior.tools.LaunchContainer">
><classpath refid="sl.classpath"/>
></java>
>
> 
>
>It starts to execute this process, beause I see some output from it, but it hangs and
when I press control-C, I get the following
>stack trace:
>
>
>     [java] java.lang.reflect.InvocationTargetException
>     [java]     at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
>     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [java]     at java.lang.reflect.Method.invoke(Method.java:324)
>     [java]     at org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownHook(ProcessDestroyer.java:153)
>     [java]     at org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessDestroyer.java:223)
>     [java]     at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:526)
>     [java]     at org.apache.tools.ant.taskdefs.Java.fork(Java.java:740)
>     [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:199)
>
>     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:115)
>     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
>     [java]     at org.apache.tools.ant.Task.perform(Task.java:401)
>     [java]     at org.apache.tools.ant.Target.execute(Target.java:338)
>     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:365)
>     [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
>
>     [java]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:420)
>     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
>     [java]     at org.apache.tools.ant.Task.perform(Task.java:401)
>     [java]     at org.apache.tools.ant.Target.execute(Target.java:338)
>     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:365)
>     [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
>
>     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
>     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:669)
>     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:220)
>     [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
>     [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
>     [java] Caused by: java.lang.IllegalStateException: Shutdown in progress
>     [java]     at java.lang.Shutdown.remove(Shutdown.java:102)
>     [java]     at java.lang.Runtime.removeShutdownHook(Runtime.java:218)
>     [java]     ... 25 more
>     [java] Java Result: 1
>
> 
>
>Any input as to how I might troubleshoot this would be greatly appreciated. I can find
now javadocs on java.lang.Shutdown.  I am
>running ant 1.6.
>
> 
>Byron K. Appelt
>SensorLogic, Inc.
>972-934-7375 x2112
>http://www.sensorlogic.com <http://www.sensorlogic.com/> 
>Telemetry made easy.
> 
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message