House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Search cf-talk

July 03, 2009

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Home /  Groups /  ColdFusion Talk (CF-Talk)

Error invoking CFC

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jeff F
11/20/2008 05:24 PM

For the life of me I can't figure out how to stop this error. Sometimes when I call the page that invokes the CFC, It gives an error: "Error invoking CFC ".  It does not happen all time though. 8 times out of ten it will load fine, then throw the error every once an a while. It's almost like the framework is sleeping, and can't load things quick enough before an error is thrown. I'm on a VPS.  Any suggestions appreciated, I'm out of ideas. -Jeff

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jeff F
11/20/2008 05:48 PM

More on this... Ok, more on this.  I'm using CFSelect and binding to this cfc.   <cfselect name="model" id="model"        value="model"       display="model"      bind="cfc:model.getdata.getmodels()"   class="input"   multiple="no"   bindonload="true"  /> Is there any odd issues with binding in a CFC?? jeff ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Gerald Guido
11/20/2008 05:52 PM

Is that it for the error?  Any other details to go by? Did you check the log file to see if there were any other details? G On Thu, Nov 20, 2008 at 5:15 PM, Jeff F <cftalk_list@fongemie.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jeff F
11/20/2008 06:01 PM

>Is that it for the error?  Any other details to go by? Did you check the log >file to see if there were any other details? The complete error is: "Error invoking CFC /model/getfitmentdata.cfc : Internal Server Error [Enable debugging by adding 'cfdebug' to your URL parameters to see more information]" Not much more help. I'll check the logs now.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Gerald Guido
11/20/2008 06:04 PM

Add cfdebug to your URL parameter and it will pop up the AJAX debugger. On Thu, Nov 20, 2008 at 5:51 PM, Jeff F <cftalk_list@fongemie.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jeff F
11/20/2008 06:16 PM

>Add cfdebug to your URL parameter and it will pop up the AJAX debugger. > >On Thu, Nov 20, 2008 at 5:51 PM, Jeff F <cftalk_list@fongemie.com> wrote: > >> Logs don't help. They just point to that getmodels.cfc. I'm wondering if my cfc is at fault. It's querying a rather large table. Possibly taking too long?? I'm going to add  CachedWithin="#CreateTimeSpan(1,0,0,0)#" to see if that helps. <cffunction name="getmodels" access="remote" returnType="query">       <cfset var data="">       <cfquery name="data" datasource="#THIS.dsn#" >          SELECT distinct model           FROM #THIS.table#          WHERE approved = <cfqueryPARAM value = "Y"    CFSQLType = "CF_SQL_VARCHAR">       ORDER BY model       </cfquery>       <cfreturn data>    </cffunction>

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jeff F
11/20/2008 06:25 PM

For the moment, it seems caching that query helped. I'm not getting any errors. I wish I'd seen that earlier. Thanks for your help G.. -Jeff ----- Excess quoted text cut - see Original Post for more -----        > <cfset var data=""> >       <cfquery name="data" datasource="#THIS.dsn#" >          > SELECT distinct model            > FROM #THIS.table#          > WHERE approved = <cfqueryPARAM value = "Y"    > CFSQLType = "CF_SQL_VARCHAR">        > ORDER BY model        > </cfquery>        > <cfreturn data>    > </cffunction>


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists