:/

Ok.  We need to fix this.  Someone changed the ComponentFactory
code, so we need to get at the bottom of this ASAP.

If we report that we have a service, we need to provide something
besides a Null.

> -----Original Message-----
> From: Corey Jewett [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, September 11, 2002 3:28 AM
> To: [EMAIL PROTECTED]
> Subject: [Fortress] hasService() == true; lookup() == null?
> 
> 
> 
> 
> Maybe I'm missing something, but this seems like really 
> strange behavior. m_handler is set in configure(), and yes it 
> really is set. m_manager is set in service(), also really set 
> (org.apache.excalibur.fortress.lookup.FortressServiceManager).
> 
> Example Code:
> 
>     public void initialize () throws Exception {
>         // Can the handler be loaded?
>         if (!m_manager.hasService(m_handler)) {
>             getLogger().error("No such Handler:" + m_handler);
>             throw new IllegalStateException ("Handler, " + m_handler 
>                     + ", is not valid.");
>         }
> 
>         // Preempt any lazy loading of the handler to confirm 
> it's usability.
> /* DEBUG */ Object o = m_manager.lookup(m_handler);
> /* DEBUG */ getLogger().debug("TEST: " + m_handler + "\t" + o + "\t" +
> /* DEBUG */         m_manager.hasService(m_handler));
> /* DEBUG */ m_manager.release(o);
>         m_manager.release(m_manager.lookup(m_handler));
>     }
> 
> 
> relevant log entry:
>         TEST: axrs.handler.HTTPHandler  null    true
> 
> Corey
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:avalon-users-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


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

Reply via email to