Thanks Dan, It gave me additional info that got me past it.
Thanks for the prompt reply. Have a great day. Cliff On Mar 9, 10:17 am, Dan Wilson <[email protected]> wrote: > Remove the try/catch in the simpleinstancefactory and see what it tells you. > > DW > > On Fri, Mar 9, 2012 at 11:14 AM, Clifford Moon <[email protected]>wrote: > > > > > > > > > > > *Greetings,* > > * > > * > > *I'm getting the following error:* > > > BAD_OBJECT_CONFIG_IN_INSTANCEFACTORY*Detail*You provided [ > > rsvp_CoordsBean ] and I can't create it. Go check the config. > > * > > * > > *Extended Info**Tag Context* > > > D:\Website\it\RSVP\model\InstanceFactory.cfc (12) > > D:\Website\it\RSVP\controller\rsvp_coordinatorsController.cfc (12) > > D:\ModelGlue\gesture\eventrequest\EventContext.cfc (326) > > D:\ModelGlue\gesture\eventrequest\EventContext.cfc (253) > > D:\ModelGlue\gesture\eventrequest\phase\Invocation.cfc (91) > > D:\ModelGlue\gesture\eventrequest\EventContext.cfc (180) > > D:\ModelGlue\gesture\ModelGlue.cfc (243) > > D:\ModelGlue\gesture\ModelGlue.cfm (83) > > D:\Website\it\RSVP\index.cfm (42) > > > *Here is the call inside my controller:* > > > <cffunction name="getCoordsForm" access="public" returnType="void" output= > > "false"> > > > <cfargument name="event" type="any"> > > > <cfset var CoordsBean = getModelGlue().getBean("instanceFactory").getBean( > > "rsvp_CoordsBean") /> <--- This is line 12 referenced in the error.. > > > *Here is the setup inside coldspring.xml* > > * > > * > > * > > * > > > <bean id="rsvp_coordsBean" class="it.RSVP.model.rsvp_coordsBean" > > singleton="true" /> > > > <bean id="rsvp_coordsService" class="it.RSVP.model.rsvp_coordsService"> > > > <property name="coordsDAO"><ref bean="coordsDAO" /></property> > > > <property name="coordsGW"><ref bean="coordsGW" /></property> > > > </bean> > > > <bean id="coordsDAO" class="it.rsvp.model.rsvp_coordsDAO"> > > > <property name="AppConfig"><ref bean="AppConfig" /></property> > > > </bean> > > > <bean id="coordsGW" class="it.rsvp.model.rsvp_coordsGW"> > > > <property name="AppConfig"><ref bean="AppConfig" /></property> > > > </bean> > > > <bean id="instanceFactory" class="it.rsvp.model.InstanceFactory"> > > > <property name="Config"> > > > <map> > > > <entry key="rsvp_adminsBean"> <value>it.rsvp.model.rsvp_adminsBean</ > > value></entry> > > > <entry key="rsvp_eventsBean"> <value>it.rsvp.model.rsvp_eventsBean</ > > value></entry> > > > <entry key="rsvp_rsvpsBean"> <value>it.rsvp.model.rsvp_rsvpsBean</ > > value></entry> > > > <entry key="rsvp_headersBean"> <value>it.rsvp.model.rsvp_headersBean > > </value></entry> > > > <entry key="rsvp_coordsBean"> <value>it.rsvp.model.rsvp_coordsBean</value > > ></entry> > > > </map> > > > </property> > > > </bean> > > > *And the file (rsvp_coordsBean.cfc) does exist within the it\rsvp\model > > path.* > > > *This is my rsvp_coordsBean.cfc* > > > <cfcomponent > > > displayname="rsvp_Coords" > > > output="false" > > > hint="A bean which models the rsvp_Coords form."> > > > <!--- > > > PROPERTIES > > > ---> > > > <cfset variables.instance = StructNew() /> > > > <!--- > > > INITIALIZATION / CONFIGURATION > > > ---> > > > <cffunction name="init" access="public" returntype= > > "it.rsvp.model.rsvp_coordsBean" output="false"> > > > <cfargument name="ID" type="NUMERIC" required="false" default="0" /> > > > <cfargument name="EID" type="NUMERIC" required="false" default="" /> > > > <cfargument name="OID" type="STRING" required="false" default="" /> > > > <cfargument name="CONTACTPERSON" type="STRING" required="false" default="" > > /> > > > <cfargument name="CONTACTEMAIL" type="STRING" required="false" default="" > > /> > > > <!--- run setters ---> > > > <cfset setID(arguments.ID) /> > > > <cfset setEID(arguments.EID) /> > > > <cfset setOID(arguments.OID) /> > > > <cfset setCONTACTPERSON(arguments.CONTACTPERSON) /> > > > <cfset setCONTACTEMAIL(arguments.CONTACTEMAIL) /> > > > <cfreturn this /> > > > </cffunction> > > > <cffunction name="setID" access="public" returntype="void" output="false" > > > <cfargument name="ID" type="NUMERIC" required="true" /> > > > <cfset variables.instance.ID = arguments.ID /> > > > </cffunction> > > > <cffunction name="getID" access="public" returntype="NUMERIC" output= > > "false"> > > > <cfreturn variables.instance.ID /> > > > </cffunction> > > > <cffunction name="setOID" access="public" returntype="void" output= > > "false"> > > > <cfargument name="OID" type="STRING" required="true" /> > > > <cfset variables.instance.OID = arguments.OID /> > > > </cffunction> > > > <cffunction name="getOID" access="public" returntype="STRING" output= > > "false"> > > > <cfreturn variables.instance.OID /> > > > </cffunction> > > > <cffunction name="setEID" access="public" returntype="void" output= > > "false"> > > > <cfargument name="EID" type="NUMERIC" required="true" /> > > > <cfset variables.instance.EID = arguments.EID /> > > > </cffunction> > > > <cffunction name="getEID" access="public" returntype="NUMERIC" output= > > "false"> > > > <cfreturn variables.instance.EID /> > > > </cffunction> > > > <cffunction name="setCONTACTPERSON" access="public" returntype="void" > > output="false"> > > > <cfargument name="CONTACTPERSON" type="STRING" required="true" /> > > > <cfset variables.instance.CONTACTPERSON = arguments.CONTACTPERSON /> > > > </cffunction> > > > <cffunction name="getCONTACTPERSON" access="public" returntype="STRING" > > output="false"> > > > <cfreturn variables.instance.CONTACTPERSON /> > > > </cffunction> > > > <cffunction name="setCONTACTEMAIL" access="public" returntype="void" > > output="false"> > > > <cfargument name="CONTACTEMAIL" type="STRING" required="true" /> > > > <cfset variables.instance.CONTACTEMAIL = arguments.CONTACTEMAIL /> > > > </cffunction> > > > <cffunction name="getCONTACTEMAIL" access="public" returntype="STRING" > > output="false"> > > > <cfreturn variables.instance.CONTACTEMAIL /> > > > </cffunction> > > > </cfcomponent> > > > *The instancefactory that I'm using is the one written by Dan:* > > > <cfcomponent> > > > <!--- Author: dwilson Date: 3/14/2007 Usage: I return an instance object > > ---> > > > <cffunction name="getBean" output="false" access="public" returntype="any" > > hint="I return an instance object"> > > > <cfargument name="ObjectName" type="string" required="true"/> > > > <cftry> > > > <cfreturn createObject( "component", structFind(getConfig(), > > arguments.ObjectName ) ).init() /> > > > <cfcatch type="any"> > > > <cfthrow message="BAD_OBJECT_CONFIG_IN_INSTANCEFACTORY" detail="You > > provided [ #arguments.ObjectName # ] and I can't create it. Go check the > > config." /> > > > </cfcatch> > > > </cftry> > > > </cffunction> > > > <!--- Usage: GetConfig / SetConfig methods for Config value ---> > > > <cffunction name="getConfig" access="public" output="false" returntype= > > "any"> > > > <cfreturn variables.instance.Config /> > > > </cffunction> > > > <cffunction name="setConfig" access="public" output="false" returntype= > > "void"> > > > <cfargument name="Config" type="any" required="true" /> > > > <cfset variables.instance.Config = arguments.Config /> > > > </cffunction> > > > </cfcomponent> > > > *I have other beans setup and working, but I'm missing something here. > > Can anyone shed any light as to why the instance factory is throwing the > > error?* > > > * > > * > > > *Thanks in Advance,* > > > * > > * > > > *Cliff* > > > -- > > Model-Glue Sites: > > Home Page:http://www.model-glue.com > > Documentation:http://docs.model-glue.com > > Bug Tracker:http://bugs.model-glue.com > > Blog:http://www.model-glue.com/blog > > > You received this message because you are subscribed to the Google > > Groups "model-glue" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/model-glue?hl=en > > -- > Plutarch - "The mind is not a vessel to be filled but a fire to be kindled." -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
