http://ray.camdenfamily.com/index.cfm/2005/9/28/Two-Nice-Fixes-in-ColdFusion-701
On 4/10/06, Aaron Rouse <[EMAIL PROTECTED]> wrote:
I finally have had a chance to sit down and try to learn how to use the Application.cfc and thought all was working well since the test site was functioning just fine without any errors. However when I added the onError method I soon discovered that even though things were working fine from the user's perspective that an error was being thrown anytime my redirect code happened during a login. The error is not all that descriptive to me, but posted below just in case I missed something within it. I tried just adding a new line above 140 that does a cfoutput on the string for the cflocation and then an abort, this outputs the correct string but throws(displays on page if no onError present, emails and displays no error if onError is present) the same error but instead of saying on cflocation it says on cfabort.
Here is a link to the CFC code:
http://www.coldfugitive.com/paste/?post=1892
Here is the error:An unexpected error occurred.
The following information has been emailed to technical support:
Error Event: onRequestStart
Error details:
struct Detail An exception occurred when invoking a event handler method from Application.cfc The method name is: onRequestStart. Message Event Handler Exception. RootCause
struct Message [empty string] StackTrace coldfusion.runtime.AbortException at coldfusion.tagext.net.LocationTag.doEndTag(LocationTag.java:161) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1916) at cfApplication2ecfc2007848709$funcONREQUESTSTART.runFunction(C:\Inetpub\wwwroot\PharmaFrontiers\Application.cfc:140) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:348) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:258) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:56) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:211) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:173) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:192) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:145) at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:54) at coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:96) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:195) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115) at coldfusion.CfmServlet.service(CfmServlet.java:107) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) TagContext
array 1
struct COLUMN 0 ID CFLOCATION LINE 140 RAW_TRACE at cfApplication2ecfc2007848709$funcONREQUESTSTART.runFunction(C:\Inetpub\wwwroot\PharmaFrontiers\Application.cfc:140) TEMPLATE C:\Inetpub\wwwroot\PharmaFrontiers\Application.cfc TYPE CFML Type coldfusion.runtime.AbortException StackTrace coldfusion.runtime.EventHandlerException: Event Handler Exception. at coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:102) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:195) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115) at coldfusion.CfmServlet.service(CfmServlet.java:107) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) TagContext
array [empty] Type _expression_ name onRequestStart
--
Aaron Rouse
http://www.happyhacker.com/ ----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
