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

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

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.


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

Posted by "Patrick Moore (JIRA)" <hi...@jakarta.apache.org>.
    [ https://issues.apache.org/jira/browse/HIVEMIND-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472981 ] 

Patrick Moore commented on HIVEMIND-197:
----------------------------------------

Don't know quite what you meant. 

But what I did was have a service that was never accessed during the test so because of hivemind's lazyloading the actual service  was never created. But even though the actual service  was never created, its registryDidShutdown() method was called. But of course this reguired creating the service, first, which is where things died.

> 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.


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

Posted by "James Carman (JIRA)" <hi...@jakarta.apache.org>.
    [ 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.


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

Posted by "James Carman (JIRA)" <hi...@jakarta.apache.org>.
    [ https://issues.apache.org/jira/browse/HIVEMIND-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473042 ] 

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

I'm pretty sure I understand what happened, but how about this.  Can you paste some simple code that illustrates the issue (or maybe an attachment with a simple test case)?  How did you register the service as a shutdown listener?  I'd like to see that and your interface and impl class definitions.  Also, paste in your hivemodule.xml stuff.  This may just be a quick fix for you.

> 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.