You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "James Carman (JIRA)" <hi...@jakarta.apache.org> on 2007/02/14 04:48:05 UTC

[jira] Commented: (HIVEMIND-197) ShutdownCoordinator tries to construct unconstructed services.

    [ https://issues.apache.org/jira/browse/HIVEMIND-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472969 ] 

James Carman commented on HIVEMIND-197:
---------------------------------------

You register the actual service proxy as a shutdown listener?  Can you give us a usecase for why this would be necessary?  Typically, your implementation class implements RegistryShutdownListener so that it can free up any resources.  

> ShutdownCoordinator tries to construct unconstructed services.
> --------------------------------------------------------------
>
>                 Key: HIVEMIND-197
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-197
>             Project: HiveMind
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: 1.1.1
>            Reporter: Patrick Moore
>
> We are using Hivemind to construct test configurations. Some of the services are Shutdownlisteners but are not constructed during the test. When the registry is shutdown during the test, the shutdown coordinator tries to create those unconstructed services.
> 18:52:11,656 ERROR [ShutdownCoordinatorImpl] Unable to shutdown <SingletonProxy
> for transparentpolitics.broadcastprovider.messageEndPointFactory($MessageEndPoin
> tFactory_110be2962ae)>: Unable to construct service transparentpolitics.broadcas
> tprovider.messageEndPointFactory: The HiveMind Registry has been shutdown.
> org.apache.hivemind.ApplicationRuntimeException: Unable to construct service tra
> nsparentpolitics.broadcastprovider.messageEndPointFactory: The HiveMind Registry
>  has been shutdown.
>         at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constr
> uctNewServiceImplementation(AbstractServiceModelImpl.java:166)
>         at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constr
> uctServiceImplementation(AbstractServiceModelImpl.java:140)
>         at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActual
> ServiceImplementation(SingletonServiceModel.java:69)
>         at $$MessageEndPointFactory_110be2962ae_110be2962b0._service($$MessageEn
> dPointFactory_110be2962ae_110be2962b0.java)
>         at $$MessageEndPointFactory_110be2962ae_110be2962b0.registryDidShutdown(
> $$MessageEndPointFactory_110be2962ae_110be2962b0.java)
>         at $$MessageEndPointFactory_110be2962ae_110be2962af.registryDidShutdown(
> $$MessageEndPointFactory_110be2962ae_110be2962af.java)
>         at org.apache.hivemind.impl.ShutdownCoordinatorImpl.shutdown(ShutdownCoo
> rdinatorImpl.java:97)
>         at org.apache.hivemind.impl.ShutdownCoordinatorImpl.shutdown(ShutdownCoo
> rdinatorImpl.java:80)
>         at org.apache.hivemind.impl.RegistryInfrastructureImpl.shutdown(Registry
> InfrastructureImpl.java:379)
>         at org.apache.hivemind.impl.RegistryImpl.shutdown(RegistryImpl.java:94)
>         at com.transparentpolitics.AbstractUnitTest.cleanCurrentRegistry(Abstrac
> tUnitTest.java:245)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.