[jboss-jira] [JBoss JIRA] Commented: (JBCACHE-1001) Stopping standalone JBC (with -Dcom.sun.management.jmxremote) throws javax.management.InstanceNotFoundException: jboss.system:service=ServiceController
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Tue Mar 6 13:17:28 EST 2007
[ http://jira.jboss.com/jira/browse/JBCACHE-1001?page=comments#action_12355163 ]
Brian Stansberry commented on JBCACHE-1001:
-------------------------------------------
If the cache isn't deployed via the AS ServiceController, it shouldn't be stopped via stop(), but rather via stopService().
In 2.0 CacheImpl no longer inherits from ServiceMBeanSupport, so I think these kinds of problems will go away.
> Stopping standalone JBC (with -Dcom.sun.management.jmxremote) throws javax.management.InstanceNotFoundException: jboss.system:service=ServiceController
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBCACHE-1001
> URL: http://jira.jboss.com/jira/browse/JBCACHE-1001
> Project: JBoss Cache
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 1.4.1.SP2
> Reporter: Galder Zamarreno
> Assigned To: Manik Surtani
> Priority: Minor
>
> Start a new instance of JBossCache -Dcom.sun.management.jmxremote.
> It registers jboss.cache:service=TreeCache-Cluster but when you stop the cache, it throws this:
> 18:53:58,531 WARN TreeCache:195 - Error in stop jboss.cache:service=TreeCache-Cluster
> javax.management.InstanceNotFoundException: jboss.system:service=ServiceController
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:804)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> at org.jboss.system.ServiceMBeanSupport.stop(ServiceMBeanSupport.java:189)
> at org.hibernate.cache.OptimisticTreeCacheProvider.stop(OptimisticTreeCacheProvider.java:103)
> at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:800)
> at com.acme.hbcache.events.EventManager.main(Unknown Source)
> I haven't got time to look at this right now, making a note of it so that I can come back to it later.
> I need to try 2.0.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list