javax.management.RuntimeOperationsException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The following error occurs at the very end of an initportal command on rel-2-5-patches/ssp-rel-2-5-patches. The build succeeded, but there must be something missing. {noformat} [java] INFO [38:00.332] For a detailed report on the data import see /home/ec2-user/src/uPortal/target/data-import-reports/data-import.txt [java] INFO [38:00.556] Closing JPA EntityManagerFactory for persistence unit 'PortalDb' [java] INFO [38:00.590] Closing JPA EntityManagerFactory for persistence unit 'AggrEventsDb' [java] INFO [38:00.634] Closing JPA EntityManagerFactory for persistence unit 'RawEventsDb' [java] INFO [38:00.639] Shutting down ExecutorService 'uPortalTaskScheduler' [java] ERROR [38:00.667] Error occured while unregistering JGroupsCacheReceiver MBean. null [java] javax.management.RuntimeOperationsException: Exception occurred trying to unregister the MBean [java] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:365) ~[na:1.6.0_30] [java] at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:550) ~[na:1.6.0_30] [java] at net.sf.ehcache.distribution.jgroups.JGroupsCacheReceiver.dispose(JGroupsCacheReceiver.java:94) ~[ehcache-jgroups3replication-1.7.4.jar:na] [java] at net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProvider.shutdownCachePeer(JGroupsCacheManagerPeerProvider.java:205) ~[ehcache-jgroups3replication-1.7.4.jar:na] [java] at net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProvider.dispose(JGroupsCacheManagerPeerProvider.java:197) ~[ehcache-jgroups3replication-1.7.4.jar:na] [java] at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:1430) ~[ehcache-core-2.6.0.jar:na] [java] at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.destroy(EhCacheManagerFactoryBean.java:165) ~[spring-context-support-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:238) ~[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:510) ~[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:486) ~[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:742) ~[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:455) ~[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1090) ~[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1064) ~[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010) ~[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.context.support.AbstractApplicationContext.destroy(AbstractApplicationContext.java:998) ~[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.jasig.portal.shell.PortalShell.main(PortalShell.java:95) ~[platform-war-2.5.2-SNAPSHOT-classes.jar:2.5.2-SNAPSHOT] [java] Caused by: java.lang.IllegalArgumentException: Object name cannot be null [java] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:363) ~[na:1.6.0_30] [java] ... 16 common frames omitted [echo] Finished initializing database [echo] Finished initializing uPortal {noformat}
    via by Jason Elwood,
  • The following error occurs at the very end of an initportal command on rel-2-5-patches/ssp-rel-2-5-patches. The build succeeded, but there must be something missing. {noformat} [java] INFO [38:00.332] For a detailed report on the data import see /home/ec2-user/src/uPortal/target/data-import-reports/data-import.txt [java] INFO [38:00.556] Closing JPA EntityManagerFactory for persistence unit 'PortalDb' [java] INFO [38:00.590] Closing JPA EntityManagerFactory for persistence unit 'AggrEventsDb' [java] INFO [38:00.634] Closing JPA EntityManagerFactory for persistence unit 'RawEventsDb' [java] INFO [38:00.639] Shutting down ExecutorService 'uPortalTaskScheduler' [java] ERROR [38:00.667] Error occured while unregistering JGroupsCacheReceiver MBean. null [java] javax.management.RuntimeOperationsException: Exception occurred trying to unregister the MBean [java] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:365) ~[na:1.6.0_30] [java] at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:550) ~[na:1.6.0_30] [java] at net.sf.ehcache.distribution.jgroups.JGroupsCacheReceiver.dispose(JGroupsCacheReceiver.java:94) ~[ehcache-jgroups3replication-1.7.4.jar:na] [java] at net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProvider.shutdownCachePeer(JGroupsCacheManagerPeerProvider.java:205) ~[ehcache-jgroups3replication-1.7.4.jar:na] [java] at net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProvider.dispose(JGroupsCacheManagerPeerProvider.java:197) ~[ehcache-jgroups3replication-1.7.4.jar:na] [java] at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:1430) ~[ehcache-core-2.6.0.jar:na] [java] at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.destroy(EhCacheManagerFactoryBean.java:165) ~[spring-context-support-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:238) ~[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:510) ~[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:486) ~[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:742) ~[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:455) ~[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1090) ~[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1064) ~[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010) ~[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.springframework.context.support.AbstractApplicationContext.destroy(AbstractApplicationContext.java:998) ~[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE] [java] at org.jasig.portal.shell.PortalShell.main(PortalShell.java:95) ~[platform-war-2.5.2-SNAPSHOT-classes.jar:2.5.2-SNAPSHOT] [java] Caused by: java.lang.IllegalArgumentException: Object name cannot be null [java] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:363) ~[na:1.6.0_30] [java] ... 16 common frames omitted [echo] Finished initializing database [echo] Finished initializing uPortal {noformat}
    via by Jason Elwood,
  • In the latest build, when the GlassFish is stopped, it throws : WARNING: Exception while dispatching an event javax.management.RuntimeOperationsException: Exception occurred trying to unregister the MBean at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:347) at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:506) at org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread.shutdown(JMXStartupService.java:195) at org.glassfish.admin.mbeanserver.JMXStartupService.shutdown(JMXStartupService.java:146) at org.glassfish.admin.mbeanserver.JMXStartupService.access$000(JMXStartupService.java:87) at org.glassfish.admin.mbeanserver.JMXStartupService$ShutdownListener.event(JMXStartupService.java:115) at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128) at com.sun.enterprise.v3.server.AppServerStartup.stop(AppServerStartup.java:425) at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.stop(GlassFishImpl.java:90) at LifeCycleTest.test(LifeCycleTest.java:69) at LifeCycleTest.main(LifeCycleTest.java:59) Caused by: java.lang.IllegalArgumentException: Object name cannot be null at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:345) ... 10 more Steps to reproduce: 1. Download the attachment (LifeCycleTest.java) 2. javac -cp $GF_INSTALL_DIR/glassfish/lib/embedded/glassfish-embedded-static-shell.jar LifeCycleTest.java 3. java -cp $GF_INSTALL_DIR/glassfish/lib/embedded/glassfish-embedded-static-shell.jar:. LifeCycleTest
    via by Bhavanishankar,
    • javax.management.RuntimeOperationsException: Exception occurred trying to unregister the MBean at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:365)[na:1.6.0_30] at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:550)[na:1.6.0_30] at net.sf.ehcache.distribution.jgroups.JGroupsCacheReceiver.dispose(JGroupsCacheReceiver.java:94)[ehcache-jgroups3replication-1.7.4.jar:na] at net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProvider.shutdownCachePeer(JGroupsCacheManagerPeerProvider.java:205)[ehcache-jgroups3replication-1.7.4.jar:na] at net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProvider.dispose(JGroupsCacheManagerPeerProvider.java:197)[ehcache-jgroups3replication-1.7.4.jar:na] at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:1430)[ehcache-core-2.6.0.jar:na] at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.destroy(EhCacheManagerFactoryBean.java:165)[spring-context-support-3.2.8.RELEASE.jar:3.2.8.RELEASE] at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:238)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:510)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:486)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:742)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:455)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1090)[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1064)[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.destroy(AbstractApplicationContext.java:998)[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE] at org.jasig.portal.shell.PortalShell.main(PortalShell.java:95)[platform-war-2.5.2-SNAPSHOT-classes.jar:2.5.2-SNAPSHOT] Caused by: java.lang.IllegalArgumentException: Object name cannot be null at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:363)[na:1.6.0_30] ... 16 more
    No Bugmate found.