java.lang.IllegalStateException

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

Samebug tips1

The application is unable to connect to the database. It could be resolved by configuring access privileges on the database side.


rprp

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web318

  • via Unknown by Bradley,
  • Stack trace

    • 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:153) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880) at org.mule.config.spring.SpringRegistry.lookupObject(SpringRegistry.java:128) at org.mule.registry.AbstractRegistryBroker.lookupObject(AbstractRegistryBroker.java:70) at org.mule.registry.MuleRegistryHelper.lookupEndpointFactory(MuleRegistryHelper.java:145) at org.mule.module.client.MuleClient.getOutboundEndpoint(MuleClient.java:804) at org.mule.module.client.MuleClient.getEvent(MuleClient.java:748) at org.mule.module.client.MuleClient.dispatch(MuleClient.java:276) at org.mule.module.client.MuleClient.dispatch(MuleClient.java:262) at net.zerofootprint.messaging.routers.mule.MuleMessageRouter.broadcastMsg(MuleMessageRouter.java:129) at net.zerofootprint.messaging.routers.MessageRouterManager.broadcastMsg(MessageRouterManager.java:95) at net.zerofootprint.messaging.heartbeat.HeartbeatPublisher$HeartbeatSender.run(HeartbeatPublisher.java:38)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    ivanszkypeterivanszkypeter
    Once,
    Unknown visitor
    Unknown visitorOnce,
    70 more bugmates