org.osgi.service.cm.ConfigurationException: null : Cannot start the broker

Pentaho BI Platform Tracking | Emanuel Teixeira | 1 year ago
  1. 0

    When starting DI Server the plugin ActiveMQ fails to start, and in log file of Catalina we see a new SEVERE message each 6 seconds. Error message in pentaho.log file: {noformat} 2015-10-08 17:04:49,688 ERROR [org.apache.activemq.broker.BrokerService] Failed to start Apache ActiveMQ ([pentahoJmsBroker, ID:wd-wolverine-59029-1444320289440-0:1], java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: Address already in use: JVM_Bind) 2015-10-08 17:04:50,249 ERROR [org.apache.felix.configadmin.1.8.0] [[org.osgi.service.cm.ConfigurationAdmin]][org.osgi.service.cm.ManagedServiceFactory, id=1015, bundle=230/mvn:org.apache.activemq/activemq-osgi/5.10.0]: Updating configuration org.apache.activemq.server.eec7fa27-20a2-4249-bf3f-3dcde568ee80 caused a problem: Cannot start the broker org.osgi.service.cm.ConfigurationException: null : Cannot start the broker at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:110) at Proxybafff0aa_983e_4a87_93f0_101f3024e15d.updated(Unknown Source) at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:88) at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1605) at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1548) at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171) at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1092) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:489) at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:90) ... 6 more {noformat} Error message in catalina.XXX.log file: {noformat} 08-Oct-2015 17:05:01.627 INFO [Camel (camel-2) thread #1 - JmsConsumer[snmpQueue]] org.apache.camel.component.jms.DefaultJmsMessageListenerContainer.handleListenerSetupFailure JMS message listener invoker needs to establish shared Connection 08-Oct-2015 17:05:02.643 SEVERE [Camel (camel-2) thread #1 - JmsConsumer[snmpQueue]] org.apache.camel.component.jms.DefaultJmsMessageListenerContainer.refreshConnectionUntilSuccessful Could not refresh JMS Connection for destination 'snmpQueue' - retrying in 5000 ms. Cause: Error while attempting to add new Connection to the pool; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused: connect 08-Oct-2015 17:05:08.700 SEVERE [Camel (camel-2) thread #1 - JmsConsumer[snmpQueue]] org.apache.camel.component.jms.DefaultJmsMessageListenerContainer.refreshConnectionUntilSuccessful Could not refresh JMS Connection for destination 'snmpQueue' - retrying in 5000 ms. Cause: Error while attempting to add new Connection to the pool; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused: connect 08-Oct-2015 17:05:14.722 SEVERE [Camel (camel-2) thread #1 - JmsConsumer[snmpQueue]] org.apache.camel.component.jms.DefaultJmsMessageListenerContainer.refreshConnectionUntilSuccessful Could not refresh JMS Connection for destination 'snmpQueue' - retrying in 5000 ms. Cause: Error while attempting to add new Connection to the pool; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused: connect {noformat}

    Pentaho BI Platform Tracking | 1 year ago | Emanuel Teixeira
    org.osgi.service.cm.ConfigurationException: null : Cannot start the broker
  2. 0

    When starting DI Server the plugin ActiveMQ fails to start, and in log file of Catalina we see a new SEVERE message each 6 seconds. Error message in pentaho.log file: {noformat} 2015-10-08 17:04:49,688 ERROR [org.apache.activemq.broker.BrokerService] Failed to start Apache ActiveMQ ([pentahoJmsBroker, ID:wd-wolverine-59029-1444320289440-0:1], java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: Address already in use: JVM_Bind) 2015-10-08 17:04:50,249 ERROR [org.apache.felix.configadmin.1.8.0] [[org.osgi.service.cm.ConfigurationAdmin]][org.osgi.service.cm.ManagedServiceFactory, id=1015, bundle=230/mvn:org.apache.activemq/activemq-osgi/5.10.0]: Updating configuration org.apache.activemq.server.eec7fa27-20a2-4249-bf3f-3dcde568ee80 caused a problem: Cannot start the broker org.osgi.service.cm.ConfigurationException: null : Cannot start the broker at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:110) at Proxybafff0aa_983e_4a87_93f0_101f3024e15d.updated(Unknown Source) at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:88) at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1605) at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1548) at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171) at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1092) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:489) at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:90) ... 6 more {noformat} Error message in catalina.XXX.log file: {noformat} 08-Oct-2015 17:05:01.627 INFO [Camel (camel-2) thread #1 - JmsConsumer[snmpQueue]] org.apache.camel.component.jms.DefaultJmsMessageListenerContainer.handleListenerSetupFailure JMS message listener invoker needs to establish shared Connection 08-Oct-2015 17:05:02.643 SEVERE [Camel (camel-2) thread #1 - JmsConsumer[snmpQueue]] org.apache.camel.component.jms.DefaultJmsMessageListenerContainer.refreshConnectionUntilSuccessful Could not refresh JMS Connection for destination 'snmpQueue' - retrying in 5000 ms. Cause: Error while attempting to add new Connection to the pool; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused: connect 08-Oct-2015 17:05:08.700 SEVERE [Camel (camel-2) thread #1 - JmsConsumer[snmpQueue]] org.apache.camel.component.jms.DefaultJmsMessageListenerContainer.refreshConnectionUntilSuccessful Could not refresh JMS Connection for destination 'snmpQueue' - retrying in 5000 ms. Cause: Error while attempting to add new Connection to the pool; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused: connect 08-Oct-2015 17:05:14.722 SEVERE [Camel (camel-2) thread #1 - JmsConsumer[snmpQueue]] org.apache.camel.component.jms.DefaultJmsMessageListenerContainer.refreshConnectionUntilSuccessful Could not refresh JMS Connection for destination 'snmpQueue' - retrying in 5000 ms. Cause: Error while attempting to add new Connection to the pool; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused: connect {noformat}

    Pentaho BI Platform Tracking | 1 year ago | Emanuel Teixeira
    org.osgi.service.cm.ConfigurationException: null : Cannot start the broker
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    ActiveMQ - User - Crushing: JDBC driver with Failover (Master-Slave) MS SQL database

    nabble.com | 7 months ago
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  5. 0

    [SPR-9591] WebApplicationInitializer with AnnotationConfigWebApplicationContext parent gets reset to null by ContextLoaderListener - Spring JIRA

    spring.io | 1 year ago
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

    at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory()
  2. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
    2. org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1092)
    3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:489)
    3 frames
  3. AMQ bundle
    ActiveMQServiceFactory.updated
    1. org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:90)
    1 frame
  4. Unknown
    Proxybafff0aa_983e_4a87_93f0_101f3024e15d.updated
    1. Proxybafff0aa_983e_4a87_93f0_101f3024e15d.updated(Unknown Source)
    1 frame
  5. Apache Felix Configuration Admin Service
    UpdateThread.run
    1. org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:88)
    2. org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1605)
    3. org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1548)
    4. org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)
    4 frames
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame