|
From: Patrick Y. <kc...@ce...> - 2003-06-13 03:16:24
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
Yes, thank you. :-)<br>
P.S. I don't have time to read your mails yet. Hope I can do so
later... :-(<br>
<br>
Mayne, Peter wrote:<br>
<blockquote type="cite"
cite="mid...@s-...">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator"
content="MS Exchange Server version 5.5.2654.45">
<title>Minor fixes</title>
<p><font size="2">In various places, errors are logged without stack
traces. For instance, in MessageServiceHandler.configure():</font> </p>
<p><font size="2"> try {</font> <br>
<font size="2"> certResolver = (CertResolver)
Class.forName(certResolverName).</font> <br>
<font size="2"> newInstance();</font> <br>
<font size="2"> }</font> <br>
<font size="2"> catch (Exception e) {</font> <br>
<font size="2"> String err = ErrorMessages.getMessage</font> <br>
<font size="2">
(ErrorMessages.ERR_HERMES_INIT_ERROR, e.getMessage());</font> <br>
<font size="2"> logger.error(err);</font> <br>
<font size="2"> throw new InitializationException(err);</font> <br>
<font size="2"> }</font> </p>
<p><font size="2">If the CertResolver class can't be instantiated,
all that shows in the error log is "[10001] Initialization error -
<class name>". By changing logger.error(err) to logger.error(err,
e), we get a stack trace that shows a ClassNotFoundException.</font></p>
<p><font size="2">There are a few similar to this scattered around,
where I've had to add the stack trace to figure out what's going on. Do
you mind if I fix them as I find them?</font></p>
<p><font size="2">PJDM</font> <br>
<font size="2">-- </font> <br>
<font size="2">Peter Mayne</font> <br>
<font size="2">Technology Consultant</font> <br>
<font size="2">Spherion Technology Solutions</font> <br>
<font size="2">Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602</font> <br>
<font size="2">T: 61 2 62689727 F: 61 2 62689777</font> </p>
<font size="3" color="BLUE">
<pre>The information contained in this email and any attachments to it:
(a) may be confidential and if you are not the intended recipient, any interference with,
use, disclosure or copying of this material is unauthorised and prohibited; and
(b) may contain personal information of the recipient and/or the sender as defined
under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to
collect, hold and use such information and any personal information contained in a
response to this email, for any reasonable purpose in the ordinary course of
Spherion's
business, including forwarding this email internally or disclosing it to a third party. All
personal information collected by Spherion will be handled in accordance with
Spherion's Privacy Policy. If you have received this email in error, please notify the
sender and delete it.
(c) you agree not to employ or arrange employment for any candidate(s) supplied in
this email and any attachments without first entering into a contractual agreement with
Spherion. You further agree not to divulge any information contained in this document
to any person(s) or entities without the express permission of Spherion.
</pre>
</font> </blockquote>
</body>
</html>
|