Null Pointer Exception in LibgcjInternalFinalizerThread

Rudy Nedved ern@spinnakernet.com
Thu Mar 4 17:19:00 GMT 2004


Hi.

I am getting a null pointer exception in libgcj's finalizer thread using the
3.3.1 gcc and some additional deltas pulled in from 3.3.3.

The stack trace pops up after a while in a large java system and shows
            java.util.Vector.addAll(Collection c)
being called by the finalizer thread with probably a null pointer
for the collection....

I found a thread discussing something similiar but related to reference
objects:
     http://gcc.gnu.org/ml/java/2003-08/msg00247.html

My *real* question is why can't you have finalizations causing exceptions? 
Shouldn't this be expected and ignored?

Any insight would be helpful...

My apology for lack of fluency in Java....

Thanks,
-Rudy

P.S. The stack trace is as follows:
------------------------------
Exception in thread "LibgcjInternalFinalizerThread" java.lang.NullPointerException
    at _ZN4java4util6Vector6addAllEPNS0_10CollectionE (/usr/lib/libgcj.so.4.0.0)
    at GC_invoke_finalizers (/usr/lib/libgcj.so.4.0.0)
    at _Z17_Jv_RunFinalizersv (/usr/lib/libgcj.so.4.0.0)
    at _ZN3gnu3gcj7runtime15FinalizerThread13runFinalizersEv 
(/usr/lib/libgcj.so.4.0.0)
    at _ZN3gnu3gcj7runtime15FinalizerThread3runEv (/usr/lib/libgcj.so.4.0.0)
    at _Z13_Jv_ThreadRunPN4java4lang6ThreadE (/usr/lib/libgcj.so.4.0.0)
    at GC_start_routine (/usr/lib/libgcj.so.4.0.0)
    at __clone (/lib/libc-2.2.4.so)



More information about the Java mailing list