You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Gert Vanthienen (JIRA)" <ji...@apache.org> on 2012/07/27 07:05:33 UTC

[jira] [Created] (SM-2161) JMX InstanceAlreadyExistsException when restarting web distribution on WebSphere

Gert Vanthienen created SM-2161:
-----------------------------------

             Summary: JMX InstanceAlreadyExistsException when restarting web distribution on WebSphere
                 Key: SM-2161
                 URL: https://issues.apache.org/jira/browse/SM-2161
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-core
    Affects Versions: 3.4.1
            Reporter: Gert Vanthienen
            Assignee: Gert Vanthienen
             Fix For: 3.4.2


When registering an MBean, WebSphere is appending additional information to the MBean's ObjectName.  When trying to unregister the bean at shutdown, we're not taking that into account, leaving the old MBean lingering around and causing this InstanceAlreadyExistsException when restarting the webapp.

{noformat}
javax.management.InstanceAlreadyExistsException: org.apache.servicemix:Name=ManagementContext,cell=WIN-F3SFJVOQ3JUNode01Cell,Type=SystemService,ContainerName=ServiceMix,node=WIN-F3SFJVOQ3JUNode01,process=server1
	at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:465)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1496)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:975)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:929)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:494)
	at com.ibm.ws.management.PlatformMBeanServer.registerMBean(PlatformMBeanServer.java:471)
	at org.apache.servicemix.jbi.management.ManagementContext.registerMBean(ManagementContext.java:538)
	at org.apache.servicemix.jbi.management.ManagementContext.registerSystemService(ManagementContext.java:622)
	... 118 more
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (SM-2161) JMX InstanceAlreadyExistsException when restarting web distribution on WebSphere

Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SM-2161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gert Vanthienen resolved SM-2161.
---------------------------------

    Resolution: Fixed

Fixed in http://svn.apache.org/viewvc?view=revision&revision=1366290
                
> JMX InstanceAlreadyExistsException when restarting web distribution on WebSphere
> --------------------------------------------------------------------------------
>
>                 Key: SM-2161
>                 URL: https://issues.apache.org/jira/browse/SM-2161
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-core
>    Affects Versions: 3.4.1
>            Reporter: Gert Vanthienen
>            Assignee: Gert Vanthienen
>             Fix For: 3.4.2
>
>
> When registering an MBean, WebSphere is appending additional information to the MBean's ObjectName.  When trying to unregister the bean at shutdown, we're not taking that into account, leaving the old MBean lingering around and causing this InstanceAlreadyExistsException when restarting the webapp.
> {noformat}
> javax.management.InstanceAlreadyExistsException: org.apache.servicemix:Name=ManagementContext,cell=WIN-F3SFJVOQ3JUNode01Cell,Type=SystemService,ContainerName=ServiceMix,node=WIN-F3SFJVOQ3JUNode01,process=server1
> 	at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:465)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1496)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:975)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:929)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:494)
> 	at com.ibm.ws.management.PlatformMBeanServer.registerMBean(PlatformMBeanServer.java:471)
> 	at org.apache.servicemix.jbi.management.ManagementContext.registerMBean(ManagementContext.java:538)
> 	at org.apache.servicemix.jbi.management.ManagementContext.registerSystemService(ManagementContext.java:622)
> 	... 118 more
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira