Bug#239452: ant: fails to compile previously working package

Peter Eisentraut Peter Eisentraut <peter_e@gmx.net>, 239452@bugs.debian.org
Tue Mar 23 16:30:01 2004


Package: ant
Version: 1.6.1-1
Severity: normal

I have installed

sablevm 1.1.0-5
classpath 0.07-2
jikes 1.18-8

and no other Java VMs, libraries, or compilers.

I am trying to build the PostgreSQL JDBC driver
(http://gborg.postgresql.org/project/pgjdbc/projdisplay.php, today's
checkout) with this setup.  With the previous ant version in Debian,
1.5.4-3, this worked.  With 1.6.1-1, I get

$ ant -Dbuild.compiler=jikes
[...]
compile:
    [javac] Compiling 80 source files to /home/peter/jdbc/pgjdbc/build
    [javac] Could not remove shutdown hook

BUILD FAILED
java.lang.NullPointerException
   at java.lang.Thread.isAlive (Thread.java:579)
   at java.lang.Runtime.addShutdownHook (Runtime.java:351)
   at java.lang.reflect.Method.invokeNative (Method.java)
   at java.lang.reflect.Method.invoke (Method.java:552)
   at org.apache.tools.ant.taskdefs.ProcessDestroyer.addShutdownHook (ProcessDestroyer.java:98)
   at org.apache.tools.ant.taskdefs.ProcessDestroyer.add (ProcessDestroyer.java:166)
   at org.apache.tools.ant.taskdefs.Execute.execute (Execute.java:476)
   at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile (DefaultCompilerAdapter.java:449)
   at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile (DefaultCompilerAdapter.java:371)
   at org.apache.tools.ant.taskdefs.compilers.Jikes.execute (Jikes.java:202)
   at org.apache.tools.ant.taskdefs.Javac.compile (Javac.java:942)
   at org.apache.tools.ant.taskdefs.Javac.execute (Javac.java:764)
   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.Target.execute (Target.java:301)
   at org.apache.tools.ant.Target.performTasks (Target.java:328)
   at org.apache.tools.ant.Project.executeTarget (Project.java:1215)
   at org.apache.tools.ant.taskdefs.Ant.execute (Ant.java:383)
   at org.apache.tools.ant.taskdefs.CallTarget.execute (CallTarget.java:107)
   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.Target.execute (Target.java:301)
   at org.apache.tools.ant.Target.performTasks (Target.java:328)
   at org.apache.tools.ant.Project.executeTarget (Project.java:1215)
   at org.apache.tools.ant.Project.executeTargets (Project.java:1063)
   at org.apache.tools.ant.Main.runBuild (Main.java:632)
   at org.apache.tools.ant.Main.startAnt (Main.java:183)
   at org.apache.tools.ant.launch.Launcher.run (Launcher.java:197)
   at org.apache.tools.ant.launch.Launcher.main (Launcher.java:56)
   at java.lang.VirtualMachine.invokeMain (VirtualMachine.java)
   at java.lang.VirtualMachine.main (VirtualMachine.java:88)

Total time: 5 seconds
java.lang.NullPointerException
   at java.lang.Thread.isAlive (Thread.java:579)
   at java.lang.Runtime.addShutdownHook (Runtime.java:351)
   at java.lang.reflect.Method.invokeNative (Method.java)
   at java.lang.reflect.Method.invoke (Method.java:552)
   at org.apache.tools.ant.taskdefs.ProcessDestroyer.addShutdownHook (ProcessDestroyer.java:98)
   at org.apache.tools.ant.taskdefs.ProcessDestroyer.add (ProcessDestroyer.java:166)
   at org.apache.tools.ant.taskdefs.Execute.execute (Execute.java:476)
   at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile (DefaultCompilerAdapter.java:449)
   at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile (DefaultCompilerAdapter.java:371)
   at org.apache.tools.ant.taskdefs.compilers.Jikes.execute (Jikes.java:202)
   at org.apache.tools.ant.taskdefs.Javac.compile (Javac.java:942)
   at org.apache.tools.ant.taskdefs.Javac.execute (Javac.java:764)
   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.Target.execute (Target.java:301)
   at org.apache.tools.ant.Target.performTasks (Target.java:328)
   at org.apache.tools.ant.Project.executeTarget (Project.java:1215)
   at org.apache.tools.ant.taskdefs.Ant.execute (Ant.java:383)
   at org.apache.tools.ant.taskdefs.CallTarget.execute (CallTarget.java:107)
   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.Target.execute (Target.java:301)
   at org.apache.tools.ant.Target.performTasks (Target.java:328)
   at org.apache.tools.ant.Project.executeTarget (Project.java:1215)
   at org.apache.tools.ant.Project.executeTargets (Project.java:1063)
   at org.apache.tools.ant.Main.runBuild (Main.java:632)
   at org.apache.tools.ant.Main.startAnt (Main.java:183)
   at org.apache.tools.ant.launch.Launcher.run (Launcher.java:197)
   at org.apache.tools.ant.launch.Launcher.main (Launcher.java:56)
   at java.lang.VirtualMachine.invokeMain (VirtualMachine.java)
   at java.lang.VirtualMachine.main (VirtualMachine.java:88)


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.24-1-686
Locale: LANG=C, LC_CTYPE=C

Versions of packages ant depends on:
ii  gij-3.3 [java-virtual-machine 1:3.3.3-1  The GNU Java bytecode interpreter
ii  libant1.6-java                1.6.1-1    Java based build tool like make
ii  libxerces2-java               2.6.0-1    Validating XML parser for Java
ii  sablevm [java-virtual-machine 1.1.0-5    Free implementation of Java Virtua

-- no debconf information