runEvent() addition of caching parameters like renderView() to allow for output caching of events

Description

runEvent() addition of caching parameters like renderView() to allow for output caching of events:

Method Signature

Cache Prefix

The cache prefix will be the same as event caching, and use the same technique for it.

Event Arguments Hash

The event arguments need to be hashed as it could change the results of the output of the event call.

Purging

Reuse the same event caching techniques and methods

Activity

Show:
Tim Brown
January 15, 2015, 7:57 PM

I know this is resolved, but this seems to be the commit that may be causing the issue I'm getting when running this code on CF11 on window server 2008 R2 and IIS.

I'm pretty sure I have the most recent coldbox-be version downloaded as I removed artifacts from commandbox today and re-downloaded coldbox via commandbox and then double checked by grabbing it from the integration server artifacts at the location below. Says that it was Built on January 10 2015

As I receive this message.

My Error

CACHE is already defined in argument scope.

Use local to define a local variable with same name.

The error occurred in //tbrown1/wwwroot/myAPI/coldbox/system/Bootstrap.cfc: line 69
67 : }
68 : // Create Brand New Controller
69 : application[ appKey ] = new coldbox.system.web.Controller( COLDBOX_APP_ROOT_PATH, appKey );
70 : // Setup the Framework And Application
71 : application[ appKey ].getLoaderService().loadApplication( COLDBOX_CONFIG_FILE, COLDBOX_APP_MAPPING );
Resources:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
Remote Address 192.168.1.104
Referrer
Date/Time 15-Jan-15 12:19 PM
Stack Trace
at cfBootstrap2ecfc1197388919$funcLOADCOLDBOX.runFunction(//tbrown1/wwwroot/myAPI/coldbox/system/Bootstrap.cfc:69) at cfApplication2ecfc115316746$funcONAPPLICATIONSTART.runFunction(//tbrown1/wwwroot/myAPI/Application.cfc:52)

coldfusion.compiler.ASTvariableDefinition$VarAlreadyDefinedException: CACHE is already defined in argument scope.
at coldfusion.compiler.ASTvariableDefinition.register(ASTvariableDefinition.java:108)
at coldfusion.compiler.SemanticAnalyzer.transform(SemanticAnalyzer.java:385)
at coldfusion.compiler.Treewalker.postorder(Treewalker.java:100)
at coldfusion.compiler.Treewalker.postorder(Treewalker.java:27)
at coldfusion.compiler.Treewalker.postorder(Treewalker.java:27)
at coldfusion.compiler.NeoTranslator.parseAndTransform(NeoTranslator.java:456)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:391)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:160)
at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(TemplateClassLoader.java:467)
at coldfusion.util.LruCache.get(LruCache.java:180)
at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java:387)
at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)
at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)
at coldfusion.util.SoftCache.get(SoftCache.java:81)
at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:655)
at coldfusion.runtime.TemplateClassLoader.newInstance(TemplateClassLoader.java:591)
at coldfusion.runtime.TemplateClassLoader.newInstance(TemplateClassLoader.java:574)
at coldfusion.runtime.TemplateProxyFactory.getCFCInstance(TemplateProxyFactory.java:281)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:174)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:159)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:149)
at coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:57)
at coldfusion.runtime.CFPage.___createObjectInternal(CFPage.java:11198)
at coldfusion.runtime.CFPage._createObject(CFPage.java:11183)
at cfBootstrap2ecfc1197388919$funcLOADCOLDBOX.runFunction(\\tbrown1\wwwroot\myAPI\coldbox\system\Bootstrap.cfc:69)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:643)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:432)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:402)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2483)
at cfApplication2ecfc115316746$funcONAPPLICATIONSTART.runFunction(\\tbrown1\wwwroot\myAPI\Application.cfc:52)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:643)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:432)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:402)
at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:108)
at coldfusion.runtime.AppEventInvoker.onApplicationStart(AppEventInvoker.java:231)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:333)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:142)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
at coldfusion.CfmServlet.service(CfmServlet.java:219)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:199)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)

Thanks!!
~Tim

Luis Majano
January 15, 2015, 8:43 PM

verified

Luis Majano
January 15, 2015, 8:43 PM

Fixed

Tim Brown
January 15, 2015, 9:15 PM
Edited

Thanks! Pulled the most recent artifact and it worked for me now.

Fixed

Assignee

Luis Majano

Reporter

Luis Majano

Labels

None

Components

Fix versions

Priority

Major
Configure