You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Paul Hammant <Pa...@yahoo.com> on 2001/10/16 09:36:14 UTC

Re: Phoenix/Cornerstone upgradation problem

Not directly answering your question, but you may be better getting all 
from CVS.

Regards,

- Paul H

>I  have downloaded "phoenix-4.0a1" and latest "jakarta-avalon-cornerstone"
>(date 2001-10-15).
>
>I made changes to my application according to new implementaiton.
>
>These are the changes which i made:
>
>    1. Removed  "extends phoenix.Service interface" in all my Service
>interfaces.
>    2. Removed  "<role> </role>"  in ".xinfo" files
>    3. Added     "</block>" element in ".xinfo" files
>    4. Added "ThreadManager" block to "scheduler" and "connections" blocks
>in "assembly.xml" file .
>
>When i start phoenix server,  i am getting the following error :
>---------------------------------------------------------------
>Tue Oct 16 12:30:44 JST 2001 [INFO   ] (Phoenix): Verifying that the
>specified BlockListeners have valid types.
>Tue Oct 16 12:30:44 JST 2001 [WARN   ] (Phoenix): Failed to start
>application rics-server.
>java.lang.Exception: Failed to initialize application rics-server.
>        at
>org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKer
>nel.java:143)
>        at
>org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(Def
>aultKernel.java:175)
>        at
>org.apache.avalon.phoenix.components.deployer.DefaultSarDeployer.deploy(Defa
>ultSarDeployer.java:121)
>        at
>org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(Def
>aultEmbeddor.java:333)
>        at
>org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(De
>faultEmbeddor.java:325)
>        at
>org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultA
>pplications(DefaultEmbeddor.j\
>ava:307)
>        at
>org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(Defaul
>tEmbeddor.java:162)
>
>--------------------------------------------------------------------
>
>i have attached phoenix.log file for reference.
>
>Please tell me if i forgot to change any thing.
>
>Application was working fine with the pervious versions(nightly phoenix and
>cornerstone);
>
>thanks in advance
>
>umashanker.k
>
>
>
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>




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


Re: Phoenix/Cornerstone upgradation problem

Posted by Peter Donald <do...@apache.org>.
Okay - just fixed it in CVS ;)

On Wed, 17 Oct 2001 17:32, umashanker wrote:
> 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

-- 
Cheers,

Pete

-------------------------------------------------------
"When we remember we are all mad, the mysteries of life 
disappear and life stands explained." -Mark Twain
-------------------------------------------------------

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


Re: Phoenix/Cornerstone upgradation problem

Posted by umashanker <um...@rics.co.jp>.
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