Hmm, just played around with some loggers and found out, that JBoss does not 
set a DefaultUncaughtExceptionHandler (see 
Thread.setDefaultUncaughtExceptionHandler(...)).

The problem here is, that if an exception is not caught (e.g. NPE), it leads to 
the invocation of 
ThreadGroup.uncaughtException(Thread t, Throwable e) which in turn leads to 
printing the stack trace line by line to stderr and thus each line triggers a 
log.error($line).

So if one e.g. has configured a more or less expensive logAppender (e.g. like 
the SMTPLogger), it may lead to a DOS. E.g. I triggered a single NPE in a SLSB, 
which resulted in ~ 1900 mails ...

So does anybody know, what one has to do, that the appropriate handler is set 
right on the start of jboss? Setting up an extra service for it seems a little 
bit to much overhead for such a simple thing ...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931330#3931330

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931330


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to