Helper Function Error: The routine has been declared twice in different templates

228 views
Skip to first unread message

Dustin Martin

unread,
Feb 13, 2012, 9:13:47 AM2/13/12
to col...@googlegroups.com
Hey guys, I'm seeing sporadic errors telling me that one of the functions in my applicationhelper.cfm has been declared more than once. I've double checked and the function has only been declared once in the entire application. To make sure there was nothing funky with my function I completely removed it and got the same error just with a different function in my helper. It's almost like the application helper is sometimes being included twice sometimes. Any ideas?

Thanks,
Dustin

Error: 
The routine isBackhaulAccount has been declared twice in different templates.

Stack Trace:
coldfusion.runtime.CfJspPage$DynamicDuplicateFunctionDefinitionException: Routines cannot be declared more than once. at coldfusion.runtime.CfJspPage.registerUDF(CfJspPage.java:2517) at cfApplicationHelper2ecfm2070386888.registerUDFs(E:\WebRoot\Production\CF\projects\Backhauls2\includes\helpers\ApplicationHelper.cfm) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:397) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfRenderer2ecfc1460685596$funcRENDERLAYOUT.runFunction(E:\WebRoot\Production\CF\projects\Backhauls2\frameworks\coldbox\3_1\system\plugins\Renderer.cfc:384) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfColdbox2ecfc1686952617$funcPROCESSCOLDBOXREQUEST.runFunction(E:\WebRoot\Production\CF\projects\Backhauls2\frameworks\coldbox\3_1\system\Coldbox.cfc:261) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2582) at cfColdbox2ecfc1686952617$funcONREQUESTSTART.runFunction(E:\WebRoot\Production\CF\projects\Backhauls2\frameworks\coldbox\3_1\system\Coldbox.cfc:353) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfApplication2ecfc612734261$funcONREQUESTSTART.runFunction(E:\WebRoot\Production\CF\projects\Backhauls2\Application.cfc:85) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337) at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:88) at coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:258) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:349) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) 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:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at com.intergral.fusionreactor.filter.FusionReactorFilter.b(FusionReactorFilter.java:376) at com.intergral.fusionreactor.filter.FusionReactorFilter.c(FusionReactorFilter.java:254) at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(FusionReactorFilter.java:164) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) 

Dustin Martin

unread,
Feb 14, 2012, 9:16:25 AM2/14/12
to col...@googlegroups.com
Hey guys, any ideas on this? I'm at a loss for what could be causing this. 

Thanks,
Dustin
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To post to this group, send email to col...@googlegroups.com
To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
For more options, visit this group at http://groups-beta.google.com/group/coldbox
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org

Brett

unread,
Feb 14, 2012, 10:14:57 AM2/14/12
to ColdBox Platform
I've run into this before but I don't recall offhand what was the
exact issue was and it would of been on 3.5 so possibly not related.

Do you still get the error if you render the request without the
layout?


On Feb 14, 9:16 am, Dustin Martin <d...@dustinmartin.net> wrote:
> Hey guys, any ideas on this? I'm at a loss for what could be causing this.
>
> Thanks,
> Dustin
>
> On Feb 13, 2012, at 9:13 AM, Dustin Martin <d...@dustinmartin.net> wrote:
>
> Hey guys, I'm seeing sporadic errors telling me that one of the functions in my applicationhelper.cfm has been declared more than once. I've double checked and the function has only been declared once in the entire application. To make sure there was nothing funky with my function I completely removed it and got the same error just with a different function in my helper. It's almost like the application helper is sometimes being included twice sometimes. Any ideas?
>
> Thanks,
> Dustin
>
> Error:
> The routine isBackhaulAccount has been declared twice in different templates.
>
> Stack Trace:
> coldfusion.runtime.CfJspPage$DynamicDuplicateFunctionDefinitionException: Routines cannot be declared more than once. at coldfusion.runtime.CfJspPage.registerUDF(CfJspPage.java:2517) at cfApplicationHelper2ecfm2070386888.registerUDFs(E:\WebRoot\Production\CF\pr ojects\Backhauls2\includes\helpers\ApplicationHelper.cfm) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:397) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfRenderer2ecfc1460685596$funcRENDERLAYOUT.runFunction(E:\WebRoot\Productio n\CF\projects\Backhauls2\frameworks\coldbox\3_1\system\plugins\Renderer.cfc :384) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java :368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfColdbox2ecfc1686952617$funcPROCESSCOLDBOXREQUEST.runFunction(E:\WebRoot\P roduction\CF\projects\Backhauls2\frameworks\coldbox\3_1\system\Coldbox.cfc: 261) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java :368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2582) at cfColdbox2ecfc1686952617$funcONREQUESTSTART.runFunction(E:\WebRoot\Producti on\CF\projects\Backhauls2\frameworks\coldbox\3_1\system\Coldbox.cfc:353) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java :368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360) at cfApplication2ecfc612734261$funcONREQUESTSTART.runFunction(E:\WebRoot\Produ ction\CF\projects\Backhauls2\Application.cfc:85) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java :368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337) at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:88) at coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:258) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:349) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenc eFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) 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:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at com.intergral.fusionreactor.filter.FusionReactorFilter.b(FusionReactorFilte r.java:376) at com.intergral.fusionreactor.filter.FusionReactorFilter.c(FusionReactorFilte r.java:254) at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(FusionReact orFilter.java:164) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServlet Filter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203 ) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:42 8) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Dustin Martin

unread,
Feb 14, 2012, 10:43:09 AM2/14/12
to col...@googlegroups.com
Yeah, I'm still on 3.1 though I've considered moving to 3.5 just to see if this was fixed. Is 3.5 stable enough for production use?

This application is in production and the error happens sporadically on a variety of different events so disabling the layout isn't really an option unfortunately.

Aaron Greenlee

unread,
Feb 14, 2012, 2:17:43 PM2/14/12
to col...@googlegroups.com
Dustin, I'm running a production site on 3.5 right from the bleeding branch.

Luis Majano

unread,
Feb 14, 2012, 4:27:28 PM2/14/12
to col...@googlegroups.com
Just so everybody knows, 3.5 will go final next week. Finalizing the docs.

On Tuesday, February 14, 2012 at 11:17 AM, Aaron Greenlee wrote:

Dustin, I'm running a production site on 3.5 right from the bleeding branch.

--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To post to this group, send email to col...@googlegroups.com
To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages