Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via usergrid-user by Dave, 2 years ago
BeanFactory not initialized or already > closed - call 'refresh' before accessing beans via the ApplicationContext > > at > org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory
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(Thread.java:745)