[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-bugdb
Subject: mod_jserv/6479: ServletException not logged when thrown from within init()
From: Bernie <bht () actrix ! gen ! nz>
Date: 2000-08-28 23:20:47
[Download RAW message or body]
>Number: 6479
>Category: mod_jserv
>Synopsis: ServletException not logged when thrown from within init()
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: jserv
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Mon Aug 28 16:30:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: bht@actrix.gen.nz
>Release:
>Organization:
apache
>Environment:
UNIX and Win32
>Description:
If a ServletException is thrown inside the init() method, then the output
of the exception is not logged anywhere at all.
This makes it very difficult to debug startup problems.
A very fundamental flaw that needs to be fixed urgently.
>How-To-Repeat:
in init():
throw new ServletException("Please log this somewhere")
>Fix:
On application level, a possible workaround may contain this:
config.getServletContext().log(ex, this.getClass().getName()
//where
//"config" is the config parameter of the init() method
//"this" is the servlet instance
//"ex" is a ServletException
As I said it is on application level and really only demonstrates
what kind of output would be expected in the log.
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic