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

Reply via email to