This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Null Pointer Exception in LibgcjInternalFinalizerThread
- From: Rudy Nedved <ern at spinnakernet dot com>
- To: java at gcc dot gnu dot org
- Date: Thu, 04 Mar 2004 12:19:23 -0500
- Subject: Null Pointer Exception in LibgcjInternalFinalizerThread
- Organization: Network Appliance, Inc. (SPIN)
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)