ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Byron K. Appelt" <bapp...@sensorlogic.com>
Subject RE: Problem with forked java process
Date Mon, 05 Jan 2004 22:33:12 GMT
Is there any workaround for this? I also seem to get it from a spawned class that calls System.exit()
and it really is a problem
because the JVM does not exit.

Byron K. Appelt
SensorLogic, Inc.
http://www.sensorlogic.com
Telemetry made easy.


> -----Original Message-----
> From: Peter Reilly [mailto:peter.reilly@corvil.com] 
> Sent: Monday, January 05, 2004 10:48 AM
> To: Ant Users List
> Subject: Re: Problem with forked java process
> 
> 
> 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(DelegatingMeth
> odAccessorImpl.java:25)
> >     [java]     at java.lang.reflect.Method.invoke(Method.java:324)
> >     [java]     at 
> org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownH
> ook(ProcessDestroyer.java:153)
> >     [java]     at 
> org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessD
> estroyer.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
> 
> 


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


Mime
View raw message