--- Dominique Devienne <[EMAIL PROTECTED]> wrote:
> In general, people will help right away
> if they know the answer
> already, or can find it out easily. If
> not, which should someone else
> invest time in helping you for free?
> Sometimes some question simply
> don't interest the community too... --DD
Very true. Thanks for the reminder.
>
> "Request a fix" won't get you anywhere. There are a
> few things you can explore on your own:
> 1) Where does it hang? Google how to trigger a
> thread dump of your JVM
> and post it. If there's really a hang, that may give
> so clues.
That's an excellent suggestion. I went ahead and
triggered a JVM thread dump on the hanging Ant
process. I have copied and pasted the thread dump at
the end of this e-mail message.
> 2) Provide relevant information: version of CVS
> client? version of CVS
> server? JVM? Ant version? OS? etc...
* CVS client version:
Concurrent Versions System (CVS) 1.11.22 (client)
* JVM version:
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition
(build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed
mode, sharing)
* Ant version:
Apache Ant version 1.7.0 compiled on December 13 2006
* OS:
Microsoft Windows XP Professional
> 3) Try the same command line (a) at the command
> line,
I've already tried this, as I've already indicated in
my previous e-mail. It works perfectly from the
command line.
> then (b) in Ant,
> in <exec>, to see if the <exec> version, which uses
> Ant, somehow works when <cvstagdiff> doesn't.
Thanks for the suggestion. I tried this. It works from
the <exec>.
> 4) Show that you've done some research on your own.
> Google is your friend.
No need to remind a programmer. Google is the first
place that I consult even before posting to the
mailing list. It is much easier to search google than
it is to compose a detailed message explaining a
problem, then posting it to the mailing list.
Thanks for the suggestions,
-Saladin
P.S. I ran the my ant script in verbose mode, and then
I triggered a thread dump. Here is the output:
Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: ..\test\ant\build.xml
Detected Java version: 1.5 in: C:\jdk1.5.0_11_w32\jre
Detected OS: Windows 2003
parsing buildfile
C:\projects\myProject\test\ant\build.xml with URI =
file:/C:/projec
ts/myProject/test/ant/build.xml
Project base dir set to: C:\projects\myProject
[antlib:org.apache.tools.ant] Could not load
definitions from resource org/apach
e/tools/ant/antlib.xml. It could not be found.
[property] Loading Environment env.
Build sequence for target(s) `cvs' is [cvs]
Complete build sequence is [cvs, init, test,
test-reports, javadoc, email, ]
cvs:
[cvstagdiff] Executing 'cvs' with arguments:
[cvstagdiff] 'rdiff'
[cvstagdiff] '-s'
[cvstagdiff] '-D'
[cvstagdiff] '09/15/2007'
[cvstagdiff] '-D'
[cvstagdiff] '09/24/2007'
[cvstagdiff] 'myProject'
[cvstagdiff]
[cvstagdiff] The ' characters around the executable
and arguments are
[cvstagdiff] not part of the command.
Full thread dump Java HotSpot(TM) Client VM
(1.5.0_11-b03 mixed mode, sharing):
"Thread-3" daemon prio=6 tid=0x042e9028 nid=0x29c
runnable [0x043ef000..0x043ef9
ec]
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:92)
at java.lang.Thread.run(Thread.java:595)
"Thread-2" daemon prio=6 tid=0x04283ac0 nid=0x55c
runnable [0x0436f000..0x0436fa
6c]
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 <0x23dd58c0> (a
java.io.BufferedInputStream)
at
java.io.FilterInputStream.read(FilterInputStream.java:90)
at
org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java:92)
at java.lang.Thread.run(Thread.java:595)
"Low Memory Detector" daemon prio=6 tid=0x01d41a90
nid=0x474 runnable [0x0000000
0..0x00000000]
"CompilerThread0" daemon prio=10 tid=0x01d407a0
nid=0x123c waiting on condition
[0x00000000..0x03fefa4c]
"Signal Dispatcher" daemon prio=10 tid=0x01d3fb10
nid=0x10cc waiting on conditio
n [0x00000000..0x00000000]
"Finalizer" daemon prio=8 tid=0x01d12200 nid=0x10d8 in
Object.wait() [0x03eef000
..0x03eefa6c]
at java.lang.Object.wait(Native Method)
- waiting on <0x2428c308> (a
java.lang.ref.ReferenceQueue$Lock)
at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked <0x2428c308> (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=0x0003fb30
nid=0x7f0 in Object.wait() [0x
03e6f000..0x03e6faec]
at java.lang.Object.wait(Native Method)
- waiting on <0x2428c388> (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 <0x2428c388> (a
java.lang.ref.Reference$Lock)
"main" prio=6 tid=0x00036698 nid=0x11d0 runnable
[0x0015f000..0x0015fc3c]
at java.lang.ProcessImpl.waitFor(Native
Method)
at
org.apache.tools.ant.taskdefs.Execute.waitFor(Execute.java:549)
at
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:480)
at
org.apache.tools.ant.taskdefs.AbstractCvsTask.runCommand(AbstractCvsT
ask.java:338)
at
org.apache.tools.ant.taskdefs.AbstractCvsTask.execute(AbstractCvsTask
.java:395)
at
org.apache.tools.ant.taskdefs.cvslib.CvsTagDiff.execute(CvsTagDiff.ja
va:232)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
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:585)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:105)
at
org.apache.tools.ant.Task.perform(Task.java:348)
at
org.apache.tools.ant.Target.execute(Target.java:357)
at
org.apache.tools.ant.Target.performTasks(Target.java:385)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at
org.apache.tools.ant.Main.runBuild(Main.java:698)
at
org.apache.tools.ant.Main.startAnt(Main.java:199)
at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
"VM Thread" prio=10 tid=0x01d10b90 nid=0xc74 runnable
"VM Periodic Task Thread" prio=10 tid=0x01d3fa68
nid=0x10f0 waiting on condition
**********************************************************
* Saladin Sharif
* e-mail: [EMAIL PROTECTED]
* Visit homepage @ http://gaia.ecs.csus.edu/~sharifs
**********************************************************
____________________________________________________________________________________
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]