www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernie <...@actrix.gen.nz>
Subject mod_jserv/6479: ServletException not logged when thrown from within init()
Date Mon, 28 Aug 2000 23:20:47 GMT

>Number:         6479
>Category:       mod_jserv
>Synopsis:       ServletException not logged when thrown from within init()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Aug 28 16:30:00 PDT 2000
>Originator:     bht@actrix.gen.nz
UNIX and Win32
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.
in init():
throw new ServletException("Please log this somewhere")
On application level, a possible workaround may contain this:
config.getServletContext().log(ex, this.getClass().getName()
//"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.
 [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!     ]

View raw message