2012-02-27 30 views
5

當我在本地使用以下本地進行開發時,它在大多數情況下都能正常工作,但每隔一段時間,我們都會使用此代碼獲得以下錯誤:找不到存在的ColdFusion組件

代碼

CreateObject("component", "model.mThing.Thing"); 

現在model映射在Application.cfc創建這樣model.mThing.Thing路徑應始終指向一個真實存在的CFC和WW不應該得到下面的錯誤。所以這裏有什麼問題?

使用fusebox和coldspring的環境是CF8,而且這個錯誤只是在我們開始使用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)                                                      
       at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)                                                    
       at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)                                                     
       at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)                                                        
       at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)                                                          
       at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471)                                                         
       at cfThingFactory2ecfc633415381$funcGETthings.runFunction(Z:\domains\x.y.com\approot\_Model\mThing\ThingFactory.cfc:66)                                           
       at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)                                                          
       at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)                                                      
       at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)                                                    
       at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)                                                     
       at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)                                                        
       at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:463)                                                          
       at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:453)                                                        
       at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:320)                                                        
       at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2222)                                                          
       at cfjs2ethings2dphotos2ecfm1184443389._factor5(Z:\domains\x.y.com\approot\parsed\js.things-photos.cfm:146)                                              
       at cfjs2ethings2dphotos2ecfm1184443389._factor12(Z:\domains\x.y.com\approot\parsed\js.things-photos.cfm:136)                                              
       at cfjs2ethings2dphotos2ecfm1184443389._factor15(Z:\domains\x.y.com\approot\parsed\js.things-photos.cfm:5)                                              
       at cfjs2ethings2dphotos2ecfm1184443389.runPage(Z:\domains\x.y.com\approot\parsed\js.things-photos.cfm:1)                                               
       at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)                                                          
       at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)                                                        
       at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)                                                         
       at cffusebox52ecfm1103700220.runPage(Z:\domains\x.y.com\coreroot\fusebox5\fusebox5.cfm:188)                                                  
       at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)                                                          
       at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)                                                        
       at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)                                                         
       at cffusebox42eruntime2ecfmx2ecfm2039615664.runPage(Z:\domains\x.y.com\coreroot\fusebox5\fusebox4.runtime.cfmx.cfm:1)                                            
       at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)                                                          
       at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)                                                        
       at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)                                                         
       at cfindex2ecfm2041455050.runPage(Z:\domains\x.y.com\wwwroot\index.cfm:4)                                                       
       at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)                                                          
       at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)                                                        
       at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)                                                         
       at cfApplication2ecfc594211230$funcONREQUEST.runFunction(Z:\domains\x.y.com\wwwroot\Application.cfc:112)                                               
       at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)                                                          
       at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)                                                      
       at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)                                                    
       at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)                                                     
       at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)                                                        
       at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)                                                          
       at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448)                                                        
       at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308)                                                        
       at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:74)                                                        
       at coldfusion.runtime.AppEventInvoker.onRequest(AppEventInvoker.java:243)                                                       
       at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:269)                                                       
       at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)                                                     
       at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)                                                       
       at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)                                                          
       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.CfmServlet.service(CfmServlet.java:175)                                                            
       at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)                                                      
       at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)                                                           
       at com.intergral.fusionreactor.filter.FusionReactorFilter.b(FusionReactorFilter.java:376)                                                   
       at com.intergral.fusionreactor.filter.FusionReactorFilter.c(FusionReactorFilter.java:254)                                                   
       at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(FusionReactorFilter.java:164)                                                 
       at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)                                                           
       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)                                                           
+0

什麼模式,你的保險絲盒的應用程序設置爲?生產? – 2012-02-27 20:18:25

+0

是生產,但我不認爲這很重要。 – ztatic 2012-02-27 20:39:06

回答

2

最近我有同樣的問題,不同的上下文。

原來的管理員設置爲生產之間的不同。

啓用每個應用程序設置 選中時,每個應用程序設置啓用服務器範圍內。如果未選中,則每個應用設置都會在整個服務器範圍內停用。

如果沒有設置應用程序不能設置特定應用的映射。

+0

設置在生產和本地,所以這不是問題,很好猜你! – ztatic 2012-02-27 23:54:39

+1

在id不起作用的服務器上,轉儲此作用域以確保映射已設置。另外請確保管理員 – 2012-02-28 02:18:08

+0

中沒有映射設置中存在衝突,服務器管理員中沒有設置映射,我正在考慮嘗試。 – ztatic 2012-02-28 17:30:25

2

This blog post提到類似的問題,以我們的,我們已經設置在CF服務器管理員的映射,我們將看看是否有幫助。