javax.management.RuntimeOperationsException: Exception occurred trying to unregister the MBean

Apereo Issues | Jason Elwood | 2 years ago
  1. 0

    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}

    Apereo Issues | 2 years ago | Jason Elwood
    javax.management.RuntimeOperationsException: Exception occurred trying to unregister the MBean
  2. 0

    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}

    Apereo Issues | 2 years ago | Jason Elwood
    javax.management.RuntimeOperationsException: Exception occurred trying to unregister the MBean
  3. 0

    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

    Java.net JIRA | 6 years ago | Bhavanishankar
    javax.management.RuntimeOperationsException: Exception occurred trying to unregister the MBean
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    WebSocket implementation "freaks out" if Session closed or exception thrown from onOpen method

    Apache Bugzilla | 4 years ago | nicholas
    javax.management.RuntimeOperationsException: Object name cannot be null
  6. 0

    javax.management: modeler.Registry unregisterComponent: Object name cannot

    Oracle Community | 9 years ago | 843798
    javax.management.RuntimeOperationsException: Object name cannot be null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Object name cannot be null

      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean()
    2. Java RT
      JmxMBeanServer.unregisterMBean
      1. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:363)[na:1.6.0_30]
      2. com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:550)[na:1.6.0_30]
      2 frames
    3. JGroups Replication
      JGroupsCacheManagerPeerProvider.dispose
      1. net.sf.ehcache.distribution.jgroups.JGroupsCacheReceiver.dispose(JGroupsCacheReceiver.java:94)[ehcache-jgroups3replication-1.7.4.jar:na]
      2. net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProvider.shutdownCachePeer(JGroupsCacheManagerPeerProvider.java:205)[ehcache-jgroups3replication-1.7.4.jar:na]
      3. net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProvider.dispose(JGroupsCacheManagerPeerProvider.java:197)[ehcache-jgroups3replication-1.7.4.jar:na]
      3 frames
    4. Ehcache
      CacheManager.shutdown
      1. net.sf.ehcache.CacheManager.shutdown(CacheManager.java:1430)[ehcache-core-2.6.0.jar:na]
      1 frame
    5. Spring Context Support
      EhCacheManagerFactoryBean.destroy
      1. org.springframework.cache.ehcache.EhCacheManagerFactoryBean.destroy(EhCacheManagerFactoryBean.java:165)[spring-context-support-3.2.8.RELEASE.jar:3.2.8.RELEASE]
      1 frame
    6. Spring Beans
      DefaultSingletonBeanRegistry.destroySingletons
      1. org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:238)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
      2. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:510)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
      3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:486)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
      4. org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:742)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
      5. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:455)[spring-beans-3.2.8.RELEASE.jar:3.2.8.RELEASE]
      5 frames
    7. Spring Context
      AbstractApplicationContext.destroy
      1. org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1090)[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE]
      2. org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1064)[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE]
      3. org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE]
      4. org.springframework.context.support.AbstractApplicationContext.destroy(AbstractApplicationContext.java:998)[spring-context-3.2.8.RELEASE.jar:3.2.8.RELEASE]
      4 frames
    8. org.jasig.portal
      PortalShell.main
      1. org.jasig.portal.shell.PortalShell.main(PortalShell.java:95)[platform-war-2.5.2-SNAPSHOT-classes.jar:2.5.2-SNAPSHOT]
      1 frame