thanks.  I've searched, and no use of CreateObject("component","user"
).init() at all.  /com is at the top of my web root.  AFIK, HostMySite
doesn't allow files above the webroot, thus no mappings needed.

DK


On Jan 28, 2008 1:41 PM, Cameron Childress <[EMAIL PROTECTED]> wrote:

> Is /com a cf mapping or a relative/local path?  Also, do you ever
> invoke it from another CFC in that dir as simply:
>
> CreateObject("component","user" ).init()
>
> I've seen that goof things up.
>
> -Cameron
>
> On Jan 28, 2008 1:19 PM, Douglas Knudsen <[EMAIL PROTECTED]> wrote:
> > ok, this is whacked.  I have a bean called user in
> com/foo/beans/user.cfc.
> > I provided a truncated version below.  It works a treat.  Well, for a
> few
> > days at least.  Over time this bean starts throwing the error:
> >
> >
> > Detail If the component name is specified as a return type, its possible
> > that a definition file for the component cannot be found or is not
> > accessible.
> >  Message The value returned from the init function is not of type
> > com.foo.beans.user.
> > This error is thrown from the line
> > <cfset var user = CreateObject("component","com.foo.beans.user" ).init()
> />
> >
> > To fix the error, I simply touch the user.cfc file so that it gets
> > recompiled.  It then works fine for 2 to 5 weeks or so then the same
> error
> > starts occurring again.  Any thoughts?  I'm stumped.  I'm thinking its a
> > shared hosting issue with HostMySite.
> >
> > DK
> >
> > <cfcomponent
> >     displayname="user"
> >     output="false"
> >     hint="A bean which models the user form .">
> >
> >     <!---
> >     PROPERTIES
> >     --->
> >      <cfset variables.instance = StructNew() />
> >
> >     <!---
> >     INITIALIZATION / CONFIGURATION
> >     --->
> >     <cffunction name="init" access="public" returntype="
> com.foo.beans.user"
> > output="false">
> >          <cfargument name="nm_id" type="numeric" required="false"
> > default="0" />
> >         <cfargument name="txt_user_id" type="string" required="false"
> > default="" />
> >
> >
> >         <cfscript>
> >             // run setters
> >             setNm_id(arguments.nm_id);
> >             setTxt_user_id(arguments.txt_user_id);
> >             setTxt_pwd(arguments.txt_pwd);
> >
> >         </cfscript>
> >
> >         <cfreturn this />
> >      </cffunction>
> >
> >     <!---
> >     PUBLIC FUNCTIONS
> >     --->
> >     <cffunction name="setMemento" access="public"
> > returntype="com.foo.beans.user" output="false">
> >          <cfargument name="memento" type="struct" required="yes"/>
> >         <cfset variables.instance = arguments.memento />
> >         <cfreturn this />
> >     </cffunction>
> >      <cffunction name="getMemento" access="public"returntype="struct"
> > output="false" >
> >         <cfreturn variables.instance />
> >     </cffunction>
> >
> >
> >
> >      <!---
> >     ACCESSORS
> >     --->
> >     <cffunction name="setNm_id" access="public" returntype="void"
> > output="false">
> >         <cfargument name="nm_id" type="numeric" required="true" />
> >          <cfset variables.instance.nm_id = trim(arguments.nm_id) />
> >     </cffunction>
> >     <cffunction name="getNm_id" access="public" returntype="numeric"
> > output="false">
> >          <cfreturn variables.instance.nm_id />
> >     </cffunction>
> >
> >     <cffunction name="setTxt_user_id" access="public" returntype="void"
> > output="false">
> >          <cfargument name="txt_user_id" type="string" required="true" />
> >         <cfset variables.instance.txt_user_id = trim(
> arguments.txt_user_id)
> > />
> >     </cffunction>
> >      <cffunction name="getTxt_user_id" access="public"
> returntype="string"
> > output="false">
> >         <cfreturn variables.instance.txt_user_id />
> >     </cffunction>
> >
> >     <cffunction name="setTxt_pwd" access="public" returntype="void"
> > output="false">
> >         <cfargument name="txt_pwd" type="string" required="true" />
> >          <cfset variables.instance.txt_pwd = trim(arguments.txt_pwd) />
> >     </cffunction>
> >     <cffunction name="getTxt_pwd" access="public" returntype="string"
> > output="false">
> >          <cfreturn variables.instance.txt_pwd />
> >     </cffunction>
> >
> >
> >
> > </cfcomponent>
> >
> >
> >
> > --
> > Douglas Knudsen
> > http://www.cubicleman.com
> >  this is my signature, like it?
> > -------------------------------------------------------------
> > Annual Sponsor - Figleaf Software
> >
> > To unsubscribe from this list, manage your profile @
> > http://www.acfug.org?fa=login.edituserform
> >
> > For more info, see http://www.acfug.org/mailinglists
> > Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> > List hosted by FusionLink
> > -------------------------------------------------------------
>
>
>
> --
> Cameron Childress
> Sumo Consulting Inc
> http://www.sumoc.com
> ---
> cell:  678.637.5072
> aim:   cameroncf
> email: [EMAIL PROTECTED]
>
>
> -------------------------------------------------------------
> Annual Sponsor FigLeaf Software - http://www.figleaf.com
>
> To unsubscribe from this list, manage your profile @
> http://www.acfug.org?fa=login.edituserform
>
> For more info, see http://www.acfug.org/mailinglists
> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> List hosted by http://www.fusionlink.com
> -------------------------------------------------------------
>
>
>
>


-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?



-------------------------------------------------------------
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to