This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ubuntu Dapper Build


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]