Error in Coldbox.system.cache.policies.LRU

I get this error randomly on my main site. It happens on multiple servers at random times. Does anyone have any idea why this might happen?

I’m not 100% sure but I believe this is caused by an Async Thread during the cacheBox clean-up period.

Open to ideas or suggestions…

Stack Tracking::
Error sorting via store indexer Can’t cast Null value to value of type [collection] value is null Can’t cast Null value to value of type [collection]
at railo.runtime.op.Caster.toCollection(Caster.java:3751):3751
at railo.runtime.functions.struct.StructSort.call(StructSort.java:52):52
at coldbox.system.cache.store.indexers.metadataindexer_cfc$cf.udfCall2(/var/lib/tomcat7/firearmsforsale.com/ROOT/coldbox/system/cache/store/indexers/MetadataIndexer.cfc:130):130:130)
at coldbox.system.cache.store.indexers.metadataindexer_cfc$cf.udfCall(/var/lib/tomcat7/firearmsforsale.com/ROOT/coldbox/system/cache/store/indexers/MetadataIndexer.cfc):-1:-1)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
at railo.runtime.type.UDFImpl.cal l(UDFImpl.java:212):212
at railo.runtime.ComponentImpl._call(ComponentImpl.java:623):623
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1732):1732
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:713):713
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1471):1471
at coldbox.system.cache.policies.lru_cfc$cf.udfCall(/var/lib/tomcat7/firearmsforsale.com/ROOT/coldbox/system/cache/policies/LRU.cfc:42):42:42)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
at railo.runtime.type.UDFImpl.call(UDFImpl.java:212):212
at railo.runtime.ComponentImpl._call(ComponentImpl.java:623):623
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1732):1732
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:713):713
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1471):1471
at coldbox.system.cache.providers.cacheboxprovider_cfc$cf.udfCall2(/var/lib/tomcat7/firearmsforsale.com/ROOT/coldbox/system/cache/providers/CacheBoxProvider.cfc:470):470:470)
at coldbox.system.cache.providers.cacheboxprovider_cfc$cf.udfCall(/var/lib/to mcat7/firearmsforsale.com/ROOT/coldbox/system/cache/providers/CacheBoxProvider.cfc):-1:-1)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
at railo.runtime.type.UDFImpl.call(UDFImpl.java:212):212
at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:704):704
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:713):713
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1471):1471
at coldbox.system.cache.providers.cacheboxprovider_cfc$cf.udfCall2(/var/lib/tomcat7/firearmsforsale.com/ROOT/coldbox/system/cache/providers/CacheBoxProvider.cfc:412):412:412)
&nbs p; at coldbox.system.cache.providers.cacheboxprovider_cfc$cf.udfCall(/var/lib/tomcat7/firearmsforsale.com/ROOT/coldbox/system/cache/providers/CacheBoxProvider.cfc):-1:-1)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
at railo.runtime.type.UDFImpl.call(UDFImpl.java:212):212
at railo.runtime.ComponentImpl._call(ComponentImpl.java:623):623
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1732):1732
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:713):713
at rail o.runtime.PageContextImpl.getFunction(PageContextImpl.java:1471):1471
at coldbox.system.coldbox_cfc$cf.udfCall1(/var/lib/tomcat7/firearmsforsale.com/ROOT/coldbox/system/Coldbox.cfc:301):301:301)
at coldbox.system.coldbox_cfc$cf.udfCall(/var/lib/tomcat7/firearmsforsale.com/ROOT/coldbox/system/Coldbox.cfc):-1:-1)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
at railo.runtime.type.UDFImpl.call(UDFImpl.java:212):212
at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:704):704
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:713):713
at railo. runtime.PageContextImpl.getFunction(PageContextImpl.java:1471):1471
at application_cfc$cf.udfCall(/var/lib/tomcat7/firearmsforsale.com/ROOT/Application.cfc:38):38:38)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
at railo.runtime.type.UDFImpl.call(UDFImpl.java:212):212
at railo.runtime.ComponentImpl._call(ComponentImpl.java:623):623
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1732):1732
at railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:387):387
at railo. runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:113):113
at railo.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:83):83
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2135):2135
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2102):2102
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:332):332
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.ApplicationF ilterChain.doFilter(ApplicationFilterChain.java:210):210
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176):176
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145):145
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92):92
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381):381
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243):243
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224):224
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.ajp.AjpProcessor.process(AjpProcessor.java:200):200
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProt ocol.java:579):579
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307):307
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146):1146
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615):615
at java.lang.Thread.run(Thread.java:701):701

