I posted a work around for this previously. We ran into this occasionally also. We hacked the field.cfc to get around this. I have a few ideas why this happens, but no testable examples atm. Field.cfc Line 108 add default="" to <cfargument name="default" hint="I am the default value of this field" required="yes" default="" type="string" />
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Billings Sent: Saturday, February 18, 2006 10:51 PM To: [email protected] Subject: [Spam] Re: Reactor For CF The parameter DEFAULT to function setDefault is required but was not passed in I deleted the bit column and I am still getting the error. On 2/17/06, João Fernandes <[EMAIL PROTECTED]> wrote: > > After looking at the archives I found this: http://www.mail-archive.com/[email protected]/msg00150.html . > > It might be related to the bit field. Try to change it to int just to see if it throwns an error. > > BTW, you should define a project property in your reactor.xml file. > > <config> > <dsn value="CCARC" /> > <type value="mssql" /> > <mapping value="/Reactor" /> > <mode value="always" /> > <project value="myproject"/> > </config> > > João Fernandes > > -----Original Message----- > From: [EMAIL PROTECTED] on behalf of Brian Billings > Sent: Sat 18-Feb-06 12:16 AM > To: [email protected] > Subject: Reactor For CF The parameter DEFAULT to function setDefault > is required but was not passed in > > Does anyone know why I am geting this error? > > > > Message The parameter DEFAULT to function setDefault is required but > was not passed in. > Detail > Extended Info > Tag Context F:\www\Reactor\data\mssql\ObjectDao.cfc (78) > F:\www\Reactor\data\mssql\ObjectDao.cfc (8) > F:\www\Reactor\core\objectFactory.cfc (104) > F:\www\Reactor\core\objectFactory.cfc (29) > F:\www\Reactor\reactorFactory.cfc (61) > F:\www\CCARC\Programs\controller\FacilitatorController.cfc (56) > F:\www\ModelGlue\ModelGlue.cfc (355) F:\www\ModelGlue\ModelGlue.cfc > (291) F:\www\ModelGlue\ModelGlue.cfc (248) > F:\www\ModelGlue\ModelGlue.cfc (208) F:\www\ModelGlue\ModelGlue.cfm > (56) F:\www\CCARC\Programs\index.cfm (27) > > > Controller Function > <cffunction name="getProgramEvents" access="public" output="false" > returntype="ModelGlue.Core.Event"> > <cfargument name="event" type="ModelGlue.Core.Event" required="true"> > <cfset local.EventGateway = variables.reactor.createGateway("event") /> > <cfset local.query = local.EventGateway.createQuery() /> > <cfset > local.query.getWhere().isEqual("event","program_key",arguments.event.g > etValue('id')) > /> > <cfset local.events = local.EventGateway.getByQuery(local.query) /> > <cfset arguments.event.setValue("Program",local.Events) /> > <cfreturn arguments.event /> > </cffunction> > > > Reactor XML > <reactor> > <config> > <dsn value="CCARC" /> > <type value="mssql" /> > <mapping value="/Reactor" /> > <mode value="always" /> > </config> > <objects> > <object name="activity"> > <hasone name="sponsor"> > <link name="sponsor" /> > </hasone> > </object> > <object name="sponsor"> > <hasmany name="activity"> > <relate from="sponsor_key" to="sponsor_key" /> > </hasmany> > </object> > > > > <object name="program"> > <hasone name="facilitator"> > <link name="facilitator" /> > </hasone> > <hasone name="coordinator"> > <link name="coordinator" /> > </hasone> > </object> > <object name="facilitator"> > <hasmany name="program"> > <relate from="facilitator_key" to="facilitator_key" /> > </hasmany> > </object> > <object name="coordinator"> > <hasmany name="program"> > <relate from="coordinator_key" to="coordinator_key" /> > </hasmany> > </object> > </objects> > </reactor> > > > > SQL Server table: > CREATE TABLE [dbo].[EVENT] ( > [EVENT_KEY] [int] IDENTITY (1, 1) NOT NULL , > [PROGRAM_KEY] [int] NOT NULL , > [FACILITATOR_KEY] [int] NOT NULL , > [STARTS] [smalldatetime] NOT NULL , > [ENDS] [smalldatetime] NULL , > [STATUS] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , > [ORIG_UPDATE] [smalldatetime] NOT NULL , > [LAST_UPDATE] [smalldatetime] NOT NULL , > [IS_ACTIVE] [bit] NOT NULL > ) ON [PRIMARY] > GO > > > > -- Reactor for ColdFusion Mailing List -- [email protected] -- > Archives at http://www.mail-archive.com/reactor%40doughughes.net/ > > > > > > > -- Reactor for ColdFusion Mailing List -- [email protected] -- > Archives at http://www.mail-archive.com/reactor%40doughughes.net/ > -- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/ **************************************************************************** This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. **************************************************************************** -- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

