Bug#300388: libxml-commons-resolver1.1-java: FTBFS: NullPointerException

Steve Langasek Steve Langasek <vorlon@debian.org>, 300388@bugs.debian.org
Sat Mar 19 15:54:02 2005


--wzJLGUyc3ArbnUjN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Mar 19, 2005 at 03:34:01PM +0100, Michael Koch wrote:
> On Sat, Mar 19, 2005 at 01:47:59PM +0100, Roland Stigge wrote:
> > building the package libxml-commons-resolver1.1-java in a clean build e=
nvironment
> > (with pbuilder) on i386 results in:

> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > [...]
> > 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/shar=
e/java/jaxp-1.2.jar:  -Dant.home=3D/usr/share/ant1.6 org.apache.tools.ant.M=
ain -Dcompile.debug=3Dtrue -Dcompile.optimize=3Dtrue  -Dbuild.compiler=3Dji=
kes -buildfile resolver.xml  jar
> > Buildfile: resolver.xml

> > init:
> >      [echo] Building xml-commons-resolver (version: 1.1) Buildfile: $Re=
vision: 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-ja=
va-1.1/build
> >      [copy] Copying 1 file to /tmp/buildd/libxml-commons-resolver1.1-ja=
va-1.1/src/org/apache/xml/resolver

> > compile:
> >      [echo] Compiling...
> >     [javac] Compiling 29 source files to /tmp/buildd/libxml-commons-res=
olver1.1-java-1.1/build/classes
> >=20
> >     [javac] Issued 5 semantic warnings compiling "/tmp/buildd/libxml-co=
mmons-resolver1.1-java-1.1/src/org/apache/xml/resolver/readers/OASISXMLCata=
logReader.java":
> >=20
> >     [javac]    388.         entryType =3D catalog.DOCTYPE;
> >     [javac]                                     ^-----^
> >     [javac] *** Semantic Warning: Accessing the class field "DOCTYPE" v=
ia 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" vi=
a 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-j=
ava-1.1/build/classes/org/apache/xml/resolver/etc
> >       [jar] Building jar: /tmp/buildd/libxml-commons-resolver1.1-java-1=
=2E1/build/resolver.jar
> > java.lang.NullPointerException
> >    at java.text.DecimalFormatSymbols.setCurrency (DecimalFormatSymbols.=
java:397)
> >    at java.text.DecimalFormatSymbols.DecimalFormatSymbols (DecimalForma=
tSymbols.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.j=
ava: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.

It is supposed to have been fixed in the most recent NMU of sablevm, which
is available in both unstable and testing.  Roland, what version of the
sablevm package was used in this build?

--=20
Steve Langasek
postmodern programmer

--wzJLGUyc3ArbnUjN
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCPKizKN6ufymYLloRAnemAKCLrCK1d50Shk2LeZB+RkE1/BJG2gCfdCvs
xPZJTIaMr08lartSNlJ7EgM=
=mhAY
-----END PGP SIGNATURE-----

--wzJLGUyc3ArbnUjN--