Am not
sure what your wrapper method is doing but if you want exceptions thrown in
threads to be handled for sure then probably you should give the ThreadGroup
class a try. Pls read APIDoc below:
public
void uncaughtException(Thread t,Throwable e)
Called
by the Java Virtual Machine when a thread in this thread group stops because of
an uncaught exception. The uncaughtException method of ThreadGroup does the
following: If this thread group has a parent thread group, the uncaughtException
method of that parent is called with the same two arguments. Otherwise, this
method determines if the Throwable argument is an instance of ThreadDeath. If
so, nothing special is done. Otherwise, the Throwable's printStackTrace method
is called to print a stack backtrace to the standard error stream. Applications
can override this method in subclasses of ThreadGroup to provide alternative
handling of uncaught exceptions.
You
need to create your own ThreadGroup instance and all threads created by your
Java app should belong to this threadgroup instance.
Hope
that helps.
--Shankar
____________________________________________________-----Original Message-----
From: Greg Nudelman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 28, 2002 6:05 AM
To: JDJList
Subject: [jdjlist] ClassNotFoundExceptionGuys, I have a thread that throws a ClassNotFoundException, from the class loader. This causes the entire thread to die, right then and there, even though a wrapper method catches all java.lang.Exception, though that catch block there never gets executed.I think this should not occur -- bug in JVM? Your experiences?Please share.GregSolaris, JVM 1.3.1_06____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________
