Hello community,
I wanted to reload the spring configuration from within my web-app and used:
Unfortunately the hibernate cache seems to not like it (I am using EHCache for second level caching btw.):Code:ServletContext ctx = JsfContextUtils.getServletContext(); ConfigurableApplicationContext appCtx = (ConfigurableApplicationContext) WebApplicationContextUtils.getRequiredWebApplicationContext(ctx); appCtx.refresh();
Any hints on that one?Code:Caused by: java.lang.NullPointerException at org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge.nextTimestamp(RegionFactoryCacheProviderBridge.java:93) at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:637) at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:646) at org.springframework.orm.hibernate3.SessionFactoryUtils.doGetSession(SessionFactoryUtils.java:318) at org.springframework.orm.hibernate3.SessionFactoryUtils.getSession(SessionFactoryUtils.java:233) at org.springframework.orm.hibernate3.support.HibernateDaoSupport.getSession(HibernateDaoSupport.java:170) at org.springframework.orm.hibernate3.support.HibernateDaoSupport.getSession(HibernateDaoSupport.java:143)
Thank you in advance
Jakob


Reply With Quote
