Still problems with ThreadGroup

Daniel.Veillard at w3.org Daniel.Veillard at w3.org
Fri May 15 13:57:12 PDT 1998


  Hi,

I am still having problems with java/lang/ThreadGroup . Basically the
simple test below is failing:

-----------------------------------------------------------------
public class foo {
    static public void main(String args[]) {
        ThreadGroup threadgroup = new ThreadGroup("HTTP Threads");
    }
}
-----------------------------------------------------------------

  Here is a log:

---------
~/opera/LINUX-ELF -> export CLASSPATH=.:/u/veillard/opera/classes/classes.zip
~/opera/LINUX-ELF -> bin/kaffe foo
java.lang.NullPointerException
        at java/lang/Throwable.<init>(line unknown, pc 0x81b2bf3)
        at java/lang/Exception.<init>(line unknown, pc 0x81bab93)
        at java/lang/RuntimeException.<init>(line unknown, pc 0x81bab5b)
        at java/lang/NullPointerException.<init>(line unknown, pc 0x81bab23)
        at java/lang/ThreadGroup.<init>(line unknown, pc 0x81bb287)
        at java/lang/ThreadGroup.<init>(line unknown, pc 0x81b2b91)
        at foo.main(3)
~/opera/LINUX-ELF -> 
---------

  The classes.zip comes from the kaffe-0.9.2 release. Tim suggested that
I uses the klasses.zip coming from the distribution, however it still fails:

---------
~/opera/LINUX-ELF -> export CLASSPATH=.:/u/veillard/opera/classes/klasses.zip:\
/u/veillard/opera/classes/classes.zip
~/opera/LINUX-ELF -> bin/kaffe foo
java.lang.ArrayIndexOutOfBoundsException
        at java/lang/ThreadGroup.add(line unknown, pc 0x81b09e9)
        at java/lang/ThreadGroup.<init>(line unknown, pc 0x81ba33c)
        at java/lang/ThreadGroup.<init>(line unknown, pc 0x81b9579)
        at foo.main(3)
~/opera/LINUX-ELF -> 
---------

  With the JDK-1.1.5 :

---------
~/opera/LINUX-ELF -> export CLASSPATH=.:/u/veillard/opera/classes/klasses.zip:\
/u/veillard/jdk1.1.5-v3glibc/lib/classes.zip 
~/opera/LINUX-ELF -> bin/kaffe foo
java.lang.NoSuchMethodError: initializeSystemClass
~/opera/LINUX-ELF -> 
---------

  And with the guavac classes.zip, direct segfault ...
I don't have any other classes.zip to try to play with ... can someone share
one or explain where I can find one which works with the current version of
Kaffe ... What is the recommended classes.zip for the current version of
kaffe, any definite answer ?


Daniel

P.S. I'm using the kaffe version from the CVS base.





More information about the kaffe mailing list