Exception in thread "Timer-1" java.lang.IllegalStateException报错
Exception in thread "Timer-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:171)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1119)
at com.neusoft.fdframework.core.SpringServiceFactory.getBean(SpringServiceFactory.java:51)
at com.neusoft.utf.portal.execute.dao.impl.TestExecMgrDAOImpl.getJdbcTemplate(TestExecMgrDAOImpl.java:86)
at com.neusoft.utf.portal.execute.dao.impl.TestExecMgrDAOImpl.getAllTimeSettings(TestExecMgrDAOImpl.java:308)
at com.neusoft.utf.portal.execute.bo.impl.TestExecMgrBOImpl.getAllTimeSettings(TestExecMgrBOImpl.java:2375)
at com.neusoft.utf.portal.execute.bo.impl.TestExecMgrBOImpl.executeByTimed(TestExecMgrBOImpl.java:323)
at com.neusoft.utf.portal.execute.bo.impl.TestExecMgrBOImpl.run(TestExecMgrBOImpl.java:102)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
tomcat缓存清空过,也不是ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");的问题。求助大神这个怎么解决