Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5556

Transport MBean Registration Error at Startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Transports 1.0.0
    • 1.6.3, 1.7.0
    • transports
    • None

    Description

      When initializing multiple configuration context instances in the same application (say client cfgCtx and server cfgCtx) the following exception might be thrown if the same transport listener or sender is configured in multiple axis2.xml files:

      [2010-07-20 17:19:59,815] WARN

      {org.apache.axis2.transport.base.TransportMBeanSupport}

      - Error registering a MBean with objectname ' org.apache.axis2:Type=Transport,ConnectorName=tcp-sender ' for JMX management
      javax.management.InstanceAlreadyExistsException: org.apache.axis2:Type=Transport,ConnectorName=tcp-sender
      at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)

      This is because when we take a particular transport listener or a sender they use the same name to register their JMX MBeans. Transports should use more unique names when registering their MBeans.

      Attachments

        1. AXIS2-4784.patch
          0.9 kB
          Hiranya Kasub Jayathilaka

        Activity

          People

            afkham_azeez Afkham Azeez
            hiranya Hiranya Kasub Jayathilaka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: