Ticket #57 (closed defect: fixed)

Opened 20 years ago

Last modified 19 years ago

getEventHandlerName() couldn't be found

Reported by: kai@… Owned by: joe.rinehart
Priority: highest Milestone: 2.0 Beta 1 Bugfixes
Version: 2.0.304 Severity: blocker
Keywords: Cc:

Description

arguments.event.getEventHandlerName() in a MG 1.1 application. In Unity it throws the following exception:

The method 'getEventHandlerName' could not be found in component \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\eventrequest\EventContext?.cfc. Check to ensure that the method is defined, and that it is spelled correctly. The error occurred in \\10.10.0.14\version\testprojectMGSB\controller\SystemController?.cfc: line 48 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\listener\Listener.cfc: line 26 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\eventrequest\MessageBroadcaster?.cfc: line 32 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\framework\ModelGlue?.cfc: line 310 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\framework\ModelGlue?.cfc: line 263 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\framework\ModelGlue?.cfc: line 251 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\ModelGlue?.cfm: line 47 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\ModelGlue?.cfm: line 1 Called from \\10.10.0.14\version\testprojectMGSB\index.cfm: line 25 46 : <cfif not getSecurityGateway().getLoginStatus()> 47 : <!--- Option 1 security model ---> 48 : <cfif not ListFindNoCase?(getModelGlue().getConfigSetting("unprotectedEventHandlers"),arguments.event.getEventHandlerName())> 49 : <cfset getSecurityGateway().logoutUser()> 50 : <cfset arguments.event.forward("LoginForm?")>

Stack trace:

Stack Trace (click to expand) at cfSystemController2ecfc398586595$funcONREQUESTSTART.runFunction(\\10.10.0.14\version\testprojectMGSB\controller\SystemController?.cfc:48) at cfListener2ecfc1221780504$funcINVOKELISTENER.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\listener\Listener.cfc:26) at cfMessageBroadcaster2ecfc918016981$funcBROADCAST.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\eventrequest\MessageBroadcaster?.cfc:32) at cfModelGlue2ecfc1149469692$funcRUNEVENTHANDLER.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\framework\ModelGlue?.cfc:310) at cfModelGlue2ecfc1149469692$funcRUNEVENTREQUEST.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\framework\ModelGlue?.cfc:263) at cfModelGlue2ecfc1149469692$funcHANDLEEVENTREQUEST.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\framework\ModelGlue?.cfc:251) at cfModelGlue2ecfm1638120443.runPage(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\ModelGlue?.cfm:47) at cfModelGlue2ecfm1233760941.runPage(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\ModelGlue?.cfm:1) at cfindex2ecfm413382957.runPage(\\10.10.0.14\version\testprojectMGSB\index.cfm:25)

coldfusion.runtime.TemplateProxy?$InvalidMethodNameException?: The method &apos;getEventHandlerName&apos; could not be found in component \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\eventrequest\EventContext?.cfc.

