You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Stephen McConnell <mc...@apache.org> on 2002/08/18 03:24:36 UTC

[issue] TimeScheduler runtime failure


A action resulting in the lookup of the Cornerstone TimeScheduler 
service within James (such as a request on the James SMTP server to send 
a message) generates a ClassCastException:

[INFO   ] (root.james.remote): RemoteManager init...
[INFO   ] (root.james.remote): RemoteManager using plain on port 4555 at 
null
[INFO   ] (root.james.remote): RemoteManager ...init end
[WARN   ] (root.connections#6561434): Error handling connection
org.apache.avalon.framework.component.ComponentException: Manager 
returned a non-component for the role: org.apache.avalon.cornerstone.servi
ces.scheduler.TimeScheduler
        at 
org.apache.avalon.cornerstone.services.connection.AdaptingComponentManager.lookup(AdaptingComponentManager.java:48)
        at 
org.apache.james.smtpserver.SMTPHandler.compose(SMTPHandler.java:149)
        at 
org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:164)
        at 
org.apache.avalon.cornerstone.services.connection.AbstractHandlerFactory.createConnectionHandler(AbstractHandlerFactory.java:64)
        at 
org.apache.avalon.cornerstone.blocks.connection.ConnectionRunner.run(Connection.java:182)
        at 
org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:47)
        at 
org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:80)
rethrown from
java.lang.ClassCastException
        at 
org.apache.avalon.cornerstone.services.connection.AdaptingComponentManager.lookup(AdaptingComponentManager.java:42)
        at 
org.apache.james.smtpserver.SMTPHandler.compose(SMTPHandler.java:149)
        at 
org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:164)
        at 
org.apache.avalon.cornerstone.services.connection.AbstractHandlerFactory.createConnectionHandler(AbstractHandlerFactory.java:64)
        at 
org.apache.avalon.cornerstone.blocks.connection.ConnectionRunner.run(Connection.java:182)
        at 
org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:47)
        at 
org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:80)


I have updates DefaultTimeScheduler to include implemetation of the 
Component interface in order to elimiate this problem.

Chers, Steve.

-- 

Stephen J. McConnell

OSM SARL
digital products for a global economy
mailto:mcconnell@osm.net
http://www.osm.net



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>