Ticket #86 (closed defect: fixed)
configuration setting "self" issue
| Reported by: | kai@… | Owned by: | joe.rinehart |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0 Beta 1 Bugfixes |
| Version: | 2.0.304 | Severity: | major |
| Keywords: | Cc: |
Description
Hi Joe,
I'm using <setting name="self" value="&appPath;/index.cfm" /> in my MG 1.x applications' configurations pretty extensively, &appPath; is just an XML entity to allow managing the config file more easily.
However, using this in MG 2 (just grabbed the latest version from the repository), gives me an error:
Model-Glue: Config setting "self" is not defined. The error occurred in \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\framework\ModelGlue?.cfc: line 152 Called from \\10.10.0.14\version\testprojectMGSB\controller\SystemController?.cfc: line 70 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\listener\Listener.cfc: line 26 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\eventrequest\MessageBroadcaster?.cfc: line 32 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\framework\ModelGlue?.cfc: line 330 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\framework\ModelGlue?.cfc: line 283 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\framework\ModelGlue?.cfc: line 271 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\ModelGlue?.cfm: line 54 Called from \\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\ModelGlue?.cfm: line 1 Called from \\10.10.0.14\version\testprojectMGSB\index.cfm: line 25 150 : 151 : <cfif not structKeyExists(variables._config, arguments.name)> 152 : <cfthrow message="Model-Glue: Config setting ""#arguments.name#"" is not defined." /> 153 : </cfif> 154 :
Stack Trace:
at cfModelGlue2ecfc1075011597$funcGETCONFIGSETTING.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\framework\ModelGlue?.cfc:152) at cfSystemController2ecfc398586595$funcONREQUESTSTART.runFunction(\\10.10.0.14\version\testprojectMGSB\controller\SystemController?.cfc:70) at cfListener2ecfc1440630249$funcINVOKELISTENER.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\listener\Listener.cfc:26) at cfMessageBroadcaster2ecfc2041454596$funcBROADCAST.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\eventrequest\MessageBroadcaster?.cfc:32) at cfModelGlue2ecfc1075011597$funcRUNEVENTHANDLER.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\framework\ModelGlue?.cfc:330) at cfModelGlue2ecfc1075011597$funcRUNEVENTREQUEST.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\framework\ModelGlue?.cfc:283) at cfModelGlue2ecfc1075011597$funcHANDLEEVENTREQUEST.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\framework\ModelGlue?.cfc:271) at cfModelGlue2ecfm1097426410.runPage(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\ModelGlue?.cfm:54) at cfModelGlue2ecfm1130049029.runPage(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\ModelGlue?.cfm:1) at cfindex2ecfm413382957.runPage(\\10.10.0.14\version\testprojectMGSB\index.cfm:25)
coldfusion.runtime.CustomException?: Model-Glue: Config setting "self" is not defined.
at coldfusion.tagext.lang.ThrowTag?.doStartTag(ThrowTag?.java:124) at coldfusion.runtime.CfJspPage?._emptyTag(CfJspPage?.java:1915) at cfModelGlue2ecfc1075011597$funcGETCONFIGSETTING.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\framework\ModelGlue?.cfc:152) 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:194) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:146) at coldfusion.runtime.CfJspPage?._invoke(CfJspPage?.java:1634) at cfSystemController2ecfc398586595$funcONREQUESTSTART.runFunction(\\10.10.0.14\version\testprojectMGSB\controller\SystemController?.cfc:70) 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:198) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:157) at coldfusion.runtime.CfJspPage?._invoke(CfJspPage?.java:1594) at coldfusion.tagext.lang.InvokeTag?.doEndTag(InvokeTag?.java:345) at cfListener2ecfc1440630249$funcINVOKELISTENER.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\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:198) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:157) at coldfusion.runtime.CfJspPage?._invoke(CfJspPage?.java:1594) at cfMessageBroadcaster2ecfc2041454596$funcBROADCAST.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\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:194) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:146) at coldfusion.runtime.CfJspPage?._invoke(CfJspPage?.java:1634) at cfModelGlue2ecfc1075011597$funcRUNEVENTHANDLER.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\framework\ModelGlue?.cfc:330) 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 cfModelGlue2ecfc1075011597$funcRUNEVENTREQUEST.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\framework\ModelGlue?.cfc:283) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:344) at coldfusion.filter.SilentFilter?.invoke(SilentFilter?.java:47) 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 cfModelGlue2ecfc1075011597$funcHANDLEEVENTREQUEST.runFunction(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\framework\ModelGlue?.cfc:271) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:344) at coldfusion.filter.SilentFilter?.invoke(SilentFilter?.java:47) 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:194) at coldfusion.runtime.TemplateProxy?.invoke(TemplateProxy?.java:146) at coldfusion.runtime.CfJspPage?._invoke(CfJspPage?.java:1634) at cfModelGlue2ecfm1097426410.runPage(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\unity\ModelGlue?.cfm:54) 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 cfModelGlue2ecfm1130049029.runPage(\\10.10.5.1\files\wwwroot\cf7Dev\ModelGlue?2_06072006\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)
Cheers, Kai
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)