Ticket #45 (closed defect: fixed)

Opened 20 years ago

Last modified 16 years ago

Element _REACTOR is undefined in VARIABLES.

Reported by: spiraldev@… Owned by: somebody
Priority: low Milestone:
Version: 2.0.304 Severity: critical
Keywords: Cc:

Description

I am trying to use the reactor part of unity and I am getting this error.

24 : <cffunction name="getReactor" returntype="reactor.reactorFactory" output="false" access="private"> 25 : <cfreturn variables._reactor /> 26 : </cffunction>

Change History

Changed 20 years ago by Joe Rinehart

Please post your entire stack trace, what code you ran, and what you expected to get.

In your MG debugging output, does the second line say "Using ORM Adapter: ModelGlue?.unity.orm.ReactorAdapter?" or does it say "Not using ORM..."?

Changed 20 years ago by joe.rinehart

  • milestone set to Defects Awaiting More Information

Changed 20 years ago by anonymous

Element _REACTOR is undefined in VARIABLES. The error occurred in C:\Inetpub\wwwroot\ModelGlue?\unity\orm\ReactorAdapter?.cfc: line 24 Called from C:\Inetpub\wwwroot\ModelGlue?\unity\orm\ReactorAdapter?.cfc: line 56 Called from C:\Inetpub\wwwroot\ModelGlue?\unity\eventhandler\EventHandlerFactory?.cfc: line 28 Called from C:\Inetpub\wwwroot\ModelGlue?\unity\loader\XmlConfigurationLoader?.cfc: line 343 Called from C:\Inetpub\wwwroot\ModelGlue?\unity\loader\XmlConfigurationLoader?.cfc: line 47 Called from C:\Inetpub\wwwroot\ModelGlue?\unity\loader\FrameworkLoader?.cfc: line 60 Called from C:\Inetpub\wwwroot\ModelGlue?\unity\ModelGlue?.cfm: line 37 Called from C:\Inetpub\wwwroot\dev\index.cfm: line 33 22 : </cffunction> 23 : 24 : <cffunction name="getReactor" returntype="reactor.reactorFactory" output="false" access="private"> 25 : <cfreturn variables._reactor /> 26 : </cffunction>

<modelglue>

<controllers>

<controller name="MyController?" type="controller.Controller">

<message-listener message="OnRequestStart?" function="OnRequestStart?" /> <message-listener message="OnQueueComplete?" function="OnQueueComplete?" /> <message-listener message="OnRequestEnd?" function="OnRequestEnd?" />

</controller>

</controllers>

<event-handlers>

<scaffold object="categories">

<results>

<result do="view.template" />

</results>

</scaffold> <event-handler name="page.index">

<broadcasts /> <results>

<result do="view.template" />

</results>

<views>

<include name="body" template="dspIndex.cfm" />

</views>

</event-handler>

<event-handler name="view.template">

<broadcasts /> <results /> <views>

<include name="template" template="dspTemplate.cfm" />

</views>

</event-handler>

<event-handler name="exception">

<broadcasts /> <views>

<include name="body" template="dspException.cfm" />

</views>

</event-handler>

</event-handlers>

</modelglue>

<reactor>

<objects />

</reactor>

<beans>

<!-- This is your Model-Glue configuration -->

<bean id="modelGlueConfiguration" class="ModelGlue?.unity.framework.ModelGlueConfiguration?">

<!-- Be sure to change reload to false when you go to production! --> <property name="reload"><value>true</value></property> <!-- Rescaffold is overridden by reload - if reload is false, rescaffold's setting doesn't matter --> <property name="rescaffold"><value>true</value></property> <!-- Be sure to change debug to false when you go to production! --> <property name="debug"><value>true</value></property> <property name="defaultEvent"><value>page.index</value></property> <property name="reloadPassword"><value>true</value></property> <property name="viewMappings"><value>/views</value></property> <property name="generatedViewMapping"><value>/views/generated</value></property> <property name="configurationPath"><value>config/ModelGlue.xml</value></property> <property name="scaffoldPath"><value>config/scaffolds/Scaffolds.xml</value></property> <property name="statePrecedence"><value>form</value></property> <property name="reloadKey"><value>init</value></property> <property name="eventValue"><value>event</value></property> <property name="defaultTemplate"><value>index.cfm</value></property> <property name="defaultExceptionHandler"><value>exception</value></property> <property name="defaultCacheTimeout"><value>5</value></property> <property name="defaultScaffolds"><value>list,edit,view,commit,delete</value></property>

</bean>

<!-- This is your Reactor configuration -->

<bean id="reactorConfiguration" class="reactor.config.config">

<constructor-arg name="pathToConfigXml"><value>/config/Reactor.xml</value></constructor-arg> <property name="project"><value>Develpoment</value></property> <property name="dsn"><value>itrackerDev</value></property> <property name="type"><value>mssql</value></property> <property name="mapping"><value>/model/data</value></property> <property name="mode"><value>development</value></property>

</bean>

<!-- Put definitions for your own beans and services here -->

</beans>

Changed 20 years ago by joe.rinehart

In your MG debugging output, does the second line say "Using ORM Adapter: ModelGlue??.unity.orm.ReactorAdapter?" or does it say "Not using ORM..."?

Changed 20 years ago by anonymous

Sorry I never got to the MD debug because of the error so I toke out the sacffold tag and it says.

Not using an ORM adapter.

Changed 20 years ago by anonymous

  • milestone changed from Defects Awaiting More Information to User Reported Issues (with full information)

Changed 20 years ago by anonymous

  • priority changed from normal to low

Ok I am an idoit I fixed it. I have never used reactor before and I did not know I need ed to take the reactor folder out of the reactor folder.

Changed 20 years ago by joe.rinehart

  • status changed from new to closed

No worries man. Can you suggest text for instructions that would've made this easier?

Changed 20 years ago by dgreenfe@…

In the installation instructions, include a little more on Reactor. Like have us move the Reactor kernal to its own directory for proper mapping. I know we can check on Doug's site, but this just makes it a little easier, hence more accessible.

:)

Changed 17 years ago by cfgrok

  • status changed from closed to reopened

Re-opening to correct lost resolution

Changed 17 years ago by cfgrok

  • status changed from reopened to closed
  • resolution set to fixed

Re-closing, to resolve as "fixed"

Changed 16 years ago by cfgrok

  • milestone User Reported Issues (with full information) deleted

Milestone User Reported Issues (with full information) deleted

Note: See TracTickets for help on using tickets.