4 Replies Latest reply on Mar 28, 2006 11:46 AM by starksm64

    DOS issue - DefaultUncaughtExceptionHandler needs to be set

    elkner

      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 ...