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

[EMAIL PROTECTED] 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();

Reply via email to