At 12:50  5/5/01 +0000, Charles Benett wrote:
>Peter wrote:
>>At 11:38  4/5/01 +0000, Charles Benett wrote:
>>>Attempting to update cornerstone and phoenix to use latest avalon, but
>>>getting a fatal error. My guess is that DefaultPool needs to have its
>>>logger set. If anyone knows where that should happen, would be great ...
>>
>>org.apache.avalon.phoenix.engine.facilities.thread.DefaultThreadManager
>>should do it and in my version seems to. Make sure you have the latest CVS
>>version of phoenix.
>
>I've resynched phoenix and cornerstone and get the same problem.

eek - resyncched to the code and had a look. Looks like 
DefaultThreadPool's constructor sets the logger for
SoftResourceLimitingPool but as it hasn't yet got it's own it passes in a
null.

A fix would be to modify DefaultThreadPool.setLogger() to

    public void setLogger( final Logger logger )
    {
        m_logger = logger;
        m_pool.setLogger(m_logger);
    }


Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to