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:172) > > at > org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1071) > > at > org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1045) > > at > org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:993) > > at > org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:548) > > at > org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:142) > > at > org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5124) > > at > org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5786) > > at > org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) > > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) > > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) > > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) > > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) > > at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095) > > at > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1957) > > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > > at java.util.concurrent.FutureTask.run(FutureTask.java:266)

usergrid-user | Dave | 11 months ago
  1. 0

    Re: Usergrid unabe to start

    usergrid-user | 11 months ago | Dave
    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:172) > > at > org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1071) > > at > org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1045) > > at > org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:993) > > at > org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:548) > > at > org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:142) > > at > org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5124) > > at > org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5786) > > at > org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) > > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) > > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) > > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) > > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) > > at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095) > > at > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1957) > > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > > at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  2. 0

    Re: Usergrid unabe to start

    usergrid-user | 11 months ago | Dave
    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:172) > > at > org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1071) > > at > org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1045) > > at > org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:993) > > at > org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:548) > > at > org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:142) > > at > org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5124) > > at > org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5786) > > at > org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) > > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) > > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) > > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) > > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) > > at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095) > > at > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1957) > > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > > at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  3. 0

    Re: Usergrid unabe to start

    usergrid-user | 11 months ago | Dave
    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:172) > > at > org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1071) > > at > org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1045) > > at > org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:993) > > at > org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:548) > > at > org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:142) > > at > org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5124) > > at > org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5786) > > at > org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) > > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) > > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) > > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) > > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) > > at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095) > > at > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1957) > > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > > at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problems with Bean declared as Scope request in Servlet 3.0 configuration

    Stack Overflow | 3 years ago | alexzm1
    java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request. at org.springframework.web.context.request.RequestCon textHolder.currentRequestAttributes(RequestContext Holder.java:131) at org.springframework.web.context.request.AbstractRe questAttributesScope.get(AbstractRequestAttributes Scope.java:41) at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:330 ) at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.DefaultL istableBeanFactory.findAutowireCandidates(DefaultL istableBeanFactory.java:912) at org.springframework.beans.factory.support.DefaultL istableBeanFactory.doResolveDependency(DefaultList ableBeanFactory.java:855) at org.springframework.beans.factory.support.DefaultL istableBeanFactory.resolveDependency(DefaultListab leBeanFactory.java:770) at org.springframework.beans.factory.support.Construc torResolver.resolveAutowiredArgument(ConstructorRe solver.java:811) at org.springframework.beans.factory.support.Construc torResolver.createArgumentArray(ConstructorResolve r.java:739) at org.springframework.beans.factory.support.Construc torResolver.autowireConstructor(ConstructorResolve r.java:193) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:1075) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBeanInstance(Abst ractAutowireCapableBeanFactory.java:979) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:487) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 96) at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:223) at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:293 ) at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:628) at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:932) at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:479) at org.springframework.web.servlet.FrameworkServlet.c onfigureAndRefreshWebApplicationContext(FrameworkS ervlet.java:658) at org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:530 ) at org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:484) at org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:136) at javax.servlet.GenericServlet.init(GenericServlet.j ava:158) at org.apache.catalina.core.StandardWrapper.initServl et(StandardWrapper.java:1284) at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:1090) at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:5210) at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:5493) at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.jav a:266) at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
  6. 0

    Mifos - Microfinance Open Source / Mailing Lists

    sourceforge.net | 1 year ago
    java.lang.IllegalStateException: LifecycleProcessor not initialized - >>> call 'refr >>> esh' before invoking lifecycle methods via the context: Root >>> WebApplicationConte >>> xt: startup date [Thu May 29 16:29:13 IST 2014]; root of context >>> hierarchy >>> at >>> org.springframework.context.support.AbstractApplicationContext.getLif >>> ecycleProcessor(AbstractApplicationContext.java:360) >>> [spring-context-3.2.5.RELEA >>> SE.jar:3.2.5.RELEASE] >>> at >>> org.springframework.context.support.AbstractApplicationContext.doClos >>> e(AbstractApplicationContext.java:1057) >>> [spring-context-3.2.5.RELEASE.jar:3.2.5. >>> RELEASE] >>> at >>> org.springframework.context.support.AbstractApplicationContext.close( >>> AbstractApplicationContext.java:1010) [spring-context-3.2.5.RELEASE.jar: >>> 3.2.5.RE >>> LEASE] >>> at >>> org.springframework.web.context.ContextLoader.closeWebApplicationCont >>> ext(ContextLoader.java:559) [spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] >>> at >>> org.springframework.web.context.ContextLoaderListener.contextDestroye >>> d(ContextLoaderListener.java:143) >>> [spring-web-3.2.5.RELEASE.jar:3.2.5.RELEASE] >>> at >>> org.apache.catalina.core.StandardContext.listenerStop(StandardContext >>> .java:4980) [tomcat-embed-core-7.0.47.jar:7.0.47] >>> at >>> org.apache.catalina.core.StandardContext.stopInternal(StandardContext >>> .java:5626) [tomcat-embed-core-7.0.47.jar:7.0.47] >>> at >>> org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) [ >>> tomcat-embed-core-7.0.47.jar:7.0.47] >>> at >>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) >>> [tomcat-embed-core-7.0.47.jar:7.0.47] >>> at >>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase. >>> java:1559) [tomcat-embed-core-7.0.47.jar:7.0.47] >>> at >>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase. >>> java:1549) [tomcat-embed-core-7.0.47.jar:7.0.47] >>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)

  1. mortalman7 4 times, last 7 months ago
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(AbstractRefreshableApplicationContext.java:172) > > at > org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1071) > > at > org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1045) > > at > org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:993) > > at > org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:548) > > at > org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:142) > > at > org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5124) > > at > org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5786) > > at > org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) > > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) > > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) > > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) > > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) > > at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095) > > at > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1957) > > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > > at java.util.concurrent.FutureTask.run(FutureTask.java:266)

    at java.lang.Thread.run()
  2. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame