cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: NPE in OJB block [was Re: svn commit: r177968 - in /cocoon: blocks/unsupported/ojb/trunk/java/org/apache/cocoon/ojb/c]
Date Mon, 30 May 2005 10:55:55 GMT
Noone?

Carsten

Carsten Ziegeler wrote:
> I just applied the following fix to OJB (in trunk) - without it, I get
> an NPE on startup of Cocoon in the getLevel() method as LOGGER is null.
> So it seems that initialize() is not invoked before.
> 
> Can anyone please have a look at it?
> 
> Thanks
> Carsten
> 
> cziegeler@apache.org wrote:
> 
>>Modified: cocoon/blocks/unsupported/ojb/trunk/java/org/apache/cocoon/ojb/components/LoggerImpl.java
>>URL: http://svn.apache.org/viewcvs/cocoon/blocks/unsupported/ojb/trunk/java/org/apache/cocoon/ojb/components/LoggerImpl.java?rev=177968&r1=177967&r2=177968&view=diff
>>@@ -37,8 +39,9 @@
>> 
>>     /**
>>      * Root logger for all OJB loggers
>>+     * FIXME - we just initialize it with a NullLogger to prevent later NPEs
>>      */
>>-    private static org.apache.avalon.framework.logger.Logger LOGGER;
>>+    private static org.apache.avalon.framework.logger.Logger LOGGER = new NullLogger();
>> 
> 
> 


-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Mime
View raw message