Skip to content

Instantly share code, notes, and snippets.

@nolandubeau
Last active December 14, 2015 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolandubeau/057b94e0df24231d0d8c to your computer and use it in GitHub Desktop.
Save nolandubeau/057b94e0df24231d0d8c to your computer and use it in GitHub Desktop.
Oops! Exception Encountered
Application Execution Exception
Error Type: InterceptorService.InvalidInterceptionState : [N/A]
Error Messages: The interception state sent in to process is not valid: custom_beforeHeadEnd
Valid states are [afterConfigurationLoad, afterAspectsLoad, preReinit, onException, onRequestCapture, onInvalidEvent, afterHandlerCreation, afterInstanceCreation, afterPluginCreation, applicationEnd, sessionStart, sessionEnd, preProcess, preEvent, postEvent, postProcess, preProxyResults, preLayout, preRender, postRender, preViewRender, postViewRender, preLayoutRender, postLayoutRender, preModuleLoad, postModuleLoad, preModuleUnload, postModuleUnload, beforeDebuggerPanel, afterDebuggerPanel, ORMPostNew, ORMPreLoad, ORMPostLoad, ORMPostDelete, ORMPreDelete, ORMPreUpdate, ORMPostUpdate, ORMPreInsert, ORMPostInsert, ORMPreSave, ORMPostSave, afterCacheElementInsert, afterCacheElementRemoved, afterCacheElementExpired, afterCacheElementUpdated, afterCacheClearAll, afterCacheRegistration, afterCacheRemoval, beforeCacheRemoval, beforeCacheReplacement, afterCacheFactoryConfiguration, beforeCacheFactoryShutdown, afterCacheFactoryShutdown, beforeCacheShutdown, afterCacheShutdown, afterInjectorConfiguration, beforeInstanceCreation, afterInstanceInitialized, beforeInstanceInspection, afterInstanceInspection, beforeInjectorShutdown, afterInjectorShutdown, beforeInstanceAutowire, afterInstanceAutowire]
Tag Context:
ID: CFTHROW
LINE: 164
Template: /Library/WebServer/Documents/guardly-platform/common/frameworks/coldbox/system/core/util/Util.cfc
ID: CF_TEMPLATEPROXY
LINE: 133
Template: /Library/WebServer/Documents/guardly-platform/common/frameworks/coldbox/system/web/services/InterceptorService.cfc
ID: CF_TEMPLATEPROXY
LINE: 223
Template: /Library/WebServer/Documents/guardly-platform/common/frameworks/coldbox/system/FrameworkSupertype.cfc
ID: CF_UDFMETHOD
LINE: 48
Template: /Library/WebServer/Documents/newrelic/plugins/NewRelic.cfc
ID: CF_TEMPLATEPROXY
LINE: 18
Template: /Library/WebServer/Documents/newrelic/layouts/Layout.Main.cfm
ID: CFINCLUDE
LINE: 338
Template: /Library/WebServer/Documents/guardly-platform/common/frameworks/coldbox/system/plugins/Renderer.cfc
ID: CF_UDFMETHOD
LINE: 475
Template: /Library/WebServer/Documents/guardly-platform/common/frameworks/coldbox/system/plugins/Renderer.cfc
ID: CF_TEMPLATEPROXY
LINE: 256
Template: /Library/WebServer/Documents/guardly-platform/common/frameworks/coldbox/system/Coldbox.cfc
ID: CF_UDFMETHOD
LINE: 44
Template: /Library/WebServer/Documents/newrelic/Application.cfc
Framework Snapshot
Current Event: general.index
Current Layout: Layout.Main.cfm (Module: )
Current View: home
Bug Date: 03/13/2013 10:30:08 AM
Coldfusion ID: CFID=17305 ; CFToken=70759995 ; JSessionID=F249569A9C5F67FF84FD2E6ADAAF2FC5_17305_70759995
Template Path : /Library/WebServer/Documents/newrelic/index.cfm
Path Info :
Host & Server: 127.0.0.1 Nolan-Dubeau.local
Query String: fwreinit=1
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.160 Safari/537.22
Remote Address: 127.0.0.1
Form variables:
Session Storage:
Cookies:
CFID: 17305
CFTOKEN: 70759995
COLDBOX_DEBUGMODE_237C0AEA01162C63F0ECACAEEF213611: true
Stack Trace:
coldfusion.runtime.CustomException: The interception state sent in to process is not valid: custom_beforeHeadEnd
at coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:142)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722)
at cfUtil2ecfc1417419957$funcTHROWIT.runFunction(/Library/WebServer/Documents/guardly-platform/common/frameworks/coldbox/system/core/util/Util.cfc:164)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
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 cfInterceptorService2ecfc1524730667$funcPROCESSSTATE.runFunction(/Library/WebServer/Documents/guardly-platform/common/frameworks/coldbox/system/web/services/InterceptorService.cfc:133)
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:517)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:496)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:355)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2301)
at cfFrameworkSupertype2ecfc1162078573$funcANNOUNCEINTERCEPTION.runFunction(/Library/WebServer/Documents/guardly-platform/common/frameworks/coldbox/system/FrameworkSupertype.cfc:223)
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:517)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2547)
at cfNewRelic2ecfc522104688$funcEVENT.runFunction(/Library/WebServer/Documents/newrelic/plugins/NewRelic.cfc:48)
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 cfLayout2eMain2ecfm2113651320.runPage(/Library/WebServer/Documents/newrelic/layouts/Layout.Main.cfm:18)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722)
at cfRenderer2ecfc725439526$funcRENDERVIEWCOMPOSITE.runFunction(/Library/WebServer/Documents/guardly-platform/common/frameworks/coldbox/system/plugins/Renderer.cfc:338)
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.CfJspPage._invokeUDF(CfJspPage.java:2582)
at cfRenderer2ecfc725439526$funcRENDERLAYOUT.runFunction(/Library/WebServer/Documents/guardly-platform/common/frameworks/coldbox/system/plugins/Renderer.cfc:475)
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:517)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:496)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:355)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2301)
at cfColdbox2ecfc1274800023$funcPROCESSCOLDBOXREQUEST.runFunction(/Library/WebServer/Documents/guardly-platform/common/frameworks/coldbox/system/Coldbox.cfc:256)
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 cfApplication2ecfc928784758$funcONREQUESTSTART.runFunction(/Library/WebServer/Documents/newrelic/Application.cfc:44)
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.LicenseFilter.invoke(LicenseFilter.java:27)
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 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)
Extra Information Dump
[N/A]
component extends="coldbox.system.interceptor"
{
function preProcess(event,interceptData){
var rc = event.getCollection();
}
//------------------------------------------------------------------------------------------------
// Renderer helper injection
//------------------------------------------------------------------------------------------------
public void function afterPluginCreation(event,interceptData){
var prc = event.getCollection(private=true);
// check for renderer
if( isInstanceOf(arguments.interceptData.oPlugin,"coldbox.system.plugins.Renderer") ){
// decorate it
arguments.interceptData.oPlugin.cr = getMyPlugin(plugin="NewRelic");
arguments.interceptData.oPlugin.$cbInject = variables.$cbInject;
arguments.interceptData.oPlugin.$cbInject();
}
}
//------------------------------------------------------------------------------------------------
// private inject
//------------------------------------------------------------------------------------------------
function $cbinject(){
variables.cr = this.cr;
}
//------------------------------------------------------------------------------------------------
//custom beforeHeadEnd
//------------------------------------------------------------------------------------------------
public void function custom_beforeHeadEnd(event, interceptData) {
var testString = "";
log.debug('custom_beforeHeadEnd interception point');
savecontent variable="testString" {
writeOutput("<!-- We have been added from an interceptor before the HEAD ends -->");
}
appendToBuffer( testString );
}
//------------------------------------------------------------------------------------------------
//custom beforeBodyEnd
//------------------------------------------------------------------------------------------------
public void function custom_beforeBodyEnd(event, interceptData) {
var testString = "";
log.debug('custom_beforeBodyEnd interception point');
savecontent variable="testString" {
writeOutput("<!-- We have been added from an interceptor before the BODY ends -->");
}
appendToBuffer( testString );
}
}
<!-----------------------------------------------------------------------------------------
CREATED BY NOLAN DUBEAU 03/18/2012 10:00:00 AM
---------------------------------------------------------------------------------------
DESCRIPTION:
New Relic Plugin
---------------------------------------------------------------------------------------
AUTHOR: Nolan Dubeau
www.nolandubeau.com
nolandubeau@gmail.com
Copyright (c) 2010 Nolan Dubeau. All Rights Reserved.
---------------------------------------------------------------------------------------
REVISION HISTORY:
- None
---------------------------------------------------------------------------------------
LICSENES
This software is bound to the Apache License, Version 2.0.
--------------------------------------------------------------------------------------->
<cfcomponent name="NewRelic" extends="coldbox.system.plugin" output="false" cache="true" hint="New Relic Plugin">
<!------------------------------------------- CONSTRUCTOR ------------------------------------------->
<cffunction name="init" access="public" returntype="NewRelic" output="false">
<cfargument name="controller" type="any" required="true">
<cfscript>
super.Init(arguments.controller);
setpluginName("NewRelic");
setpluginVersion("1.0");
setpluginAuthor("Nolan Dubeau");
setpluginDescription("New Relic Plugin");
variables.instance = StructNew();
//Return instance
return this;
</cfscript>
</cffunction>
<!------------------------------------------- PUBLIC ------------------------------------------->
<cffunction name="event" output="true" access="public" returntype="any">
<cfargument name="state" required="true" type="string"/>
<cfargument name="data" type="struct" default="#structNew()#"/>
<cfscript>
//announce interception
announceInterception(arguments.state ,arguments.data);
</cfscript>
</cffunction>
</cfcomponent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment