I'm getting exactly the same error. I'm using the EHCache add-on (not EHCache-lite).I can really only get one cache working; as soon as I add another cache, the server poops - I get nullPointers everywhere, and I have to remove the second cache otherwise absolutely nothing works.
Interestingly, when I add the first cache, it works, but I get this in the logs:
SLF4J: The requested version 1.5.5 by your slf4j binding is not compatible with [1.6]
After reading the EHCache install.cfc, it says: "you cannot install ""EHCache"" and ""EHCache Lite"" at the same time, please first uninstall ""EHCache Lite"", to install ""EHCache"".
However, EHCache-lite isn't an extension in Railo 4, it looks like it's core - so how would I get rid of it??
When I add the second cache, in the Railo logs I get the following:
net.sf.ehcache.CacheException: Another unnamed CacheManager already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary
2. Shutdown the earlier cacheManager before creating new one with same name.
The source of the existing CacheManager is: InputStreamConfigurationSource [stream=java.io.ByteArrayInputStream@c8c164]
at net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName(CacheManager.java:458)
at net.sf.ehcache.CacheManager.init(CacheManager.java:355)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:323)
at railo.extension.io.cache.eh.EHCache.init(EHCache.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at railo.runtime.config.ConfigWebFactory.loadCache(ConfigWebFactory.java:2088)
at railo.runtime.config.ConfigWebFactory.load(ConfigWebFactory.java:354)
at railo.runtime.config.ConfigServerFactory.load(ConfigServerFactory.java:107)
at railo.runtime.config.ConfigServerFactory.newInstance(ConfigServerFactory.java:68)
at railo.runtime.engine.CFMLEngineImpl.getConfigServerImpl(CFMLEngineImpl.java:167)
at railo.runtime.engine.CFMLEngineImpl.<init>(CFMLEngineImpl.java:103)
at railo.runtime.engine.CFMLEngineImpl.getInstance(CFMLEngineImpl.java:133)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at railo.loader.engine.CFMLEngineFactory.getEngine(CFMLEngineFactory.java:627)
at railo.loader.engine.CFMLEngineFactory.getCore(CFMLEngineFactory.java:297)
at railo.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:238)
at railo.loader.engine.CFMLEngineFactory._restart(CFMLEngineFactory.java:356)
at railo.loader.engine.CFMLEngineFactory.removeLatestUpdate(CFMLEngineFactory.java:498)
at railo.loader.engine.CFMLEngineFactory.removeLatestUpdate(CFMLEngineFactory.java:464)
at railo.runtime.config.ConfigWebAdmin._removeUpdate(ConfigWebAdmin.java:2789)
at railo.runtime.config.ConfigWebAdmin.removeLatestUpdate(ConfigWebAdmin.java:2774)
at railo.runtime.tag.Admin.doRemoveUpdate(Admin.java:762)
at railo.runtime.tag.Admin._doStartTag(Admin.java:705)
at railo.runtime.tag.Admin.doStartTag(Admin.java:318)
at admin.services_update_cfm414$cf.call(/Users/mic/Projects/Railo/Source2/railo/railo-cfml/railo-admin/admin/services.update.cfm:45)
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:801)
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:748)
at admin.web_cfm$cf.call(/Users/mic/Projects/Railo/Source2/railo/railo-cfml/railo-admin/admin/web.cfm:473)
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:801)
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:748)
at admin.server_cfm$cf.call(/Users/mic/Projects/Railo/Source2/railo/railo-cfml/railo-admin/admin/server.cfm:2)
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:801)
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:753)
at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:187)
at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18)
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2248)
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2215)
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:312)
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:722)
This is again happening with 4.0.4.000 installed this morning and crashed most of my servers within minutes.Nullpointer errors, cachemanager stops, TimeToIdle errors... you name it.. everything was flying by in no time.
Railo 4.0.4.001 Error (net.sf.ehcache.CacheException) | |
Message |
Another unnamed CacheManager already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following: 1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary 2. Shutdown the earlier cacheManager before creating new one with same name. |
The source of the existing CacheManager is: InputStreamConfigurationSource [stream=java.io.ByteArrayInputStream@7065ec20] | |
Cause | net.sf.ehcache.CacheException |
Java Stacktrace |
Another unnamed CacheManager already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following: 1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary 2. Shutdown the earlier cacheManager before creating new one with same name. |
The source of the existing CacheManager is: InputStreamConfigurationSource [stream=java.io.ByteArrayInputStream@7065ec20] at net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName(CacheManager.java:458):458 at net.sf.ehcache.CacheManager.init(CacheManager.java:355):355 at net.sf.ehcache.CacheManager.<init>(CacheManager.java:340):340 at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:131):131 at org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge.start(RegionFactoryCacheProviderBridge.java:72):72 at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:250):250 at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1385):1385 at railo.runtime.orm.hibernate.HibernateORMEngine.getSessionFactory(HibernateORMEngine.java:279):279 at railo.runtime.orm.hibernate.HibernateORMEngine.init(HibernateORMEngine.java:117):117 at railo.runtime.config.ConfigImpl.getORMEngine(ConfigImpl.java:3195):3195 at railo.runtime.config.ConfigImpl.resetORMEngine(ConfigImpl.java:3181):3181 at railo.runtime.orm.ORMUtil.resetEngine(ORMUtil.java:46):46 at railo.runtime.listener.ModernAppListener.initApplicationContext(ModernAppListener.java:369):369 at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:90):90 at railo.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:78):78 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2255):2255 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2222):2222 at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:315):315 at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29 at javax.servlet.http.HttpServlet.service(HttpServlet.java:722):722 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305):305 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225):225 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169):169 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472):472 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168):168 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98):98 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407):407 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999):999 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565):565 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307):307 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source):-1 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source):-1 at java.lang.Thread.run(Unknown Source):-1 |
John,
You received this message because you are subscribed to a topic in the Google Groups "Railo" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/railo/nCzEcqB5RO4/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to railo+un...@googlegroups.com.
You guys should vote for the open ticket in the JIRA.
As a general guideline -- issues that affect many users get a higher priority than issues that affect few.
--
typos, misspels, and other weird words brought to you courtesy of my mobile device and its auto-(in)correct feature.