Please excuse the somewhat stream of consciousness of this post:
I updated CS today (why I did not keep a pristine copy of the version I had that was working, I don't know) and suddenly my app has come to a screeching halt. I'm using MG and Reactor (which I will NOT update - especially after the recent changes to naming conventions :) Next project.) This is the error I get trying to just load the main page:
The value returned from function getObjectFactory() is not of type reactor.core.objectFactory.
This is called in Reactor's reactorFactory.cfc, which is being called from DefaultXmlBeanFactory.cfc's constructBean() method. Looking deep into the bowels of the code (eww) I see that it's breaking where CS is using the factory-method to create some other beans (I'm not sure which one, but I create all my gateways this way, and it was working before the update.) Specifically, it's the cfinvoke at line 412.
I added in some logging and this is what I get:
Beanfactory: Calling createGateway on ReactorFactory for assetStatusGateway
(That's: Beanfactory: Calling #beanDef.getFactoryMethod()# on #factoryBeanDef.getBeanID()# for #beanDef.getBeanID()#)
This seems correct, as that's what's supposed to happen, but when I place another tracer in reactorFactory's setObjectFactory() method, which should be called when reactorFactory.cfc's init() method is run, I get nothing, meaning it's not being init'ed! This is what the relevant part of my
Beans.xml.cfm file looks like:
<!-- Factories -->
<bean
id="ReactorFactory"
class="Reactor.reactorFactory">
<constructor-arg name="configuration">
<ref bean="ReactorConfig" />
</constructor-arg>
</bean>
<!-- Config Beans -->
<bean
id="ReactorConfig"
class="
reactor.config.config">
<constructor-arg name="pathToConfigXml">
<value>/config/Reactor.xml.cfm</value>
</constructor-arg>
<property name="project">
<value>ProjectName</value>
</property>
<property name="dsn">
<value>DSN</value>
</property>
<property name="type">
<value>mysql</value>
</property>
<property name="mapping">
<value>/model/data</value>
</property>
<property name="mode">
<value>development</value>
</property>
</bean>
<!-- Gateways -->
<bean
id="assetStatusGateway"
factory-bean="reactorFactory"
factory-method="createGateway">
<constructor-arg name="objectAlias">
<value>AssetStatus</value>
</constructor-arg>
</bean>
Can anybody please help me out here? I apologize if this has been mentioned on the list already, I haven't had time to keep up over the past two weeks or so, and I know there was some talk of factory-bean/factory-method changes.
Thanks!
-- Ken
--
Quidquid latine dictum sit, altum sonatur.
- Whatever is said in Latin sounds profound.
- [coldspring-dev] Latest version breaks Reactor? Ken Dunnington
- [coldspring-dev] Latest version breaks Reactor? Peter J. Farrell
- [coldspring-dev] Latest version breaks Reactor? Sean Corfield
- [coldspring-dev] Latest version breaks Reactor? Ken Dunnington
- [coldspring-dev] Latest version breaks Reactor? Ken Dunnington
- [coldspring-dev] Latest version breaks Reactor? Simeon Bateman
- [coldspring-dev] Latest version breaks Reactor? Jared Rypka-Hauer
- [coldspring-dev] Latest version breaks Reactor? Ken Dunnington
- [coldspring-dev] Latest version breaks Reactor? Chris Scott
- [coldspring-dev] Latest version breaks Reactor? Sean Corfield
- [coldspring-dev] Latest version breaks Reactor? Tom McNeer
