ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daffin, Miles \(IT\)" <Miles.Daf...@morganstanley.com>
Subject Blocking IO in StreamPumper causes ant based installer to hang.
Date Thu, 07 Feb 2008 20:32:30 GMT
Hi Folks,
 
I wrote an ant based installer for eclipse ide. After unzipping a
download to the user's local drive it installs a list of plugins using
exec to run a perl script that in turn runs a java program. The
installation of one plugin hangs 9 times out of 10. Does anyone have any
idea what is causing this? (I am tearing my hair out for a solution.)
 
Ant version: 1.6.5
Platform: Windows XP
Java version: Sun 1.5.0_12
 
Here is the thread dump when it hangs:
 
---
Execute:Java13CommandLauncher: Executing 'perl' with arguments:
'runit.pl'
'C:\dev/tools/sunjdk/1.6.0_02/bin/java'
'-classpath'
'C:\dev/tools/eclipseide/3.3qa/eclipse/plugins/org.eclipse.equinox.launc
her_1.0.1.R33x_v20070828.jar'
'org.eclipse.core.launcher.Main'
'-application'
'org.eclipse.update.core.standaloneUpdate'
'-command'
'install'
'-featureId'
'org.eclipse.emf'
'-version'
'2.3.1.v200709252135'
'-from'
'http://mymirrorsite.com/site'
 
The ' characters around the executable and arguments are
not part of the command.
Full thread dump Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode):
 
"Thread-3" daemon prio=6 tid=0x0339f2f8 nid=0x50c runnable
[0x0367f000..0x0367fbe8]
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(FileInputStream.java:177)
        at
org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java:90)
        at java.lang.Thread.run(Thread.java:595)
 
"Thread-2" daemon prio=6 tid=0x033ee4f8 nid=0x924 runnable
[0x0363f000..0x0363fc68]
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(FileInputStream.java:194)
        at
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at
java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
        at
java.io.BufferedInputStream.read(BufferedInputStream.java:313)
        - locked <0x104b43a8> (a java.io.BufferedInputStream)
        at java.io.FilterInputStream.read(FilterInputStream.java:90)
        at
org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java:90)
        at java.lang.Thread.run(Thread.java:595)
 
"Low Memory Detector" daemon prio=6 tid=0x00bb6e38 nid=0xfb0 runnable
[0x00000000..0x00000000]
 
"CompilerThread0" daemon prio=10 tid=0x00bb5ad8 nid=0xd9c waiting on
condition [0x00000000..0x02ecf8c8]
 
"Signal Dispatcher" daemon prio=10 tid=0x00bb4e90 nid=0x131c waiting on
condition [0x00000000..0x00000000]
 
"Finalizer" daemon prio=8 tid=0x00babd78 nid=0x1688 in Object.wait()
[0x02e4f000..0x02e4fc68]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x1279fb60> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
        - locked <0x1279fb60> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
        at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
 
"Reference Handler" daemon prio=10 tid=0x00baa908 nid=0xa08 in
Object.wait() [0x00aef000..0x00aefce8]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x1279fbe0> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:474)
        at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
        - locked <0x1279fbe0> (a java.lang.ref.Reference$Lock)
 
"main" prio=6 tid=0x00038260 nid=0x8c4 runnable [0x0007e000..0x0007fc3c]
        at java.lang.ProcessImpl.waitFor(Native Method)
        at
org.apache.tools.ant.taskdefs.Execute.waitFor(Execute.java:539)
        at
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:471)
        at
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:576)
        at
org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:617)
        at
org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452)
        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.taskdefs.Sequential.execute(Sequential.java:64)
        at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
        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.taskdefs.Sequential.execute(Sequential.java:64)
        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.taskdefs.MacroInstance.execute(MacroInstance.java:3
78)
        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.taskdefs.Sequential.execute(Sequential.java:64)
        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.taskdefs.MacroInstance.execute(MacroInstance.java:3
78)
        at
net.sf.antcontrib.logic.ForDelegate.doSequentialIteration(ForDelegate.ja
va:228)
        at
net.sf.antcontrib.logic.ForDelegate.doTheTasks(ForDelegate.java:253)
        at
net.sf.antcontrib.logic.ForDelegate.execute(ForDelegate.java:213)
        at net.sf.antcontrib.logic.For.execute(For.java:166)
        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.taskdefs.Sequential.execute(Sequential.java:64)
        at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
        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.taskdefs.Sequential.execute(Sequential.java:64)
        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.taskdefs.MacroInstance.execute(MacroInstance.java:3
78)
        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)
 
"VM Thread" prio=10 tid=0x00ba7e40 nid=0x14e0 runnable
 
"VM Periodic Task Thread" prio=10 tid=0x00bb8090 nid=0x10a0 waiting on
condition
---
 
Miles Daffin
Morgan Stanley | Technology
20 Cabot Square | Canary Wharf | Floor 06
London, E14 4QW
Phone: +44 20 7677-5119
Fax: +44 20 7056-4572
Miles.Daffin@morganstanley.com
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to
waive confidentiality or privilege. Use of this email is prohibited when received in error.

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message