Brian Kotek was on target once again!



On 10/30/07, David Phipps <[EMAIL PROTECTED]> wrote:
>
> Problem solved - solution - shoot the developer!!
>
> Now that I have finished slapping myself around the face I can explain -
> we
> are running 2 versions of an app. One is the production (stable) version
> and
> one is the test (dev-unstable) version. They are running on the same
> server
> but with application name, reactor project name and db changed. When I
> initially duplicated the production site into the test site it would
> appear
> I didn't delete the custom cfc's that extend the reactor project files and
> these custom cfc's were extending the live cfc's which of course haven't
> yet
> changed to include the new db fields!!
>
> I am such a klutz sometimes.
>
> Cheers,
>
> Dave
>
> On Tue, 30 Oct 2007 11:46:37 -0400
>   "Brian Kotek" <[EMAIL PROTECTED]> wrote:
> > This definitely sounds like an issue with files stored in the
> >template
> > cache. There should be a button labeled "Clear Template Cache" right
> >on the
> > same page where you choose to save class files, use trusted cache,
> >etc. It's
> > crucial that you do ALL of this in one set of actions:
> >
> > Delete the generated Reactor files
> > Clear the template cache
> > Re-initialize the application-scoped Reactor. Make sure that Reactor
> >is in
> > "development mode" when you do this, you can then set it back to
> >production
> > mode after the reload.
> >
> > On Oct 30, 2007 11:32 AM, David Phipps
> ><[EMAIL PROTECTED]>
> > wrote:
> >
> >> Hi,
> >>
> >> I have tried deleting all of the project files and reloading the
> >> application
> >> but it still won't pick up the new database field.
> >>
> >> Here is the snippet of code from the new_local_preachersRecord.cfc:
> >>
> >> <!--- notes --->
> >> <cffunction name="setnotes" hint="I set the notes value ."
> >>access="public"
> >> output="false" returntype="void">
> >>        <cfargument name="notes" hint="I am this record's notes
> >>value."
> >> required="yes" type="any" _type="string" />
> >>        <cfset _getTo().notes = arguments.notes />
> >> </cffunction>
> >>
> >> <cffunction name="getnotes" hint="I get the notes value."
> >>access="public"
> >> output="false" returntype="any" _returntype="string">
> >>    <cfreturn _getTo().notes />
> >> </cffunction>
> >>
> >> So Reactor has found the new  db field 'notes' and created the
> >>necessary
> >> new
> >> methods. But they don't show in any of the dump of those objects.
> >>
> >> I then tried bypassing the application.reactorfactory by doing the
> >> following:
> >>
> >> <cfset preacher =
> >> createObject('component','com.Record.new_local_preachersRecordmysql')
> >>/>
> >> <cfdump var="#preacher#">
> >>
> >> The getnotes and setnotes methods are not listed in the dump???
> >>
> >> So the problem is not in the application scope vars, it isn't in the
> >>files
> >> generated by reactor. I am using CFMX6.1 and I am not sure how I
> >>clear the
> >> template cache via the administrator. Is it worth deleting the class
> >>files
> >> that cf generates? Trusted cache is off but save class files is on.
> >>Where
> >> are the class files located?
> >>
> >> Any ideas?
> >>
> >> Cheers,
> >>
> >> Dave
> >>
> >> On Fri, 26 Oct 2007 18:11:40 -0400
> >>  "Brian Kotek" <[EMAIL PROTECTED]> wrote:
> >> > You need to make sure you're purging everything at the same time:
> >> >
> >> > delete all of the generated files
> >> > purge the template cache in the CF administrator (sometimes this
> >> >helps)
> >> > perform a full reload of the application-scoped data
> >> >
> >> > On 10/26/07, David Phipps <[EMAIL PROTECTED]>
> >>wrote:
> >> >>
> >> >> Hi,
> >> >>
> >> >> I recently added a new field to the database on our development
> >> >>version of
> >> >> a
> >> >> site using Reactor. Reactor is in development mode and I reset
> >>the
> >> >> application. When I look in the Record folder and look at the
> >>Record
> >> >>cfc I
> >> >> can see the getnotes method. However when I try to access it I
> >>get:
> >> >>
> >> >> "The method 'getnotes' could not be found in component..."
> >> >>
> >> >> It is definitely in the component yet when I dump the object it
> >>is
> >> >>not
> >> >> listed as one of the methods.
> >> >>
> >> >> reactor is stored in the application scope and my reinit code
> >>should
> >> >>be
> >> >> clearing this but even after deleting all the project files and
> >> >>reiniting
> >> >> the app. I am still getting the error.
> >> >>
> >> >> Is there anything else I need to do to force a refresh of reactor
> >>to
> >> >>pick
> >> >> up
> >> >> the new code?
> >> >>
> >> >> Cheers,
> >> >>
> >> >> Dave
> >> >>
> >> >>
> >> >>
> >>_______________________________________________________________________
> >> >> David Phipps
> >> >> Director, Chapel Studios
> >> >>
> >> >> T +44 (0)20 7100 6980   F +44 (0)20 7100 6981   M +44 (0)7765
> >>240899
> >> >> New Broad Street House, 35 New Broad Street, London, EC2M 1NH, UK
> >> >>
> >> >> http://www.chapel-studios.co.uk
> >> >>
> >>_______________________________________________________________________
> >> >>
> >> >> The Chapel Studios group of companies are registered in England.
> >> >> 'Chapel
> >> >> Studios' and the Chapel Studios logo are registered trademarks of
> >> >>Chapel
> >> >> Studios.  The information in this email is confidential, intended
> >> >>solely
> >> >> for
> >> >> the addressee, and may be legally privileged.  If you are not the
> >> >> addressee
> >> >> or authorized to receive this for the addressee, you must not
> >>use,
> >> >>copy,
> >> >> disclose or take any action based upon this message or any
> >> >>information
> >> >> herein.  If you have received this message in error, please
> >>advise
> >> >>the
> >> >> sender immediately by reply e-mail.
> >> >>
> >> >>
> >> >> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> >>--
> >> >>-- --
> >> >> -- --
> >> >> 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/
> >> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> >>--
> >> >-- -- -- --
> >>
> >>
> >> _______________________________________________________________________
> >> David Phipps
> >> Director, Chapel Studios
> >>
> >> T +44 (0)20 7100 6980   F +44 (0)20 7100 6981   M +44 (0)7765 240899
> >> New Broad Street House, 35 New Broad Street, London, EC2M 1NH, UK
> >>
> >> http://www.chapel-studios.co.uk
> >> _______________________________________________________________________
> >>
> >> The Chapel Studios group of companies are registered in England.
> >> 'Chapel
> >> Studios' and the Chapel Studios logo are registered trademarks of
> >>Chapel
> >> Studios.  The information in this email is confidential, intended
> >>solely
> >> for
> >> the addressee, and may be legally privileged.  If you are not the
> >> addressee
> >> or authorized to receive this for the addressee, you must not use,
> >>copy,
> >> disclose or take any action based upon this message or any
> >>information
> >> herein.  If you have received this message in error, please advise
> >>the
> >> sender immediately by reply e-mail.
> >>
> >>
> >> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> >>-- --
> >> -- --
> >> 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/
> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> >-- -- -- --
>
>
> _______________________________________________________________________
> David Phipps
> Director, Chapel Studios
>
> T +44 (0)20 7100 6980   F +44 (0)20 7100 6981   M +44 (0)7765 240899
> New Broad Street House, 35 New Broad Street, London, EC2M 1NH, UK
>
> http://www.chapel-studios.co.uk
> _______________________________________________________________________
>
> The Chapel Studios group of companies are registered in England.  'Chapel
> Studios' and the Chapel Studios logo are registered trademarks of Chapel
> Studios.  The information in this email is confidential, intended solely
> for
> the addressee, and may be legally privileged.  If you are not the
> addressee
> or authorized to receive this for the addressee, you must not use, copy,
> disclose or take any action based upon this message or any information
> herein.  If you have received this message in error, please advise the
> sender immediately by reply e-mail.
>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
> Reactor for ColdFusion Mailing List
> [EMAIL PROTECTED]
> Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
>
>


-- 
"Come to the edge, he said. They said: We are afraid. Come to the edge, he
said. They came. He pushed them and they flew."

Guillaume Apollinaire quotes


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

Reply via email to