at coldfusion.runtime.TemplateProxy?.resolveMethod(TemplateProxy?.java:399) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:185) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:143) at coldfusion.runtime.CfJspPage?._invoke(CfJspPage?.java:1634) at cfSystemController2ecfc398586595$funcONREQUESTSTART.runFunction(\\10.10.0.14\version\testprojectMGSB\controller\SystemController?.cfc:48) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:344) at coldfusion.runtime.UDFMethod$ReturnTypeFilter?.invoke(UDFMethod.java:290) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter?.invoke(UDFMethod.java:254) at coldfusion.filter.FunctionAccessFilter?.invoke(FunctionAccessFilter?.java:56) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:207) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:366) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:195) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:154) at coldfusion.runtime.CfJspPage?._invoke(CfJspPage?.java:1594) at coldfusion.tagext.lang.InvokeTag?.doEndTag(InvokeTag?.java:345) at cfListener2ecfc1221780504$funcINVOKELISTENER.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\listener\Listener.cfc:26) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:344) at coldfusion.filter.SilentFilter?.invoke(SilentFilter?.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter?.invoke(UDFMethod.java:290) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter?.invoke(UDFMethod.java:254) at coldfusion.filter.FunctionAccessFilter?.invoke(FunctionAccessFilter?.java:56) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:207) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:366) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:195) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:154) at coldfusion.runtime.CfJspPage?._invoke(CfJspPage?.java:1594) at cfMessageBroadcaster2ecfc918016981$funcBROADCAST.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\eventrequest\MessageBroadcaster?.cfc:32) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:344) at coldfusion.filter.SilentFilter?.invoke(SilentFilter?.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter?.invoke(UDFMethod.java:290) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter?.invoke(UDFMethod.java:254) at coldfusion.filter.FunctionAccessFilter?.invoke(FunctionAccessFilter?.java:56) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:207) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:169) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:191) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:143) at coldfusion.runtime.CfJspPage?._invoke(CfJspPage?.java:1634) at cfModelGlue2ecfc1149469692$funcRUNEVENTHANDLER.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\framework\ModelGlue?.cfc:310) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:344) at coldfusion.filter.SilentFilter?.invoke(SilentFilter?.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter?.invoke(UDFMethod.java:290) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter?.invoke(UDFMethod.java:254) at coldfusion.filter.FunctionAccessFilter?.invoke(FunctionAccessFilter?.java:56) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:207) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:169) at coldfusion.runtime.CfJspPage?._invokeUDF(CfJspPage?.java:1807) at cfModelGlue2ecfc1149469692$funcRUNEVENTREQUEST.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\framework\ModelGlue?.cfc:263) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:344) at coldfusion.filter.SilentFilter?.invoke(SilentFilter?.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter?.invoke(UDFMethod.java:290) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter?.invoke(UDFMethod.java:254) at coldfusion.filter.FunctionAccessFilter?.invoke(FunctionAccessFilter?.java:56) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:207) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:169) at coldfusion.runtime.CfJspPage?._invokeUDF(CfJspPage?.java:1807) at cfModelGlue2ecfc1149469692$funcHANDLEEVENTREQUEST.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\framework\ModelGlue?.cfc:251) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:344) at coldfusion.filter.SilentFilter?.invoke(SilentFilter?.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter?.invoke(UDFMethod.java:290) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter?.invoke(UDFMethod.java:254) at coldfusion.filter.FunctionAccessFilter?.invoke(FunctionAccessFilter?.java:56) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:207) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:169) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:191) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:143) at coldfusion.runtime.CfJspPage?._invoke(CfJspPage?.java:1634) at cfModelGlue2ecfm1638120443.runPage(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\unity\ModelGlue?.cfm:47) at coldfusion.runtime.CfJspPage?.invoke(CfJspPage?.java:152) at coldfusion.tagext.lang.IncludeTag?.doStartTag(IncludeTag?.java:349) at coldfusion.runtime.CfJspPage?._emptyTag(CfJspPage?.java:1915) at cfModelGlue2ecfm1233760941.runPage(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2beta1\ModelGlue?.cfm:1) at coldfusion.runtime.CfJspPage?.invoke(CfJspPage?.java:152) at coldfusion.tagext.lang.IncludeTag?.doStartTag(IncludeTag?.java:349) at coldfusion.runtime.CfJspPage?._emptyTag(CfJspPage?.java:1915) at cfindex2ecfm413382957.runPage(\\10.10.0.14\version\testprojectMGSB\index.cfm:25) at coldfusion.runtime.CfJspPage?.invoke(CfJspPage?.java:152) at coldfusion.tagext.lang.IncludeTag?.doStartTag(IncludeTag?.java:349) at coldfusion.filter.CfincludeFilter?.invoke(CfincludeFilter?.java:65) at coldfusion.filter.ApplicationFilter?.invoke(ApplicationFilter?.java:219) at coldfusion.filter.PathFilter?.invoke(PathFilter?.java:86) at coldfusion.filter.ExceptionFilter?.invoke(ExceptionFilter?.java:69) 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:252) at jrun.servlet.ServletEngineService?.dispatch(ServletEngineService?.java:527) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192) at jrunx.scheduler.ThreadPool?$ThreadThrottle?.invokeRunnable(ThreadPool?.java:451) at jrunx.scheduler.WorkerThread?.run(WorkerThread?.java:66)

The error occured in a line of code where I compare the current event to a list of unprotectedEvents within onRequestStart of a Controller.

<cfif not ListFindNoCase?(getModelGlue().getConfigSetting("unprotectedEventHandlers"),arguments.event.getEventHandlerName())>

Change History

Changed 20 years ago by joe.rinehart

  • owner changed from somebody to joe.rinehart
  • status changed from new to assigned
  • milestone set to User Reported Issues (with full information)

Whoa, nice bug, and even better bug report! Front of the line, this one.

Changed 20 years ago by joe.rinehart

  • milestone changed from User Reported Issues (with full information) to Resolve Public Beta 1 Defects

Changed 20 years ago by joe.rinehart

  • priority changed from high to highest

Changed 20 years ago by joe.rinehart

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in [167]. Feel free to use SVN to get latest, or wait for the new build I'll be posting tonight/this weekend.

Note: See TracTickets for help on using tickets.