|
Upgraded a 1.0.1 project to 1.0.2 and then added a new domain object,
controller and views. When I try to create a new object I get: Message: java.lang.IllegalStateException: The org.hibernate.cache.UpdateTimestampsCache Cache is not alive.; nested exception is org.hibernate.cache.CacheException: java.lang.IllegalStateException: The org.hibernate.cache.UpdateTimestampsCache Cache is not alive. Caused by: org.springframework.orm.hibernate3.HibernateSystemException: java.lang.IllegalStateException: The org.hibernate.cache.UpdateTimestampsCache Cache is not alive.; nested exception is org.hibernate.cache.CacheException: java.lang.IllegalStateException: The org.hibernate.cache.UpdateTimestampsCache Cache is not alive. Class: PricePlanController At Line: [32] Code Snippet: 32: if (!pricePlan.hasErrors() && pricePlan.save()) { 33: flash.message = message(code: "priceplan.created.ok", args: [pricePlan.hut]) Stack trace at end of message. Is there some other config that needs changing from 1.0.1 to 1.0.2 to get the hibernate cache in a correct state? org.codehaus.groovy.runtime.InvokerInvocationException: org.springframework.orm.hibernate3.HibernateSystemException: java.lang.IllegalStateException: The org.hibernate.cache.UpdateTimestampsCache Cache is not alive.; nested exception is org.hibernate.cache.CacheException: java.lang.IllegalStateException: The org.hibernate.cache.UpdateTimestampsCache Cache is not alive. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:92) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:899) at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:740) at groovy.lang.Closure.call(Closure.java:292) at groovy.lang.Closure.call(Closure.java:287) at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleAction (SimpleGrailsControllerHelper.java:503) at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.executeAction (SimpleGrailsControllerHelper.java:394) at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleURI (SimpleGrailsControllerHelper.java:233) at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleURI (SimpleGrailsControllerHelper.java:154) at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsController.handleRequest (SimpleGrailsController.java:88) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle (SimpleControllerHandlerAdapter.java:48) at org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet.doDispatch (GrailsDispatcherServlet.java:251) at org .springframework .web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809) at org .springframework .web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476) at org .springframework .web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at org.codehaus.groovy.grails.web.util.WebUtils.forwardRequestForUrlMappingInfo (WebUtils.java:198) at org.codehaus.groovy.grails.web.util.WebUtils.forwardRequestForUrlMappingInfo (WebUtils.java:185) at org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter.doFilterInternal (UrlMappingsFilter.java:117) at org .springframework .web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1089) at org .codehaus .groovy .grails.web.sitemesh.GrailsPageFilter.parsePage(GrailsPageFilter.java: 119) at org .codehaus .groovy .grails.web.sitemesh.GrailsPageFilter.doFilter(GrailsPageFilter.java:82) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1089) at org.codehaus.groovy.grails.web.servlet.filter.GrailsReloadServletFilter.doFilterInternal (GrailsReloadServletFilter.java:142) at org .springframework .web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1089) at org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal (GrailsWebRequestFilter.java:68) at org .springframework .web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1089) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (CharacterEncodingFilter.java:96) at org .springframework .web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at org .springframework .web .filter .DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183) at org .springframework .web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java: 138) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:295) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 503) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:841) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:639) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379) at org .mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 361) at org.mortbay.thread.BoundedThreadPool $PoolThread.run(BoundedThreadPool.java:442) Caused by: org.springframework.orm.hibernate3.HibernateSystemException: java.lang.IllegalStateException: The org.hibernate.cache.UpdateTimestampsCache Cache is not alive.; nested exception is org.hibernate.cache.CacheException: java.lang.IllegalStateException: The org.hibernate.cache.UpdateTimestampsCache Cache is not alive. at PricePlanController$_closure3.doCall(PricePlanController.groovy:32) at PricePlanController$_closure3.doCall(PricePlanController.groovy) Caused by: org.hibernate.cache.CacheException: java.lang.IllegalStateException: The org.hibernate.cache.UpdateTimestampsCache Cache is not alive. at $Proxy6.saveOrUpdate(Unknown Source) ... 2 more Caused by: java.lang.IllegalStateException: The org.hibernate.cache.UpdateTimestampsCache Cache is not alive. at net.sf.ehcache.Cache.checkStatus(Cache.java:1201) at net.sf.ehcache.Cache.put(Cache.java:550) at net.sf.ehcache.Cache.put(Cache.java:523) ... 3 more -- Chris --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
> Upgraded a 1.0.1 project to 1.0.2 and then added a new domain
> object, controller and views. > When I try to create a new object I get: > > Message: java.lang.IllegalStateException: The > org.hibernate.cache.UpdateTimestampsCache Cache is not alive.; > nested exception is org.hibernate.cache.CacheException: > java.lang.IllegalStateException: The > org.hibernate.cache.UpdateTimestampsCache Cache is not alive. OK - I should have tried this before I posted. rm -rf ~/.grails and then re-run and the problem went away -- Chris --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Powered by Nabble | Edit this page |