WOW, that basically says the pool is null. Weird. Only way I can see this happen is on restarts or rein its

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

and the strange thing is that I haven’t restarted these servers for days if not weeks - and this happens several times a day?

could this be a railo bug?

signature0.jpg

I have a similar error that happens intermittently, usually on a bot crawl with a high number of concurrent requests. It is on a CF10 machine so the error message is a bit different. I believe it is caused by the cache expiration occurring during the processing of the request. I’m unable to duplicate the error in development. I’ve chosen to ignore the issue up to now and keep an eye on it for the time being. That said, I should probably implement a cache decorator with named locks, per the docs: http://wiki.coldbox.org/wiki/CacheBox.cfm#Caching_Considerations .

Jon

Hi Jeremy,

I am getting a similar error on a SUN OS server.

Error creating eviction policy: LRU
Could not find the ColdFusion component or interface LRU. Ensure that the name is correct and that the component or interface exists.

The error occurred in /www2/wirebox/system/core/util/util.cfc: line 164
Called from /www2/wirebox/system/cache/providers/CacheBoxProvider.cfc: line 109
Called from /www2/wirebox/system/cache/CacheFactory.cfc: line 643
Called from /www2/wirebox/system/cache/CacheFactory.cfc: line 599
Called from /www2/wirebox/system/cache/CacheFactory.cfc: line 160
Called from /www2/wirebox/system/cache/CacheFactory.cfc: line 97
Called from /www2/wirebox/system/ioc/injector.cfc: line 898
Called from /www2/wirebox/system/ioc/injector.cfc: line 130
Called from /www2/wirebox/system/ioc/injector.cfc: line 92
Called from /www2/testsite.cfm: line 1

Stack Trace
at cfutil2ecfc2141156205$funcTHROWIT.runFunction(/www2/wirebox/system/core/util/util.cfc:164) at cfCacheBoxProvider2ecfc1649187190$funcCONFIGURE.runFunction(/www2/wirebox/system/cache/providers/CacheBoxProvider.cfc:109) at cfCacheFactory2ecfc2114601896$funcREGISTERCACHE.runFunction(/www2/wirebox/system/cache/CacheFactory.cfc:643) at cfCacheFactory2ecfc2114601896$funcCREATECACHE.runFunction(/www2/wirebox/system/cache/CacheFactory.cfc:599) at cfCacheFactory2ecfc2114601896$funcCONFIGURE.runFunction(/www2/wirebox/system/cache/CacheFactory.cfc:160) at cfCacheFactory2ecfc2114601896$funcINIT.runFunction(/www2/wirebox/system/cache/CacheFactory.cfc:97) at cfinjector2ecfc1301913115$funcCONFIGURECACHEBOX.runFunction(/www2/wirebox/system/ioc/injector.cfc:898) at cfinjector2ecfc1301913115$funcCONFIGURE.runFunction(/www2/wirebox/system/ioc/injector.cfc:130) at cfinjector2ecfc1301913115$funcINIT.runFunction(/www2/wirebox/system/ioc/injector.cfc:92) at cftestsite2ecfm1807972875.runPage(/www2/testsite.cfm:1)

Glad I’m not the only one :slight_smile:

I agree – Jon! It happens MOST often when Bing or the chinabots scrape my servers rapidly. I will usually see 50-200 errors on Thursday & Saturday nights late. The rest of the week it rarely happens.

On occasion I will see it happen with I have large spikes of traffic however nearly ever time my site spikes above 200rps - its all to just a handful of pages. Whereas the bots scan hundreds of pages over a minute or two.

I know none-of-that helps but just trying to someone else spark an idea of what might be causing it.