当我在本地使用以下内容进行开发时,它可以工作,当它在生产中时它大部分时间都可以工作,但是每次使用这段代码我们都会得到以下错误:
码
CreateObject("component", "model.mThing.Thing");
Run Code Online (Sandbox Code Playgroud)
现在model映射是在路径中创建的,Application.cfc因此model.mThing.Thing路径应始终指向存在的cfc,并且ww应该永远不会出现以下错误.那么这里有什么问题?
环境是CF8使用fusebox和coldspring,这个错误只在我们开始使用coldspring存储我们的工厂cfcs后才开始发生,这些执行CreateObject上面的代码会导致下面的错误.
错误:
"Error","jrpp-839","02/xx/12","xx:yy:zz","appName","Could not find the ColdFusion Component or Interface model.mThing.Thing. Ensure that the name is correct and that the component or interface exists. The specific sequence of files included or processed is: Z:\domains\x.y.com\root\index.cfm, line: 11 "
coldfusion.runtime.CfJspPage$NoSuchTemplateException: Could not find the ColdFusion Component or Interface model.mThing.Thing.
at coldfusion.runtime.TemplateProxyFactory.getResolvedFile(TemplateProxyFactory.java:1173)
at coldfusion.runtime.TemplateProxyFactory.getTemplateFileHelper(TemplateProxyFactory.java:1346)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:1289)
at coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:38)
at coldfusion.runtime.ProxyFactory.getProxy(ProxyFactory.java:65)
at coldfusion.runtime.CFPage.createObjectProxy(CFPage.java:4707)
at coldfusion.runtime.CFPage.CreateObject(CFPage.java:4552)
at cfThingFactory2ecfc633415381$funcCREATEthings.runFunction(Z:\domains\x.y.com\approot\_Model\mThing\ThingFactory.cfc:11)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360) …Run Code Online (Sandbox Code Playgroud)