I've been seeing a weird reoccurring error in a CFWheels 2.0.1. This error is recurring and I believe it happens on every session start.
seems to happen on every session start.
First, notice that there's no filename, just a line number... So, I dug into the full error breakdown and saw that it seems to happen after a call to the injection CFC on line 5. I believe this is choking on the structKeyExists test on the APPLICATION variable. I'd like to offer a solution but previous calls to the controller CFC seemed to have gone through (and they too use the APPLICATION variable...).
coldfusion.runtime.ObjectDuplicator$UnableToDuplicateCFCException: Unable to duplicate a ColdFusion Component.
at coldfusion.runtime.TemplateProxy.duplicate(TemplateProxy.java:2507)
at coldfusion.runtime.ObjectDuplicator._duplicate(ObjectDuplicator.java:125)
at coldfusion.runtime.ObjectDuplicator.duplicate(ObjectDuplicator.java:78)
at coldfusion.runtime.Struct.duplicate(Struct.java:210)
at coldfusion.runtime.ObjectDuplicator._duplicate(ObjectDuplicator.java:102)
at coldfusion.runtime.ObjectDuplicator.duplicate(ObjectDuplicator.java:78)
at coldfusion.runtime.Struct.duplicate(Struct.java:210)
at coldfusion.runtime.ObjectDuplicator._duplicate(ObjectDuplicator.java:102)
at coldfusion.runtime.ObjectDuplicator.duplicate(ObjectDuplicator.java:78)
at coldfusion.runtime.ObjectDuplicator._duplicate(ObjectDuplicator.java:142)
at coldfusion.runtime.ObjectDuplicator.duplicate(ObjectDuplicator.java:78)
at coldfusion.runtime.ObjectDuplicator._duplicate(ObjectDuplicator.java:142)
at coldfusion.runtime.ObjectDuplicator.duplicate(ObjectDuplicator.java:78)
at coldfusion.runtime.CFPage.Duplicate(CFPage.java:6698)
at cfcfml2ecfm2083540057$func$INVOKE.runFunction(Z:\MYPROJECTDIRECTORY\wheels\global\cfml.cfm:156)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:492)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:425)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:388)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:339)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:538)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3483)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3464)
at cfcfml2ecfm2083540057$func$SIMPLELOCK.runFunction(Z:\MYPROJECTDIRECTORY\wheels\global\cfml.cfm:33)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:492)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:425)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:388)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:339)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:538)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3483)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3464)
at cfonsessionend2ecfm1960512997$funcONSESSIONEND.runFunction(Z:\MYPROJECTDIRECTORY\wheels\events\onsessionend.cfm:5)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:492)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:425)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:388)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:339)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:234)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:650)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:596)
at coldfusion.cfc.CFCProxyFilter.invokeAppEvent(CFCProxyFilter.java:102)
at coldfusion.cfc.CFCProxyFilter.invoke(CFCProxyFilter.java:43)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.cfc.CFCProxy.doInvoke(CFCProxy.java:328)
at coldfusion.cfc.CFCProxy.invoke(CFCProxy.java:302)
at coldfusion.runtime.AppEventInvoker.onSessionEnd(AppEventInvoker.java:462)
at coldfusion.runtime.SessionTracker.invokeOnSessinEnd(SessionTracker.java:292)
at coldfusion.runtime.SessionTracker.cleanUp(SessionTracker.java:275)
at coldfusion.runtime.SessionTracker.access$000(SessionTracker.java:43)
at coldfusion.runtime.SessionTracker$SessionCleanUpAgent.run(SessionTracker.java:484)
at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:260)
at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:71)
Caused by: coldfusion.runtime.UndefinedVariableException: Variable APPLICATION is undefined.
at coldfusion.runtime.CfJspPage._get(CfJspPage.java:351)
at coldfusion.runtime.CfJspPage._get(CfJspPage.java:330)
at coldfusion.runtime.CfJspPage._get(CfJspPage.java:317)
at coldfusion.runtime.CfJspPage._autoscalarize(CfJspPage.java:1798)
at coldfusion.runtime.CfJspPage._autoscalarize(CfJspPage.java:1760)
at cfinjection2ecfm814284297.runPage(Z:\MYPROJECTDIRECTORY\wheels\plugins\standalone\injection.cfm:5)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:253)
at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:737)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:573)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3696)
at cfController2ecfc530171244.runPage(Z:\MYPROJECTDIRECTORY\wheels\Controller.cfc:5)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:253)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:542)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:251)
at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:377)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:251)
at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:377)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:251)
at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:377)
at coldfusion.runtime.TemplateProxyFactory.resolveNameForDuplicate(TemplateProxyFactory.java:168)
at coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:47)
at coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:72)
at coldfusion.runtime.ProxyFactory.getProxy(ProxyFactory.java:68)
at coldfusion.runtime.TemplateProxy.duplicate(TemplateProxy.java:2495)
... 56 more
"Error","scheduler-0","07/25/18","06:26:16","","Unable to duplicate a ColdFusion Component.coldfusion.runtime.UndefinedVariableException: Variable APPLICATION is undefined. The specific sequence of files included or processed is: '', line: 156 "
coldfusion.runtime.ObjectDuplicator$UnableToDuplicateCFCException: Unable to duplicate a ColdFusion Component.
at coldfusion.runtime.TemplateProxy.duplicate(TemplateProxy.java:2507)
at coldfusion.runtime.ObjectDuplicator._duplicate(ObjectDuplicator.java:125)
at coldfusion.runtime.ObjectDuplicator.duplicate(ObjectDuplicator.java:78)
at coldfusion.runtime.Struct.duplicate(Struct.java:210)
at coldfusion.runtime.ObjectDuplicator._duplicate(ObjectDuplicator.java:102)
at coldfusion.runtime.ObjectDuplicator.duplicate(ObjectDuplicator.java:78)
at coldfusion.runtime.Struct.duplicate(Struct.java:210)
at coldfusion.runtime.ObjectDuplicator._duplicate(ObjectDuplicator.java:102)
at coldfusion.runtime.ObjectDuplicator.duplicate(ObjectDuplicator.java:78)
at coldfusion.runtime.ObjectDuplicator._duplicate(ObjectDuplicator.java:142)
at coldfusion.runtime.ObjectDuplicator.duplicate(ObjectDuplicator.java:78)
at coldfusion.runtime.ObjectDuplicator._duplicate(ObjectDuplicator.java:142)
at coldfusion.runtime.ObjectDuplicator.duplicate(ObjectDuplicator.java:78)
at coldfusion.runtime.CFPage.Duplicate(CFPage.java:6698)
at cfcfml2ecfm2083540057$func$INVOKE.runFunction(Z:\MYPROJECTDIRECTORY\wheels\global\cfml.cfm:156)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:492)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:425)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:388)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:339)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:538)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3483)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3464)
at cfcfml2ecfm2083540057$func$SIMPLELOCK.runFunction(Z:\MYPROJECTDIRECTORY\wheels\global\cfml.cfm:33)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:492)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:425)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:388)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:339)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:538)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3483)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3464)
at cfonsessionend2ecfm1960512997$funcONSESSIONEND.runFunction(Z:\MYPROJECTDIRECTORY\wheels\events\onsessionend.cfm:5)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:492)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:425)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:388)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:339)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:234)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:650)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:596)
at coldfusion.cfc.CFCProxyFilter.invokeAppEvent(CFCProxyFilter.java:102)
at coldfusion.cfc.CFCProxyFilter.invoke(CFCProxyFilter.java:43)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.cfc.CFCProxy.doInvoke(CFCProxy.java:328)
at coldfusion.cfc.CFCProxy.invoke(CFCProxy.java:302)
at coldfusion.runtime.AppEventInvoker.onSessionEnd(AppEventInvoker.java:462)
at coldfusion.runtime.SessionTracker.invokeOnSessinEnd(SessionTracker.java:292)
at coldfusion.runtime.SessionTracker.cleanUp(SessionTracker.java:275)
at coldfusion.runtime.SessionTracker.access$000(SessionTracker.java:43)
at coldfusion.runtime.SessionTracker$SessionCleanUpAgent.run(SessionTracker.java:484)
at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:260)
at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:71)
Caused by: coldfusion.runtime.UndefinedVariableException: Variable APPLICATION is undefined.
at coldfusion.runtime.CfJspPage._get(CfJspPage.java:351)
at coldfusion.runtime.CfJspPage._get(CfJspPage.java:330)
at coldfusion.runtime.CfJspPage._get(CfJspPage.java:317)
at coldfusion.runtime.CfJspPage._autoscalarize(CfJspPage.java:1798)
at coldfusion.runtime.CfJspPage._autoscalarize(CfJspPage.java:1760)
at cfinjection2ecfm814284297.runPage(Z:\MYPROJECTDIRECTORY\wheels\plugins\standalone\injection.cfm:5)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:253)
at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:737)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:573)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3696)
at cfController2ecfc530171244.runPage(Z:\MYPROJECTDIRECTORY\wheels\Controller.cfc:5)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:253)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:542)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:251)
at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:377)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:251)
at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:377)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:251)
at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:377)
at coldfusion.runtime.TemplateProxyFactory.resolveNameForDuplicate(TemplateProxyFactory.java:168)
at coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:47)
at coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:72)
at coldfusion.runtime.ProxyFactory.getProxy(ProxyFactory.java:68)
at coldfusion.runtime.TemplateProxy.duplicate(TemplateProxy.java:2495)
... 56 more