Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-4575

JDBCIOExceptionHandler does not restart TransportConnector when JMX is enabled on broker - java.io.IOException: Transport Connector could not be registered in JMX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.8.0
    • 5.9.0
    • Broker
    • None
    • tested against latest apache trunk (5.9 - snapshot)
      svn 14900032

    Description

      Without JMX enabled on the broker; when the DB is shutdown and subsequently restarted the JDBCIOExceptionHandler does a shutdown and restart on the transport connector as expected.

      However when JMX is enabled on the broker the transport connector fails to restart throwing the following exception and subsequently shutting down the broker

      2013-06-06 15:25:22,113 [st IO exception] - INFO  DefaultIOExceptionHandler      - Stopping the broker due to exception, java.io.IOException: Transport Connector could not be registered in JMX: org.apache.activemq:type=Broker,brokerName=localhost,connector=clientConnectors,connectorName=tcp_//sideshow.home_61616
      java.io.IOException: Transport Connector could not be registered in JMX: org.apache.activemq:type=Broker,brokerName=localhost,connector=clientConnectors,connectorName=tcp_//sideshow.home_61616
      	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
      	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1972)
      	at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2434)
      	at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2351)
      	at org.apache.activemq.util.DefaultIOExceptionHandler$2.run(DefaultIOExceptionHandler.java:101)
      Caused by: javax.management.InstanceAlreadyExistsException: org.apache.activemq:type=Broker,brokerName=localhost,connector=clientConnectors,connectorName=tcp_//sideshow.home_61616
      	at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
      	at org.apache.activemq.broker.jmx.ManagementContext.registerMBean(ManagementContext.java:380)
      	at org.apache.activemq.broker.jmx.AnnotatedMBean.registerMBean(AnnotatedMBean.java:72)
      	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1969)
      	... 3 more
      
      

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            pgfox Pat Fox
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: