Bug#300388: libxml-commons-resolver1.1-java: FTBFS: NullPointerException
Michael Koch
Michael Koch <konqueror@gmx.de>, 300388@bugs.debian.org
Sat Mar 19 07:54:02 2005
On Sat, Mar 19, 2005 at 01:47:59PM +0100, Roland Stigge wrote:
> Package: libxml-commons-resolver1.1-java
> Version: 1.1-4
> Severity: serious
>
> Hi,
>
> building the package libxml-commons-resolver1.1-java in a clean build environment
> (with pbuilder) on i386 results in:
>
> =========================================================================
> [...]
> if [ ! -d "." ]; then \
> mkdir -p "."; \
> fi
> if [ -z "" ]; then \
> if ! test -f debian/compat; then echo 4 > debian/compat; fi; \
> fi
> cd . && /usr/bin/java-sablevm -classpath /usr/share/ant1.6/lib/ant.jar:/usr/share/java/xerces.jar:/usr/share/ant1.6/lib/ant-launcher.jar:/usr/share/java/jaxp-1.2.jar: -Dant.home=/usr/share/ant1.6 org.apache.tools.ant.Main -Dcompile.debug=true -Dcompile.optimize=true -Dbuild.compiler=jikes -buildfile resolver.xml jar
> Buildfile: resolver.xml
>
> init:
> [echo] Building xml-commons-resolver (version: 1.1) Buildfile: $Revision: 1.11 $
> [mkdir] Created dir: /tmp/buildd/libxml-commons-resolver1.1-java-1.1/build/classes
> [mkdir] Created dir: /tmp/buildd/libxml-commons-resolver1.1-java-1.1/build/classes/org/apache/xml/resolver/etc
> [mkdir] Created dir: /tmp/buildd/libxml-commons-resolver1.1-java-1.1/build/docs
> [mkdir] Created dir: /tmp/buildd/libxml-commons-resolver1.1-java-1.1/build/apidocs/resolver
> [copy] Copying 1 file to /tmp/buildd/libxml-commons-resolver1.1-java-1.1/build
> [copy] Copying 1 file to /tmp/buildd/libxml-commons-resolver1.1-java-1.1/src/org/apache/xml/resolver
>
> compile:
> [echo] Compiling...
> [javac] Compiling 29 source files to /tmp/buildd/libxml-commons-resolver1.1-java-1.1/build/classes
>
> [javac] Issued 5 semantic warnings compiling "/tmp/buildd/libxml-commons-resolver1.1-java-1.1/src/org/apache/xml/resolver/readers/OASISXMLCatalogReader.java":
>
> [javac] 388. entryType = catalog.DOCTYPE;
> [javac] ^-----^
> [javac] *** Semantic Warning: Accessing the class field "DOCTYPE" via an instance is discouraged because the field accessed will be the one in the variable's declared type, not the instance's dynamic type.
>
>
> [...]
> [javac] *** Semantic Warning: Accessing the class field "SYSTEM" via an instance is discouraged because the field accessed will be the one in the variable's declared type, not the instance's dynamic type.
>
> jar:
> [echo] Jarring ./build/resolver.jar from ./build/classes
> [copy] Copying 3 files to /tmp/buildd/libxml-commons-resolver1.1-java-1.1/build/classes/org/apache/xml/resolver/etc
> [jar] Building jar: /tmp/buildd/libxml-commons-resolver1.1-java-1.1/build/resolver.jar
> java.lang.NullPointerException
> at java.text.DecimalFormatSymbols.setCurrency (DecimalFormatSymbols.java:397)
> at java.text.DecimalFormatSymbols.DecimalFormatSymbols (DecimalFormatSymbols.java:151)
> at java.text.NumberFormat.computeInstance (NumberFormat.java:327)
> at java.text.NumberFormat.getNumberInstance (NumberFormat.java:456)
> at java.text.NumberFormat.getInstance (NumberFormat.java:381)
> at java.text.MessageFormatElement.setLocale (MessageFormat.java:90)
> at java.text.MessageFormat.scanFormat (MessageFormat.java:314)
> at java.text.MessageFormat.applyPattern (MessageFormat.java:335)
> at java.text.MessageFormat.formatInternal (MessageFormat.java:465)
> at java.text.MessageFormat.format (MessageFormat.java:403)
> at java.text.MessageFormat.format (MessageFormat.java:518)
> at java.text.Format.format (Format.java:101)
> at org.apache.tools.ant.util.DateUtils.formatElapsedTime (DateUtils.java:132)
> at org.apache.tools.ant.DefaultLogger.formatTime (DefaultLogger.java:276)
> at org.apache.tools.ant.DefaultLogger.buildFinished (DefaultLogger.java:156)
> at org.apache.tools.ant.Project.fireBuildFinished (Project.java:1796)
> at org.apache.tools.ant.Main.runBuild (Main.java:693)
> at org.apache.tools.ant.Main.startAnt (Main.java:188)
> at org.apache.tools.ant.Main.start (Main.java:151)
> at org.apache.tools.ant.Main.main (Main.java:241)
> at java.lang.VirtualMachine.invokeMain (VirtualMachine.java)
> at java.lang.VirtualMachine.main (VirtualMachine.java:108)
> make: *** [debian/stamp-ant-build] Error 1
This is a well known problem in sablevm. We should consider switching to
another VM for building. kaffe has some problems too but they only get
triggered by a small part of the packages. This bug get triggered always
when using sablevm together with ant.
Michael
--
http://www.worldforge.org/