Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-983

JMX management MBeans don't get unloaded in war distribution

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: Deployment
    • Labels:
    • Environment:
      JBOss AS 7

      Description

      When the undeployment of synapse takes place, JMX management beans are not undeployed, so on any re-deployment, it throws an error per MBeam.

      10:56:51,340 INFO [org.apache.commons.vfs2.impl.StandardFileSystemManager] (ServerService Thread Pool – 58) Using "/tmp/vfs_cache" as temporary files store.
      10:56:51,483 WARN [org.apache.axis2.transport.base.TransportMBeanSupport] (ServerService Thread Pool – 58) Error registering a MBean with objectname ' org.apache.synapse:Type=Transport,ConnectorName=nio-http-listener ' for JMX management: javax.management.InstanceAlreadyExistsException: org.apache.synapse:Type=Transport,ConnectorName=nio-http-listener
      at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) [rt.jar:1.7.0_21]
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898) [rt.jar:1.7.0_21]
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966) [rt.jar:1.7.0_21]
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900) [rt.jar:1.7.0_21]
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324) [rt.jar:1.7.0_21]
      at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:513) [rt.jar:1.7.0_21]
      at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.registerMBean(PluggableMBeanServerImpl.java:551)
      at org.jboss.as.jmx.PluggableMBeanServerImpl.registerMBean(PluggableMBeanServerImpl.java:319)
      at org.apache.axis2.transport.base.TransportMBeanSupport.register(TransportMBeanSupport.java:91) [axis2-transport-base-1.0.0.jar:]
      at org.apache.synapse.transport.nhttp.HttpCoreNIOListener.init(HttpCoreNIOListener.java:131) [synapse-nhttp-transport-2.1.0.jar:2.1.0]
      at org.apache.axis2.engine.ListenerManager.init(ListenerManager.java:83) [axis2-kernel-1.6.1.jar:1.6.1]
      at org.apache.synapse.Axis2SynapseController.createNewInstance(Axis2SynapseController.java:615) [synapse-core-2.1.0.jar:2.1.0]
      at org.apache.synapse.Axis2SynapseController.init(Axis2SynapseController.java:128) [synapse-core-2.1.0.jar:2.1.0]
      at org.apache.synapse.ServerManager.doInit(ServerManager.java:405) [synapse-core-2.1.0.jar:2.1.0]
      at org.apache.synapse.ServerManager.init(ServerManager.java:106) [synapse-core-2.1.0.jar:2.1.0]
      at org.apache.synapse.core.axis2.SynapseStartUpServlet.init(SynapseStartUpServlet.java:57) [synapse-core-2.1.0.jar:2.1.0]
      at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1194) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1100) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3591) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3798) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
      at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_21]
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_21]
      at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_21]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]
      at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
      at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      10:56:51,491 WARN [org.apache.axis2.transport.base.TransportMBeanSupport] (ServerService Thread Pool – 58) Error registering a MBean with objectname ' org.apache.synapse:Type=Transport,ConnectorName=vfs-listener ' for JMX management: javax.management.InstanceAlreadyExistsException: org.apache.synapse:Type=Transport,ConnectorName=vfs-listener
      at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) [rt.jar:1.7.0_21]
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898) [rt.jar:1.7.0_21]
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966) [rt.jar:1.7.0_21]
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900) [rt.jar:1.7.0_21]
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324) [rt.jar:1.7.0_21]
      at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:513) [rt.jar:1.7.0_21]
      at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.registerMBean(PluggableMBeanServerImpl.java:551)
      at org.jboss.as.jmx.PluggableMBeanServerImpl.registerMBean(PluggableMBeanServerImpl.java:319)
      at org.apache.axis2.transport.base.TransportMBeanSupport.register(TransportMBeanSupport.java:91) [axis2-transport-base-1.0.0.jar:]
      at org.apache.axis2.transport.base.AbstractTransportListener.init(AbstractTransportListener.java:137) [axis2-transport-base-1.0.0.jar:]
      at org.apache.axis2.transport.base.AbstractTransportListenerEx.init(AbstractTransportListenerEx.java:52) [axis2-transport-base-1.0.0.jar:]
      at org.apache.axis2.transport.base.AbstractPollingTransportListener.init(AbstractPollingTransportListener.java:43) [axis2-transport-base-1.0.0.jar:]
      at org.apache.synapse.transport.vfs.VFSTransportListener.init(VFSTransportListener.java:135) [synapse-vfs-transport-2.1.0.jar:2.1.0]
      at org.apache.axis2.engine.ListenerManager.init(ListenerManager.java:83) [axis2-kernel-1.6.1.jar:1.6.1]
      at org.apache.synapse.Axis2SynapseController.createNewInstance(Axis2SynapseController.java:615) [synapse-core-2.1.0.jar:2.1.0]
      at org.apache.synapse.Axis2SynapseController.init(Axis2SynapseController.java:128) [synapse-core-2.1.0.jar:2.1.0]
      at org.apache.synapse.ServerManager.doInit(ServerManager.java:405) [synapse-core-2.1.0.jar:2.1.0]
      at org.apache.synapse.ServerManager.init(ServerManager.java:106) [synapse-core-2.1.0.jar:2.1.0]
      at org.apache.synapse.core.axis2.SynapseStartUpServlet.init(SynapseStartUpServlet.java:57) [synapse-core-2.1.0.jar:2.1.0]
      at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1194) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1100) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3591) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3798) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
      at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_21]
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_21]
      at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_21]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]
      at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
      at org.jboss.threads.JBossThread.run(JBossThread.java:122)

        Attachments

          Activity

            People

            • Assignee:
              hiranya Hiranya Kasub Jayathilaka
              Reporter:
              jlpedrosa Jose Luis Pedrosa
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: