Return-Path: Delivered-To: apmail-jakarta-velocity-dev-archive@apache.org Received: (qmail 34470 invoked from network); 18 Apr 2003 02:39:46 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 18 Apr 2003 02:39:46 -0000 Received: (qmail 6420 invoked by uid 97); 18 Apr 2003 02:41:48 -0000 Delivered-To: qmlist-jakarta-archive-velocity-dev@nagoya.betaversion.org Received: (qmail 6412 invoked from network); 18 Apr 2003 02:41:47 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 18 Apr 2003 02:41:47 -0000 Received: (qmail 34221 invoked by uid 500); 18 Apr 2003 02:39:43 -0000 Mailing-List: contact velocity-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Velocity Developers List" Reply-To: "Velocity Developers List" Delivered-To: mailing list velocity-dev@jakarta.apache.org Received: (qmail 34210 invoked from network); 18 Apr 2003 02:39:42 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 18 Apr 2003 02:39:42 -0000 Received: (qmail 6406 invoked by uid 50); 18 Apr 2003 02:41:45 -0000 Date: 18 Apr 2003 02:41:45 -0000 Message-ID: <20030418024145.6405.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: velocity-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 19137] New: - LogSystem NPE s X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19137 LogSystem NPE s Summary: LogSystem NPE s Product: Velocity Version: 1.3.1 Platform: All OS/Version: All Status: NEW Severity: Minor Priority: Other Component: Source AssignedTo: velocity-dev@jakarta.apache.org ReportedBy: elkner@linofee.org Unfortunately, the used LogSystem is unstable. 1) SimpleLog4JSystems: - if runtime.log.logsystem.log4j.category is not set (default), the cast to string throws an NPE, when trying to init(), i.e. obtain the categoryname. - so first fix could be: -- Object categoryname = o rsvc.getProperty("runtime.log.logsystem.log4j.category"); if ( categoryname != null ) { logger = Logger.getLogger( categoryname.toString() ); ... --- - if null, same issue applies to the logfile stuff - furthermore internalInit( logfile ) would throw an NPE from java.io.FileOutputStream. - finally a log is there, but uninitialized (i.e. useless) and - a misleading "PANIC: ..." message is thrown to stdout almost the same counts for the Log4JLogSystem as well as the AvalonLogSystem ... --------------------------------------------------------------------- To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: velocity-dev-help@jakarta.apache.org