These exceptions for Reactor should be gone now, FYI.  They were harmless, but they seemed to impact performance. 

 

The ones from CS I can’t help you with.

 

Doug

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sam Clement
Sent: Friday, February 03, 2006 11:21 AM
To: [email protected]
Subject: Reactor For CF Reactor, Coldspring, MG

 

Though it might seem a bit overkill I'm using coldspring to configure and instatiate Reactor:

<bean id="reactorFactory" class="reactor.reactorFactory">
        <constructor-arg name="pathToConfigXml">
            <value>myPath\to\reactor.xml</value>
        </constructor-arg>
</bean>

I then use a setter to make the reactorFactory available in my MG controllers and create Records and Gateways:

<cffunction name="setReactorFactory" returntype="void" access="public" output="false">
    <cfargument name="factory" type="reactor.reactorFactory " required="true" />
    <cfset variables.reactorFactory = arguments.factory />
    <cfset variables.tableGateway = variables.reactorFactory.createGateway("table") />
    <cfset variables.tableRecord = variables.reactor.createRecord("table") />
</cffunction>

This works fine and is functional.  However, I am noticing some exceptions in debugging even though the application runs fine:

12:09:42.042 - coldspring.beanDefException - in D:\Webroot\coldspring\beans\BeanDefinition.cfc : line 128
12:09:42.042 - _expression_ Exception - in D:\Webroot\Reactor\config\config.cfc : line 72

        An error occured while Parsing an XML document.
       

12:09:42.042 - _expression_ Exception - in D:\Webroot\Reactor\config\config.cfc : line 72

        An error occured while Parsing an XML document.
       

12:09:42.042 - _expression_ Exception - in D:\Webroot\Reactor\config\config.cfc : line 72

        An error occured while Parsing an XML document.
       

12:09:42.042 - _expression_ Exception - in D:\Webroot\Reactor\config\config.cfc : line 72

        An error occured while Parsing an XML document.
       

12:09:42.042 - _expression_ Exception - in D:\Webroot\Reactor\config\config.cfc : line 72

        An error occured while Parsing an XML document.
       

12:09:42.042 - _expression_ Exception - in D:\Webroot\Reactor\config\config.cfc : line 72

        An error occured while Parsing an XML document.
       

12:09:42.042 - _expression_ Exception - in D:\Webroot\Reactor\config\config.cfc : line 72

        An error occured while Parsing an XML document.
       

12:09:42.042 - _expression_ Exception - in D:\Webroot\Reactor\config\config.cfc : line 72

        An error occured while Parsing an XML document.
       

12:09:42.042 - _expression_ Exception - in D:\Webroot\Reactor\config\config.cfc : line 72

        An error occured while Parsing an XML document.
       

12:09:43.043 - _expression_ Exception - in D:\Webroot\Reactor\config\config.cfc : line 72

        An error occured while Parsing an XML document.       

My Coldspring XML config file looks like this so far:

<beans>
    <bean id="reactorFactory" class="reactor.reactorFactory">
        <constructor-arg name="pathToConfigXml">
            <value>myPath\to\reactor.xml</value>
        </constructor-arg>
    </bean>
</beans>

I've cfdump'ed from reactor\config\config.cfc line 72 and found that the xml file is being read fine so I'm a bit puzzled as to why this exception is showing up.  Does anyone have any ideas? 

-- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

Reply via email to