[kaffe] jBoss & Kaffe

Dalibor Topic robilad at yahoo.com
Wed May 14 00:51:01 PDT 2003


--- Dalibor Topic <robilad at yahoo.com> wrote:
> Hi Ronald,
> 
> --- Ronald Aigner <ra3 at os.inf.tu-dresden.de> wrote:
> > On Tuesday 13 May 2003 18:54, Ronald Aigner wrote:
> > > And jBoss starts, I didn't try any of the applications yet. This will be
> my
> > > next step...
> > I gues I was a little bit too fast with this: I didn't find and "ERROR"
> > string 
> > in the debug log, and thus assumed no error occured. 
> > If I run kaffe with jBoss without "-vmdebug ..." I get:
> > java.lang.NullPointerException
> >         at java.lang.Class.getProtectionDomain(Class.java:305)
> >         at org.jboss.Main.boot(Main.java:97)
> >         at org.jboss.Main$1.run(Main.java:381)
> >         at java.lang.Thread.run(Thread.java:334)
> 
> I think that's due to Class.getClassLoader() returning null for classes
> loaded
> by the bootstrap class loader. Try it with :

argh, I wasn't finished with the code ...
in libraries/javalib/java/lang/Class.java:
 
 public ClassLoader getClassLoader() {
         ClassLoader loader = getClassLoader0();
 
         if (loader == null) {
                loader = ClassLoader.getSystemClassLoader();
         } 

         return loader;
 }

cheers,
dalibor topic

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com




More information about the kaffe mailing list