This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Ubuntu Dapper Build
- From: Andrew Haley <aph-gcc at littlepinkcloud dot COM>
- To: Michael Koch <konqueror at gmx dot de>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 9 Jun 2007 14:20:02 +0100
- Subject: Re: Ubuntu Dapper Build
- References: <46691AD9.9010606@gatech.edu> <20070608090458.GJ16684@mail.konqueror.de> <18025.8508.231915.345033@zebedee.pink> <20070609113036.GR16684@mail.konqueror.de> <18026.42424.220.521295@zebedee.pink> <20070609131446.GS16684@mail.konqueror.de>
Michael Koch writes:
> On Sat, Jun 09, 2007 at 02:05:59PM +0100, Andrew Haley wrote:
> > Michael Koch writes:
> >
> > > Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.xalan.templates.ElemValueOf
> > > at java.lang.Class.initializeClass(natClass.cc:720)
> > > at java.lang.Class.forName(Class.h:751)
> > > at java.lang.Class.forName(natClass.cc:124)
> > > at org.apache.xalan.processor.XSLTSchema.build(XSLTSchema.java:381)
> >
> > XSLTElementDef xslValueOf = new XSLTElementDef(this,
> > Constants.S_XSLNAMESPACEURL, "value-of",
> > null /*alias */, null /* elements */,
> > new XSLTAttributeDef[]{ selectAttrRequired,
> > disableOutputEscapingAttr },
> > new ProcessorTemplateElem(),
> > ElemValueOf.class /* class object */, 20, true);
> >
> > > at org.apache.xalan.processor.XSLTSchema.<init>(XSLTSchema.java:70)
> > > at org.apache.xalan.processor.StylesheetHandler.<init>(StylesheetHandler.java:1287)
> > > at org.apache.xalan.processor.TransformerFactoryImpl.newTemplatesHandler(TransformerFactoryImpl.java:374)
> > > at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:865)
> > > at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:774)
> > > at jvmtiGen.main(jvmtiGen.java:144)
> > > Caused by: java.lang.NullPointerException
> > > at java.lang.Class.initializeClass(natClass.cc:714)
> > > ...9 more
> > >
> > > The class org.apache.xalan.templates.ElemValueOf definitely exists in
> > > the same jar as org.apache.xalan.processor.XSLTSchema. I dont what can
> > > cause this.
> > >
> > > Any help is appreciated.
> >
> > The NullPointerException that occurs here is triggered when
> > initializing org.apache.xalan.processor.XSLTSchema. That class tries
> > to load org.apache.xalan.templates.ElemValueOf, and fails while trying
> > to initialize it. So, I think the class
> > org.apache.xalan.templates.ElemValueOf was loaded, but we fail to
> > initialize it.
> >
> > What version of gcj are you trying to use?
>
> (sid)mkoch@oberon:~$ gcj --version
> gcj (GCC) 4.1.3 20070518 (prerelease) (Debian 4.1.2-8)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> (sid)mkoch@oberon:~$ java --version
> java version "1.5.0"
> gij (GNU libgcj) version 4.1.3 20070518 (prerelease) (Debian 4.1.2-8)
>
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> (sid)mkoch@oberon:~$
>
>
> This should be the same as in Fedora 7.
Yes, it should. Weird.
Suggest you run this in gdb to get a more detailed stack tare.
Andrew.