cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: NPE in OJB block [was Re: svn commit: r177968 - in /cocoon: blocks/unsupported/ojb/trunk/java/org/apache/cocoon/ojb/c]
Date Tue, 31 May 2005 13:34:00 GMT
Carsten Ziegeler wrote:
> Noone?

Is on my list... Probably issue is related to the ordering of component 
instantiation.

Vadim


> 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();

Mime
View raw message