avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "umashanker" <umashan...@rics.co.jp>
Subject Re: Phoenix/Cornerstone upgradation problem
Date Wed, 17 Oct 2001 07:32:05 GMT
Thanks Paul Hammant for your reply,

I got source from CVS.

Its is working fine now, i forgot to change configuration for  "Thread
Manager"  from "server.xml"  to  "config.xml" file.

ERROR :
In class "DefaultApplicationContext" getLogger() method throws
NullPointerException, this occurs when threads configuration in "server.xml"
is groups.length>0.


-------------DefaultApplicationContext.java---------------------
public void configure( final Configuration configuration )
        throws ConfigurationException
    {
        //Configure thread pools
        final Configuration[] groups =
            configuration.getChild( "threads" ).getChildren(
"thread-group" );

        if( groups.length > 0 )
        {
            final String message = REZ.getString(
"frame.warn.thread-pools" );
>>>>>>>         getLogger().warn( message );  // throws NullPointerException
            System.err.println( message );
        }

        for( int i = 0; i < groups.length; i++ )
        {
            configureThreadPool( groups[ i ] );
        }
    }

----------------------------------------------------------------------------







---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Mime
View raw message