users@glassfish.java.net

IllegalStateException on shutdown for AMX MBean

From: <forums_at_java.net>
Date: Mon, 29 Oct 2012 15:11:06 -0500 (CDT)

When shutting down our cluster/instance we are getting an
IllegalStatException (below). These are the last 3 lines of the log during a
shutdown. Ive tried toggling the Enable MBeans Monitoring option in the
console to no avail. Could anyone give some insight into why this is error is
popping up? We aren't using any JMX beans and from a search of the gfish
source code it looks like the amx-support startup bean is core to gfish.
|INFO|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=24;_ThreadName=Thread-2;|Initialized
AMXStartupServiceNew in 15 ms, registered as
amx-support:type=amx-loader,name=startup|#]
|WARNING|glassfish3.1.2|javax.enterprise.system.core.org.glassfish.kernel.event|_ThreadID=24;_ThreadName=Thread-2;|Exception
while dispatching an event java.lang.IllegalStateException: AMX MBean not yet
available: amx-support:type=amx-loader,name=startup at
org.glassfish.admin.mbeanserver.BootAMX.bootAMX(BootAMX.java:157) at
org.glassfish.admin.mbeanserver.AdminAuthorizedMBeanServer$Handler.amxDomain(AdminAuthorizedMBeanServer.java:154)
at
org.glassfish.admin.mbeanserver.AdminAuthorizedMBeanServer$Handler.isAMX(AdminAuthorizedMBeanServer.java:149)
at
org.glassfish.admin.mbeanserver.AdminAuthorizedMBeanServer$Handler.isAMX(AdminAuthorizedMBeanServer.java:142)
at
org.glassfish.admin.mbeanserver.AdminAuthorizedMBeanServer$Handler.isAllowed(AdminAuthorizedMBeanServer.java:136)
at
org.glassfish.admin.mbeanserver.AdminAuthorizedMBeanServer$Handler.invoke(AdminAuthorizedMBeanServer.java:101)
at $Proxy188.unregisterMBean(Unknown Source) at
org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread.shutdown(JMXStartupService.java:239)
at
org.glassfish.admin.mbeanserver.JMXStartupService.shutdown(JMXStartupService.java:160)
at
org.glassfish.admin.mbeanserver.JMXStartupService.access$000(JMXStartupService.java:94)
at
org.glassfish.admin.mbeanserver.JMXStartupService$ShutdownListener.event(JMXStartupService.java:128)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128) at
com.sun.enterprise.v3.server.AppServerStartup.stop(AppServerStartup.java:439)
at
com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.stop(GlassFishImpl.java:88)
at
com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.stop(GlassFishDecorator.java:68)
at com.sun.enterprise.v3.admin.StopServer.doExecute(StopServer.java:70) at
com.sun.enterprise.v3.admin.cluster.StopInstanceInstanceCommand.execute(StopInstanceInstanceCommand.java:94)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$2.run(CommandRunnerImpl.java:377)
|#]
|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=24;_ThreadName=Thread-2;|Shutdown
procedure finished|#]

--
[Message sent by forum member 'russbach']
View Post: http://forums.java.net/node/891846