Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 58635 invoked from network); 3 Mar 2004 12:32:00 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Mar 2004 12:32:00 -0000 Received: (qmail 28628 invoked by uid 500); 3 Mar 2004 12:31:49 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 28594 invoked by uid 500); 3 Mar 2004 12:31:48 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 28494 invoked from network); 3 Mar 2004 12:31:47 -0000 Received: from unknown (HELO corvil.com) (213.94.219.177) by daedalus.apache.org with SMTP; 3 Mar 2004 12:31:47 -0000 Received: from corvil.com (angel.local.corvil.com [172.18.1.171]) by corvil.com (8.12.9/8.12.5) with ESMTP id i23CVjjD070431 for ; Wed, 3 Mar 2004 12:31:46 GMT (envelope-from peter.reilly@corvil.com) Message-ID: <4045D067.8020007@corvil.com> Date: Wed, 03 Mar 2004 12:32:39 +0000 From: Peter Reilly User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Exception from ant ProcessDestroyer References: <019401c400d2$ccbe6b20$22e9992f@asiapac.nortel.com> In-Reply-To: <019401c400d2$ccbe6b20$22e9992f@asiapac.nortel.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is bug 24181 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24181 Peter Andrew Zahra wrote: >I am running a server and a test harness in parallel from ant. ant is dieing >after the build complete message when it attempts to kill off the process >the server is running in. I have added some code to the server to allow the >test harness to request it to shutdown, but this looks like a bug in ant to >me. > >Is there some way around this so I don't have to modify my server, or should >I submit a bug? > >In my build.xml file: > description="Test QueryHandler"> > > > > > classpath="${build.home}/classes" > classpathref="compile.classpath" > fork="true" > output="testqh.server.output" > error="testqh.server.error"> > > > > > > > > > > > > > > > > >At the end of the ant run: >BUILD SUCCESSFUL >Total time: 13 seconds >java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. >java:39) > at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:494) > at >org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownHook(Pro >cessDestroyer.java:116) > at >org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessDestroye >r.java:186) > at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495) > at org.apache.tools.ant.taskdefs.Java.fork(Java.java:702) > at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:161) > at org.apache.tools.ant.taskdefs.Java.execute(Java.java:77) > at >org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) > at org.apache.tools.ant.Task.perform(Task.java:364) > at >org.apache.tools.ant.taskdefs.Parallel$TaskRunnable.run(Parallel.java >:420) > at java.lang.Thread.run(Thread.java:566) >Caused by: java.lang.IllegalStateException: Shutdown in progress > at java.lang.Shutdown.remove(Shutdown.java:104) > at java.lang.Runtime.removeShutdownHook(Runtime.java:218) > ... 14 more > [java] Java Result: 143 > >--- >Andrew Zahra >Wollongong, NSW >Australia > > >--------------------------------------------------------------------- >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