House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  Model Glue

Model-Glue: Unity - Reactor & Coldspring Error

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
J K
12/13/2006 02:41 PM

Hello everyone,    I recently downloaded and set up MG:U, Reactor, and Coldspring. I got brave today and decided to try and figure out how to use Reactor in an app. The app worked just fine before I implemented Reactor. It's just a simple call to the database to retrieve all users from the User table and display them in a tabular fashion.I keep getting an error that when I try to create a ReactorFactory object.I am creating the factory in the default Controller.cfc. Here is the constructor code. <!--- Controllers are in the application scope:  Put any application startup code here. --->         <cfset variables.Reactor = CreateObject("Component", "reactor.reactorFactory").init(expandPath("./config/Reactor.xml")) />         <cfset variables.UserGateway = Reactor.createGateway("users") />         <cfreturn this />    </cffunction>When the Reactor Factory is being created, it throws this error.             Element BEANFACTORY is undefined in VARIABLES.               The error occurred in C:\CFusionMX7\wwwroot\reactor\reactorFactory.cfc: line 122                                  Called from C:\CFusionMX7\wwwroot\reactor\reactorFactory.cfc: line 16                                    Called from C:\CFusionMX7\wwwroot\translator\controller\Controller.cfc: line 9                                    Called from C:\CFusionMX7\wwwroot\ModelGlue\unity\loader\XmlConfigurationLoader.cfc: line 195Called from C:\CFusionMX7\wwwroot\ModelGlue\unity\loader\XmlConfigurationLoader.cfc: line 44                                    Called from C:\CFusionMX7\wwwroot\ModelGlue\unity\loader\FrameworkLoader.cfc: line 60                                    Called from C:\CFusionMX7\wwwroot\ModelGlue\unity\ModelGlue.cfm: line 37                                    Called from C:\CFusionMX7\wwwroot\translator\index.cfm: line 33120 :     <cfset variables.BeanFactory = arguments.beanFactory />121 :    </cffunction>122 :   <cffunction name="getBeanFactory" access="private" output="false" returntype="coldspring.beans.beanFactory">123 :       <cfreturn variables.BeanFactory />124 :   </cffunction>It seems that getBeanFactory is called in the contructor of reactorFactory.cfc long before setBeanFactory() is. Am I simply creating this objectdifferent than I'm supposed to be? Or is this a known problem with the framework? I'm really quite confused at this.Any help would be greatly appreciated. Thanks.-Morgan _________________________________________________________________ Search from any Web page with powerful protection. Get the FREE Windows Live Toolbar Today! http://get.live.com/toolbar/overview

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
w.davidson
05/11/2007 11:49 AM

----- Excess quoted text cut - see Original Post for more -----              > Element BEANFACTORY is undefined in VARIABLES.          >       The error occurred in C:\CFusionMX7\wwwroot\reactor\reactorFactory. > cfc: line 122          >                 >           Called from C:\CFusionMX7\wwwroot\reactor\reactorFactory.cfc: > line 16          >                   >           Called from > C:\CFusionMX7\wwwroot\translator\controller\Controller.cfc: line 9          >                   >           Called from > C:\CFusionMX7\wwwroot\ModelGlue\unity\loader\XmlConfigurationLoader. > cfc: line 195Called from > C:\CFusionMX7\wwwroot\ModelGlue\unity\loader\XmlConfigurationLoader. > cfc: line 44          >                   >           Called from > C:\CFusionMX7\wwwroot\ModelGlue\unity\loader\FrameworkLoader.cfc: line > 60          >                   >           Called from C:\CFusionMX7\wwwroot\ModelGlue\unity\ModelGlue.cfm: > line 37          >                   ----- Excess quoted text cut - see Original Post for more ----- com/toolbar/overview

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
w.davidson
05/11/2007 11:51 AM

Did you find the answer to this problem.  I am having the same problem.   I am assuming reactor is dependent upon coldsprings being installed.  It has been installed in my webroot. 11:00:43.043 - Expression Exception - in C:\CFusionMX7\wwwroot\reactor\reactorFactory.cfc : line 122       Element BEANFACTORY is undefined in VARIABLES. I am simply trying to run the scratch example.


<< Previous Thread Today's Threads Next Thread >>

Search model-glue

May 18, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference