java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

JBoss Issue Tracker | Alessio Soldano | 8 years ago
  1. 0

    [JBWS-2527] BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext - JBoss Issue Tracker

    jboss.org | 11 months ago
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Testing CXF and Jersey together causes Spring conflicts?

    Stack Overflow | 6 years ago | Steve Smith
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

    2 unregistered visitors
    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.containsBean
      1. org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:121)
      2. org.springframework.context.support.AbstractApplicationContext.containsBean(AbstractApplicationContext.java:765)
      2 frames
    3. Apache CXF Core
      ConfigurerImpl.configureBean
      1. org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:118)
      1 frame
    4. Apache CXF Runtime JAX-WS Frontend
      ServiceImpl.getPort
      1. org.apache.cxf.jaxws.ServiceImpl.configureObject(ServiceImpl.java:513)
      2. org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:429)
      3. org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:292)
      4. org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:287)
      4 frames
    5. JBoss Web Services - Stack CXF Runtime Client
      ServiceRefStubPropertyServiceDelegate.getPort
      1. org.jboss.wsf.stack.cxf.client.ServiceRefStubPropertyServiceDelegate.getPort(ServiceRefStubPropertyServiceDelegate.java:172)
      1 frame
    6. Java RT
      Service.getPort
      1. javax.xml.ws.Service.getPort(Service.java:44)
      1 frame
    7. com.sun.ts
      Client.setup
      1. com.sun.ts.tests.jaxws.api.javax_xml_ws.Endpoint.Client.getPortJavaEE(Client.java:111)
      2. com.sun.ts.tests.jaxws.api.javax_xml_ws.Endpoint.Client.setup(Client.java:189)
      2 frames