Error In cflock

I keep on getting the below error from the last week.
Timed out while waiting to obtain exclusive access<P>
<p>The error occurred while processing an element with a
general identifier of (CFLOCK), occupying document position (8:1)
to (8:82) in the template file.
I checked the CF server and DB server administrators. But
they said that they did not find any issues with the servers. till
before last it was working fine. but from the last this is
happening. Its impacting for so many users.
what will be the reason?

Hi
All of my cflocks are getting the same issue.
before last week, it was working fine. only from the last we
were getting this issue.
Ex:
"Information","29","02/18/08","05:21:51",,"A long-running
request returned. The unresponsive thread count is down to 0.
[/createorder.cfm]."
"Warning","29","02/18/08","05:21:51",,"Template:
/createorder.cfm, Ran: 1009 seconds."

Similar Messages

  • Problem with application-variables - CFLOCK?

    Hi,
    i have a problem with my application. It is a multi-user
    application with 100 parallel-users and CFMX 7.
    The problem wich occures is with application variables. These
    are mainly structs wich get filled onApplicationStart(). The
    problem is, that the variables suddenly disappear, they are empty.
    I have read about CFLock and found out, that it is necesseary
    to use cflock. And i found out, that onApplicationStart does
    correct locking automatically. That is where i do not understand
    the problem. The variables get intialized correctly and in further
    they only get read-access. Why can they be corrupted?
    My other question about that is, wheather i need cflock for
    all Read-Access to Application and Session-Variables, even if there
    happens no writing to the variables?
    Best Regards,
    Andreas

    > ?The element of position 2, of dimension 2, of an array
    object used as part of
    > an expression, cannot be found.?
    > The array is in this case the struct.
    Well, OK, that could be a problem. Arrays are not structs:
    they are two
    different things, are not interchangeable, and have
    completely different
    sets of functions to utilise them. You cannot treat a struct
    as an array.
    If CF is claiming your "struct" is an array, then it actually
    *is* an
    array, not a struct.
    What's the line of code which is generating that error?
    I suppose one could get this error if you have an array of
    structs thus:
    myArray
    .key1
    myArray.key2
    (etc)
    and you're trying to reference it with a numeric key rather
    than by key
    name, eg:
    myArray
    [n]
    When n is an integer value, rather than a string (which
    corresponds to the
    name of the key).
    > > Have you trapped the error, done a <cfdump>
    of the application scope and
    > > checked to see if it's the whole lot going awry, or
    just some values?
    > I have not used cfdump for it, because the server had to
    be immediately
    > restarted for our customers. But i think, that it is
    not completely empty,
    > because the index runs to pos2 of dimenstion2.
    So does this not happen in your dev / testing environment?
    > Will
    > onApplicationStart() be called before? Or only if
    onRequestStart() returns true?
    I would ***-u-me that the application one would be called
    before the
    request one. It's pretty easy for you to test this though, I
    should think?
    (Sorry: for reasons beyond the scope of this conversation,
    we're still
    forced to use Application.cfm in our software, so I've only a
    passing
    knowledge of how Application.cfc works).
    > Here is the code from onRequestStart()
    > <cffunction name="onRequestStart"
    returntype="boolean">
    > <cfargument name="Requestedpage" required="yes" />
    > <cfscript>
    > var lFile = "/cargorent/Login.cfm";
    > var iPosn = ListFindNoCase( lFile,
    Arguments.Requestedpage );
    > if( iPosn gt 0 )
    > return true;
    >
    > if( NOT IsDefined( "session.user.Loginname" ) or
    session.user.Loginname eq
    > "" )
    > {
    > WriteOutput( "<p><p> The current user is no
    longer valid, please log in
    > again.</p></p>" & chr(10) & chr(13)
    > WriteOutput( "<script
    language=""javascript"">parent.location = ""
    http://"
    > & CGI.HTTP_HOST &
    "/Login/Login.cfm"";</script>" );
    > return false;
    > }
    >
    > return true;
    > </cfscript>
    > </cffunction>
    One thing I will say here is that I really think you should
    be separating
    your processing from your display. A function should do
    processing. it
    should pass that processing back to a CFM template which
    should handle
    whatever needs to be displayed on the browser. Although
    that's nowt to do
    with your current issue.
    Adam

  • Wierd ColdFusion erro : Error occurred while processing request.

    Hi there ,
    I am a graduate student and new to ColdFusion.I started working on this already developed project by someone couple of years ago , and the client wants some changes to be done.so i went ahead and did some small modifications to the appearance of the form(insertdata.cfm page) like adding some more options to a drop down menu , changing the label names and so on and am very sure this changes would not have effected the application in any way.And the place where the message says the error can be , i didnt even touch that part.Now after 4 days i start getting this weird error saying " Error Occurred While Processing Request
    The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
    Null Pointers are another name for undefined values."
    And this happens randomly not everytime i access the website or different webpages.Here are the errors.
    The error occurred in /export/web/virtual/web3_unt_edu/cps/webaccess/sites/Amarillo/index.cfm: line 8
    5 :   SELECT UserName,Password FROM user_data WHERE UserName=
    6 :   <cfqueryparam value="#FORM.UserName#" maxlength="8">
    7 :     AND Password=
    8 :   <cfqueryparam value="#FORM.Password#" maxlength="8">
    9 :   </cfquery>
    10 :   <cfif MM_rsUser.RecordCount NEQ 0>
    I tried adding " cfsqltype="cf_sql_clob"  " in cfqueryparam also on my friends advice , but it doesnt work out.
    2nd ERROR
    The error occurred in /export/web/virtual/web3_unt_edu/cps/webaccess/sites/Amarillo/InsertData.cfm: line 13
    11 :   <cflocation url="#MM_failureURL#" addtoken="no">
    12 : </cfif>
    13 : <cfquery name="rsDay" datasource="cps">
    14 : SELECT days FROM days
    15 : </cfquery>
    3rd ERROR
    The error occurred in /export/web/virtual/web3_unt_edu/cps/webaccess/sites/Amarillo/InsertData.cfm: line 27
    25 : ORDER BY ethnicity ASC
    26 : </cfquery>
    27 : <cfquery name="rsHospitals" datasource="cps_amarillo">
    28 : SELECT *
    29 : FROM hospitals
    Can anyone help me with this. I have to get the modifications done in 2 weeks.
    Thank you
    Craj

    Hi Mak
             I can get the stack trace for now , but here is my complete code , may be this ll give u complete idea .........
    The index page where i am getting the first error
    <cfif IsDefined("FORM.UserName")>
      <cfset MM_redirectLoginSuccess="menu.cfm">
      <cfset MM_redirectLoginFailed="../../fail.htm">
      <cfquery  name="MM_rsUser" datasource="cps_amarillo">
        SELECT UserName,Password FROM user_data WHERE UserName=
      <cfqueryparam value="#FORM.UserName#" maxlength="8">
        AND Password=
      <cfqueryparam value="#FORM.Password#" maxlength="8">
      </cfquery>
      <cfif MM_rsUser.RecordCount NEQ 0>
        <cftry>
          <cflock scope="Session" timeout="30" type="Exclusive">
            <cfset Session.MM_Username=FORM.UserName>
            <cfset Session.MM_UserAuthorization="">
          </cflock>
          <cfif IsDefined("URL.accessdenied") AND true>
            <cfset MM_redirectLoginSuccess=URL.accessdenied>
          </cfif>
          <cflocation url="#MM_redirectLoginSuccess#" addtoken="no">
          <cfcatch type="Lock">
            <!--- code for handling timeout of cflock --->
          </cfcatch>
        </cftry>
      </cfif>
      <cflocation url="#MM_redirectLoginFailed#" addtoken="no">
      <cfelse>
      <cfset MM_LoginAction=CGI.SCRIPT_NAME>
      <cfif CGI.QUERY_STRING NEQ "">
        <cfset MM_LoginAction=MM_LoginAction & "?" & XMLFormat(CGI.QUERY_STRING)>
      </cfif>
    </cfif>
    <cfinclude template="../../../Connections/cps_amarillo.cfm">
    <cfif IsDefined("FORM." & "UserName")>
      <cfscript>
        MM_valUsername=Evaluate("FORM." & "UserName");
        MM_fldUserAuthorization="";
        MM_redirectLoginSuccess="menu.cfm";
        MM_redirectLoginFailed="../../fail.htm";
        MM_dataSource=MM_cps_amarillo_DSN;
        MM_queryFieldList = "UserName,Password";
        if (MM_fldUserAuthorization IS NOT "") MM_queryFieldList=MM_queryFieldList & "," & MM_fldUserAuthorization;
      </cfscript>
      <cfquery datasource=#MM_dataSource# name="MM_rsUser" username=#MM_cps_amarillo_USERNAME# password=#MM_cps_amarillo_PASSWORD#>
      SELECT #MM_queryFieldList# FROM user_data WHERE UserName='#Replace(MM_valUsername,"\'","
      ","ALL")#' AND Password='#FORM.Password#'
      </cfquery>
      <cfif MM_rsUser.RecordCount GREATER THAN 0>
        <cfscript>
          // username and password match - this is a valid user
          Session.MM_Username = MM_valUsername;
          if (MM_fldUserAuthorization IS NOT "") {
            Session.MM_UserAuthorization = MM_rsUser[MM_fldUserAuthorization][1];
          } else {
            Session.MM_UserAuthorization = "";
          if (IsDefined("accessdenied") AND true) {
            MM_redirectLoginSuccess = Evaluate("accessdenied");
        </cfscript>
        <cflocation url="#MM_redirectLoginSuccess#" addtoken="no">
      </cfif>
      <cflocation url="#MM_redirectLoginFailed#" addtoken="no">
      <cfelse>
      <cfscript>
        MM_LoginAction = CGI.SCRIPT_NAME;
        if (CGI.QUERY_STRING NEQ "") MM_LoginAction = MM_LoginAction & "?" & CGI.QUERY_STRING;
      </cfscript>
    </cfif>
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Amarillo Login Screen</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/JavaScript">
    <!--
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_validateForm() { //v4.0
      var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
      for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
        if (val) { nm=val.name; if ((val=val.value)!="") {
          if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
            if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
          } else if (test!='R') { num = parseFloat(val);
            if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
            if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
              min=test.substring(8,p); max=test.substring(p+1);
              if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
        } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
      } if (errors) alert('The following error(s) occurred:\n'+errors);
      document.MM_returnValue = (errors == '');
    //-->
    </script>
    </head>
    <body>
    <div id="Layer2" style="position:absolute; left:26px; top:112px; width:683px; height:56px; z-index:2">
      <div align="right"><font size="+6"><strong><font color="#999999" size="5" face="Verdana, Arial, Helvetica, sans-serif">Seniors
        / Volunteers for Childhood Immunization<br />
        </font></strong></font><font color="#999999" size="5"><strong><font size="4" face="Verdana, Arial, Helvetica, sans-serif">Web
        Access Database</font></strong></font></div>
    </div>
    <div id="instructions" style="position:absolute; left:160px; top:182px; width:259px; height:30px; z-index:3"><font color="#999999" size="5"><strong><font size="4" face="Verdana, Arial, Helvetica, sans-serif">Please
      enter your user name and password...</font></strong></font></div>
    <div id="LayerLogin" style="position:absolute; left:427px; top:182px; width:310px; height:94px; z-index:4">
      <form ACTION="<cfoutput>#MM_loginAction#</cfoutput>" name="form1" id="form1" method="POST">
        <p><img src="../../../images/image14.gif" alt="" name="UserNameImg" width="150" height="21" border="0" id="UserNameImg" />
          <input name="UserName" type="text" id="UserName" size="15" maxlength="15" />
          <br />
          <img src="../../../images/image15.gif" alt="" name="PasswordImg" width="150" height="21" border="0" id="PasswordImg" />
          <input name="Password" type="password" id="Password" size="17" maxlength="15" />
        </p>
        <p align="right">
          <input name="Submit" type="submit" id="Submit" onclick="MM_validateForm('UserName','','R','Password','','R');return document.MM_returnValue" value="Log In!" />
        </p>
      </form>
    </div>
    </body>
    </html>
    I checked it again and again , but the code seems to work well on a local host ..... but not whn i upload it to server. Please let me know where i am goin wrong.
    Thank you

  • Next / Previous button throwing an error. Please help

    I wrote this next previous button code and it is throwing an
    error. I don't understand why or what I am missing.
    I want it to show 4 records for a page. Here is my code and
    the error.
    Code:
    <cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
    <cfquery name="feat" datasource="#sitedatasource#"
    username="#siteUserID#" password="#sitePassword#" maxRows=4>
    SELECT feature.title AS ViewField1, feature.MYFile AS
    ViewField2, feature.ID AS ID
    FROM feature
    </cfquery>
    <cflock timeout="2" scope="application"
    type="READONLY">
    <cfset application.feat=feat>
    </cflock>
    <cfset MaxRows_feat=4>
    <cfset
    StartRow_feat=Min((PageNum_feat-1)*MaxRows_feat+1,Max(feat.RecordCount,1))>
    <cfset
    EndRow_feat=Min(StartRow_feat+MaxRows_feat-1,feat.RecordCount)>
    <cfset
    TotalPages_feat=Ceiling(feat.RecordCount/MaxRows_feat)>
    <cfset QueryString_feat=Iif(CGI.QUERY_STRING NEQ
    "",DE("&"&CGI.QUERY_STRING),DE(""))>
    <cfset
    tempPos=ListContainsNoCase(QueryString_feat,"PageNum_feat=","&")>
    <cfif tempPos NEQ 0>
    <cfset
    QueryString_feat=ListDeleteAt(QueryString_feat,tempPos,"&")>
    </cfif>
    <cflock timeout="2" scope="application"
    type="READONLY"><cfoutput query="feat"
    maxrows="4">#ViewField1#</cfoutput></cflock>
    <cfif PageNum_feat GT 1>
    <a
    href="#CurrentPage#?PageNum_feat=#Max(DecrementValue(PageNum_feat),1)##QueryString_feat#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Previous','','../img/previous-over.gif',1)"><img
    src="../img/previous.gif" alt="Previous Records" name="Previous"
    width="96" height="27" border="0" id="Previous" /></a>
    <cfif PageNum_feat LT TotalPages_feat>
    <a
    href="#CurrentPage#?PageNum_feat=#Min(IncrementValue(PageNum_feat),TotalPages_feat)##Quer yString_feat#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('next','','../img/next-over.gif',1)"><img
    src="../img/next.gif" alt="Next Record" name="next" width="96"
    height="27" border="0" id="next" /></a>
    The Error:
    Variable PAGENUM_FEAT is undefined.
    The error occurred in
    C:\Websites\x9vdzd\feature\featured.cfm: line 8
    6 : </cfquery>
    7 : <cfset MaxRows_feat=4>
    8 : <cfset
    StartRow_feat=Min((PageNum_feat-1)*MaxRows_feat+1,Max(feat.RecordCount,1))>
    9 : <cfset
    EndRow_feat=Min(StartRow_feat+MaxRows_feat-1,feat.RecordCount)>
    10 : <cfset
    TotalPages_feat=Ceiling(feat.RecordCount/MaxRows_feat)>
    I thought I had it defined! What am I missing?
    Thanks
    Phoenix

    that is strange... it should work fine - it does in my tests.
    here is somewhat updated & modified code to try. i have
    included
    comments to try and explain what is being done.
    basic logic is as follows:
    -form is submitted
    -check if file has been selected
    -try uploading new file
    -if new file upload succeeds, delete old file if it exists
    (as part of
    updating existing record, as new records obviously would not
    have any
    old image)
    -update/insert record data as necessary
    here's the code:
    <cfif isdefined("form.feat_OK")><!--- form submitted
    --->
    <!--- set file uploading vars --->
    <cfparam name="fileuploaded" type="boolean"
    default="false">
    <cfparam name="uploadedfile" default="">
    <cfset pathToFile = "c:\websites\x9vdzd\img\feature\">
    <!--- --->
    <cfif len(trim(form.MYFile))><!--- if a file has
    been selected --->
    <!--- try uploading new file --->
    <cftry>
    <cffile Action="upload" filefield="MYFile"
    accept="image/gif,
    image/jpg, image/jpeg, image/pjpeg"
    destination="#pathToFile" nameconflict="MAKEUNIQUE">
    <cfset fileuploaded = true>
    <cfset uploadedfile = cffile.serverfile>
    <cfcatch type="any">
    <!--- if upload did not suceed, reset file uploading vars
    --->
    <cfset fileuploaded = false>
    <cfset uploadedfile = "">
    <!--- this can be further enhanced by setting some var to
    hold error
    message and return it to user --->
    </cfcatch>
    </cftry>
    </cfif>
    <cfif form.id gt 0><!--- we are updating an
    existing record --->
    <!--- if new file upload was successful and the feature
    has an image
    associated with it - delete old image --->
    <cfif fileuploaded is true AND
    len(trim(form.oldimage))>
    <cfif FileExists(pathToFile & form.oldimage)>
    <cffile action="delete" file="#pathToFile &
    form.oldimage#">
    </cfif>
    </cfif>
    <cfquery datasource="#sitedatasource#"
    username="#siteUserID#"
    password="#sitePassword#">
    UPDATE feature
    SET
    feature.title=<cfqueryparam cfsqltype="cf_sql_varchar"
    value="#form.title#">,
    feature.Body=<cfqueryparam cfsqltype="cf_sql_longvarchar"
    value="#form.PDSeditor#">,
    feature.MYFile=<cfqueryparam cfsqltype="cf_sql_varchar"
    value="#uploadedfile#" null="#NOT fileuploaded#">
    WHERE ID = <cfqueryparam value="#form.ID#"
    cfsqlType="CF_SQL_INTEGER">
    </cfquery>
    <cfelse><!--- we are inserting a new record --->
    <cfquery datasource="#sitedatasource#"
    username="#siteUserID#"
    password="#sitePassword#">
    INSERT INTO feature
    (title, body, MYFile)
    VALUES
    (<cfqueryparam cfsqltype="cf_sql_varchar"
    value="#form.title#">,
    <cfqueryparam cfsqltype="cf_sql_longvarchar"
    value="#form.PDSeditor#">,
    <cfqueryparam cfsqltype="cf_sql_varchar"
    value="#uploadedfile#"
    null="#NOT fileuploaded#">)
    </cfquery>
    </cfif>
    <!--- relocate user to previous page after insert/update
    --->
    <cflocation url="feature-manager.cfm">
    </cfif>
    hth
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Cflock read only

    We use many static application variables to populate pick boxes and compare them to form values in the process. They are also used to validate input from text boxes.
    Lately, we have been seeing an error saying that a 2 character code is exceeding the maxlength of 2 in a cfqueryparam tag.
    When the application variables are refreshed, the error goes away for a few days or a few months, but eventually comes back.
    Could this be caused by not having cflocks around the populating and comparing with application variables ?

    Well it could be. It's even more of a shot in the dark for us than it is for you, given we don't have your code in front of use to check.
    Is there any chance two consecutive requests could hit the initialisation / setting code at the same time, and accordingly add to this variable twice?  if so... yeah, you need some locking.
    Anything set in the application scope should be written in onApplicationStart() though, if poss.
    Adam

  • Error executing dB Query   help??

    I'm creating a simple content management system with DW &
    CF using an Access DB. I set up the DB in the CF Administrator as
    Access with unicode.
    My DB has several tables...users, usertypes, events,
    eventtypes, reviews.
    I built the usertype admin pages with no problems. Everything
    is working well and my pages are interacting well with the
    usertypes table in the db. I'm currently building the user admin
    pages and now I'm having problems when I try to add records into
    the users table. On my add page I've created a recordset with all
    of my usertypes in it. Also, I'm using the record insertion form
    wizard in DW.
    I'm getting the following error:
    Error Executing Database Query.
    Syntax error in INSERT INTO statement.
    The error occurred in
    C:\CFusionMX7\wwwroot\pentanglecf\admin\users\add.cfm: line 64
    62 : <cfelse>
    63 : NULL
    64 : </cfif>
    65 : )
    66 : </cfquery>
    BTW, I'm using Dan Short's very good DW 8 Dynamic Development
    tutorials on Lynda.Com. Has anyone used this before? Any help is
    greatly appreciated.
    Luis
    Casegama.Com

    Thanks Ken but I think I had posted the incorrect code for a
    few minutes before I made the correction. Below is both the CF code
    and the SQL command (also up above). I'm still having issues and
    any help is greatly appreciated.
    thanks,
    Luis
    Casegama.com
    <cflock scope="Session" type="ReadOnly" timeout="30"
    throwontimeout="no">
    <cfset
    MM_Username=Iif(IsDefined("Session.MM_Username"),"Session.MM_Username",DE(""))>
    <cfset
    MM_UserAuthorization=Iif(IsDefined("Session.MM_UserAuthorization"),"Session.MM_UserAuthor ization",DE(""))>
    </cflock>
    <cfif MM_Username EQ "" OR MM_UserAuthorization EQ "" OR
    ListFind("1,2",MM_UserAuthorization) EQ 0>
    <cfset MM_referer=CGI.SCRIPT_NAME>
    <cfif CGI.QUERY_STRING NEQ "">
    <cfset MM_referer=MM_referer & "?" &
    CGI.QUERY_STRING>
    </cfif>
    <cfset MM_failureURL="login.cfm?accessdenied=" &
    URLEncodedFormat(MM_referer)>
    <cflocation url="#MM_failureURL#" addtoken="no">
    </cfif>
    <cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
    <cfif IsDefined("FORM.MM_InsertRecord") AND
    FORM.MM_InsertRecord EQ "form1">
    <cfquery datasource="#Request.DSN#">
    INSERT INTO Users (Username, Password, FirstName, LastName,
    EmailAddress, Admin, Allowed, UserTypeID)
    VALUES (
    <cfif IsDefined("FORM.Username") AND #FORM.Username# NEQ
    "">
    '#FORM.Username#'
    <cfelse>
    NULL
    </cfif>
    <cfif IsDefined("FORM.Password") AND #FORM.Password# NEQ
    "">
    '#FORM.Password#'
    <cfelse>
    NULL
    </cfif>
    <cfif IsDefined("FORM.FirstName") AND #FORM.FirstName# NEQ
    "">
    '#FORM.FirstName#'
    <cfelse>
    NULL
    </cfif>
    <cfif IsDefined("FORM.LastName") AND #FORM.LastName# NEQ
    "">
    '#FORM.LastName#'
    <cfelse>
    NULL
    </cfif>
    <cfif IsDefined("FORM.EmailAddress") AND
    #FORM.EmailAddress# NEQ "">
    '#FORM.EmailAddress#'
    <cfelse>
    NULL
    </cfif>
    <cfif IsDefined("FORM.Admin")>
    Yes
    <cfelse>
    No
    </cfif>
    <cfif IsDefined("FORM.Allowed")>
    Yes
    <cfelse>
    No
    </cfif>
    <cfif IsDefined("FORM.UserTypeID") AND #FORM.UserTypeID#
    NEQ "">
    #FORM.UserTypeID#
    <cfelse>
    NULL
    </cfif>
    </cfquery>
    <cflocation url="index.cfm">
    </cfif>
    <cfquery name="rsUserTypes" datasource="#Request.DSN#">
    SELECT *
    FROM UserTypes
    ORDER BY UserType ASC
    </cfquery>

  • CF5 - CFLOCK issue

    Hi,
    I have this code that is called as CF TAG from a number of
    pages. It is doing a CFLOCK before performing a Write-Append to my
    log file.
    however, I do get error messages in the CF Application log
    such as this:
    "Error","344","01/26/09","14:45:49",,"130.201.18.6,
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR
    1.1.4322; .NET CLR 2.0.50727), Error processing CFFILE<P>
    Error attempting to write data to target file
    'D:\BillImage\LOG\L260109.log'.<P> Error: There was a sharing
    violation.<p>The error occurred while processing an element
    with a general identifier of (CFFILE), occupying document position
    (14:2) to (15:78).</p><P><P>Date/Time: 01/26/09
    14:45:49<BR>Browser: Mozilla/4.0 (compatible; MSIE 6.0;
    Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR
    2.0.50727)<BR>Remote Address: 130.201.18.6<BR>Query
    String: type=5&ivalue=211840236<P>"
    and another one:
    "Error","296","01/26/09","14:45:50",,"130.201.120.12,
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR
    1.1.4322; .NET CLR 2.0.50727), Error processing CFFILE<P>
    Error attempting to write data to target file
    'D:\BillImage\LOG\L260109.log'.<P> Error: There was a sharing
    violation.<p>The error occurred while processing an element
    with a general identifier of (CFFILE), occupying document position
    (14:2) to (15:78).</p><p>The error occurred while
    processing an element with a general identifier of (CFRETHROW),
    occupying document position (222:2) to
    (222:12).</p><P><P>Date/Time: 01/26/09
    14:45:50<BR>Browser: Mozilla/4.0 (compatible; MSIE 6.0;
    Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR
    2.0.50727)<BR>Remote Address: 130.201.120.12<BR>Query
    String: type=5&ivalue=239141077<P>"

    d: is local drive.
    could the problem be very slow network that caused 30 seconds
    not to be enough and since throwontimeout="no" no error was
    handled?

  • Fk error display on Action page

    I have a page that displays the content of a table. If you select one of the items and hit submit, it will navigate to another page that will allow you delete this item. Once the user hits delete the user is directed back to the page that displays the content of the table. If there is a fk error that needs to be displayed, is there a way to show this error on the page that displays the content of the table and not the page that has the delete button after the user hits the delete button?
    Thanks,
    Tim

    First, I would not be using ParameterExists as this function
    has been deprecated since CF 6 I believe and might not work in
    later releases, use IsDefined("Add") instead.
    Now on to your question, you cannot insert any values into
    fields such as autonumber or "auto identity" fields, the database
    inserts these values themselves when a new record is created.
    For this purpose I would not use <cfinsert, instead use
    <cfquery to insert into your database.
    <cflock timeout="30" throwontimeout="yes"
    name="InsertIntoConf2007Registration" type="EXCLUSIVE">
    <cftransaction>
    <cfquery name="Insert" datasource="DSSurvey">
    INSERT INTO Conf2007Registration (Name, Email, County, Title,
    Phone, Address1, Address2, PO, CityStateZip, Guests, Golfyes,
    Company, Allergies, Vegie2, Social, Comments)
    VALUES ('#form.Name#', '#form.Email#', '#form.County#',
    '#form.Title#', '#form.Phone#', '#form.Address1#',
    '#form.Address2#', '#form.PO#', '#form.CityStateZip#',
    '#form.Guests#', '#form.Golfyes#', '#form.Company#',
    '#form.Allergies#', '#form.Vegie2#', '#form.Social#',
    '#form.Comments#')
    </cfquery>
    <!--- @@identity is a built-in variable that holds only
    the most recent autonumber or auto identity value from a table, for
    this reason we wrap the entire section in a cflock so that we do
    not run into "race conditions" where 2 users could get the same
    value or swap values. Once an insert starts everyone else has to
    wait until the lock is finished so you guarantee that the newly
    inserted autonumber is actually correct for that insert --->
    <cfquery name="GetNewID" datasource="DSSurvey">
    SELECT @@identity AS TheNewlyInsertedID
    FROM Conf2007Registration
    </cfquery>
    <cfoutput>
    Your registration number is #GetNewID.TheNewlyInsertedID#
    </cfoutput>
    </cftransaction>
    </cflock>

  • Weird "undefined in form" error message: but is defined--can anyone help?

    Here is the <form> code:
    <!---Dynamically generated list of bowling center names--->
    <cfselect class="selectBox" name="regHomeCntr">
    <option selected="selected">Where is your home bowling center?</option>
    <cfloop query="getBowlCenters">
    <option value="#getBowlCenters.ctrName#">#getBowlCenters.ctrName#</option>
    </cfloop>
    the <cfform> passes the above info to template (below) for insertion into DB. Everything processes successfully (as can be seen by the variable table at the top of the web page). Even the name of the bowling center is passed as a variable to the processing page, but CF keeps telling me the variable is undefined although I can see that it has passed the variable to the next page. I thought it was because I had the <CFSELECT> wrong, but the variable is being passed no matter what is selected. I am stumped.
    Here is the code that is crashing:
    <cfquery name="getTournaments" datasource="#dbs#">
        SELECT *
        FROM tournamentFeatures
        WHERE tName = '#URL.tName#'
    </cfquery>
    <table>
    <tr>
    <td><strong>Variable Name</strong></td>
        <td><strong>Value</strong></td>
    </tr>
    <!--- Loops over the URL structure and outputs variable names and associated values --->
    <cfloop collection="#URL#" item="VarName">
    <cfoutput>
    <tr>
    <td>
        #VarName#</td>
        <td> #URL[VarName]#</td>
    </tr>
    </cfoutput>
    </cfloop>
    </table>
    <p></p>
    <table>
    <tr>
    <td><strong>Variable Name</strong></td>
        <td><strong>Value</strong></td>
    </tr>
    <!--- Loops over the FORM structure and outputs variable names and associated values --->
    <cfloop collection="#form#" item="VarName">
    <cfoutput>
    <tr>
    <td>
        #VarName#</td>
        <td> #form[VarName]#</td>
    </tr>
    </cfoutput>
    </cfloop>
    </table>
    <!---Inserts new tournament registration into the registration table--->
    <cflock name="addRegistrationRecord" type="exclusive" timeout="20">
    <cftransaction>
    <cfquery name="insertRegistration" datasource="RBDS">
    INSERT INTO
         tournamentReg
    SET
        tName = #URL.tName#,
         tDate = '#URL.tDate#'
         regDateTime = '#URL.regDateTime#',
         regNumber = '#URL.regNumber#'
         regFName = '#form.regFName#',
         regLName = '#form.regLName#',
         streetAddr = '#form.streetAddr#',
         cityStateZip = '#form.CityStateZip#',
         regPhone = '#form.regPhone#',
         regEmail = '#form.regEmail#',
         lastBook = '#form.lastBook#',
         usbcCard = '#form.usbcCard#',
            <cfif tName EQ #URL.tname# AND 'doubles' IS 'yes'>
              bowlWith2 = '#form.bowlWith2#',
            <cfelseif tName EQ #URL.tname# AND 'threePerTeam' is 'yes'>
              bowlWith3 = '#form.bowlWith3#',
            <cfelseif tName EQ #URL.tname# AND 'fourPerTeam' IS 'yes'>
              bowlWith4 = '#form.bowlWith4#',
            <cfelseif tName EQ #URL.tname# AND 'fivePerTeam' IS 'yes'>
              bowlWith5 = '#form.bowlWith5#',
            <cfelse>
              singlesTournament = '#form.singlesTournament#'
            </cfif>
              regHomeCntr = '#form.ctrName#'      (CRASHES HERE)
    WHERE
         tName = '#URL.tName#' AND tDate = '#URL.tDate#'
    </cfquery>
    Try the code for yourself on a live site to see what I mean.
    Go here first: http://www.renobowls.com/tournaments.cfm, then click on the button to the right of Test 2. You don't have to fill in any of the text areas but select one of the Bowling Centers from the drop down box. Then click "Register Me." You will see all the variables passed by the form at the top of the page...INCLUDING the Bowling Center you just selected from the drop down box on the previous page. How can it be passing the variable yet the query (insertRegistration) states it is not defined!!! UHGRRRR...

    Well...hmmm. This is a new one on me. Used to be so easy. What happened? I made the necessary changes but I am getting a totally new error message. I have checked the number of query fields against DB...all checks. Did the same in my queries (unless I am missing something). It states that I have a syntax error. Where? What? I cannot for the life of me see it. But then again we know how that works...looking at the same code all day. Here is what I start with:
    <cfquery name="addRegistration" datasource="RBDS">
    INSERT INTO
    tournamentReg
            (tDate, tName, regDateTime, regNumber, regFName, regLName, streetAddr, cityStateZip,
            regPhone, regEmail, lastBook, usbcCard, regNotify, regReturn, regMembership,
            regLeague, ctrName,
            <cfif tName EQ #URL.tName# AND 'doubles' IS 'yes'>
            BowlerTwoName, BowlerTwoBook,
            <cfelseif tName EQ #URL.tname# AND 'threePerTeam' is 'yes'>
            BowlerTwoName, BowlerTwoBook,
            BowlerThreeName, BowlerThreeBook,
            <cfelseif tName EQ #URL.tname# AND 'fourPerTeam' IS 'yes'>
            BowlerTwoName, BowlerTwoBook,
            BowlerThreeName, BowlerThreeBook,       
            BowlerFourName, BowlerFourBook,
            <cfelseif tName EQ #URL.tname# AND 'fivePerTeam' IS 'yes'>
            BowlerTwoName, BowlerTwoBook,
            BowlerThreeName, BowlerThreeBook,       
            BowlerFourName, BowlerFourBook,
            BowlerFiveName, BowlerFiveBook)
            <cfelse>
            singles,  )
      </cfif>
        VALUES
                <cfif tName EQ #URL.tname# AND 'doubles' IS 'yes'>
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoBook#">,
                <cfelseif tName EQ #URL.tname# AND 'threePerTeam' is 'yes'>
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoBook#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeBook#">,
                <cfelseif tName EQ #URL.tname# AND 'fourPerTeam' IS 'yes'>
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoBook#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeBook#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFourName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFourBook#">,
                <cfelseif tName EQ #URL.tname# AND 'fivePerTeam' IS 'yes'>
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoBook#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeBook#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFourName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFourBook#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFiveName#">,
                     <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFiveBook#">,
                <cfelse>
                  <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.singles#">,
                </cfif>
            <cfqueryparam cfsqltype="CF_SQL_DATE" value="#URL.tdate#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#URL.tname#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#URL.regDateTime#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#URL.regNumber#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regFName#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regLName#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.streetAddr#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.cityStateZip#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regPhone#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regEmail#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.lastBook#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.usbcCard#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regNotify#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regReturn#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regMembership#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regLeague#">,
                <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.ctrName#">
    </cfquery>
    Here is what I get:
    Variable Name
    Value
    TNAME
    Teusday
    REGNUMBER
    5219531
    TDATE
    3/13/10
    REGDATETIME
    02/16/10 - 7:58:00 PM
    Variable Name
    Value
    CTRNAME
    Gold Dust West Bowling Center
    REGPHONE
    813-0850
    REGNOTIFY
    Yes
    REGEMAIL
    [email protected]
    REGRETURN
    Yes
    USBCCARD
    8130-5042
    REGLEAGUE
    No
    LASTBOOK
    191
    REGFNAME
    Rick
    CITYSTATEZIP
    Reno, NV 89523
    REGISTER
    Register Me
    SINGLES
    yes
    REGNUMBER
    9503574
    REGMESSAGE
    test 7:45PM
    FIELDNAMES
    REGNUMBER,REGDATETIME,REGFNAME,REGLNAME,REGPHONE,REGEMAIL,CTRNAME,USBCCARD,LASTBOOK,STREET ADDR,CITYSTATEZIP,SINGLES,REGNOTIFY,REGRETURN,REGMEMBERSHIP,REGLEAGUE,REGMESSAGE,REGISTER
    STREETADDR
    105 N. McCarran Blvd.
    REGLNAME
    Rossiter
    REGMEMBERSHIP
    No
    REGDATETIME
    02/16/10 - 7:44:48 PM
    Error Occurred While Processing Request
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
    The error occurred in C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 323
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 218
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 217
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 1
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 323
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 218
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 217
    Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 1
    321 :             <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regMembership#">,
    322 :             <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regLeague#">,
    323 :             <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.ctrName#">
    324 :   )
    325 : 
    SQL
       INSERT INTO tournamentReg (tDate, tName, regDateTime, regNumber, regFName, regLName, streetAddr, cityStateZip, regPhone, regEmail, lastBook, usbcCard, regNotify, regReturn, regMembership, regLeague, ctrName, singles, ) VALUES ( (param 1) , (param 2) , (param 3) , (param 4) , (param 5) , (param 6) , (param 7) , (param 8) , (param 9) , (param 10) , (param 11) , (param 12) , (param 13) , (param 14) , (param 15) , (param 16) , (param 17) , (param 18) )
    DATASOURCE
      RBDS
    VENDORERRORCODE
      -3502
    SQLSTATE
      42000

  • Application timeout error

    Hi all,
    Can anyone please tell me why a timeout error is displaying after 10 or 15 min in a PCUI application if we are not using it?
    How can I rectify that error?
    Class: CL_CRM_BSP_FRAME_MAIN
    method:DO_REQUEST
    Regards,
    Ranjith.

    without seeing the code its nearly impossible to help.
    But here are a few questions - you're using application.cfm
    so are you checking if the application is already initialised on
    the second page request rather than reinitialising it all over
    again?
    If you're getting an application scope timeout then it would
    maybe suggest you're using a CFLOCK with a timeout that is too
    short for the code execution in between the lock. If there error is
    present 9 times out of 10 it won't go away just by clicking
    refresh

  • Flash and cflock

    Running Coldfusion8
    Flex 3
    I am trying to do a cflock (either session or application) in a function.
    I get the error message:
    "Cannot use cflock to lock the application or session shared scopes without these scopes  being established through the use of the cfapplication tag. To use the session  scope you need to enable session management. Application and/or Session variables  must also be enabled in the ColdFusion Administrator."
      faultString = "Unable to invoke CFC - Cannot lock Application scope."
    Session management is enabled in both the administrator and Application.cfc.
    I am thinking that RemoteObject is not going though the "Application.cfc" and is
    just doing a direct call to the ColdFusion Component.
    How do I get thread-safe removeobject calls?
    Any ideas how to resolve this problem?

    Visit http://support.apple.com/kb/DL1399 and reinstall the update.
    Also please update your profile it indicates you are using:
    G4, MacBook Air, and Ipod Touch, Mac OS X (10.5.6) so it's kind of confusing.

  • CFLock Challenge with CFObject in Application.cfc

    I occasionally get a cflock error when running an application
    in the morning. I moved several cfobject lines into the
    application.cfc onApplicationStart method. Some of the methods in
    the objects use cflock to read a session variable.
    Here is the error:
    Cannot lock session scope. Cannot use cflock to lock the
    application or session shared scopes without these scopes being
    established through the use of the cfapplication tag. To use the
    session scope you need to enable session management. Application
    and/or Session variables must also be enabled in the ColdFusion
    Administrator. <br>The error occurred on line 5.

    Have you ensured the Application variables and Session
    variables are enabled in the Coldfusion Administrator?.
    If so, try replacing your <cfscript> block with normal
    <cfset> statements and see if it is working..

  • Cflock question

    server 2003
    dual Zeon 2.4 processors
    2GB ram
    Coldfusion 6.1
    We have an application that people use to upload images. We
    found that the 3rd party component that we use to process images is
    using about 25% cpu per image that it processes. Because of this we
    added an exclusive lock around the processing code so that when we
    have simultaneous users processing images it doesn't grab all our
    server's cpu.
    What's been happening lately is that we have users timing out
    (20 sec default) when trying to login to our application or perform
    other tasks within the application that are exclusively locked.
    Does exclusively locking one piece of code affect other
    unrelated exclusively locked pieces of code within the same
    application? That seems to be what is happening and I would really
    appreciate anybody's input on this. Our cpu is at 25-30% during the
    locking timeout errors and the ram is 50% utilized. Not enough
    resources used to be timing out login requests I would think.
    Should we be using named exclusive locks to seperate the
    image processing code from the login code or something else we have
    missed from the docs?
    Thanks in advance for any insight to how this works.

    You would want to use a named lock for any code that accesses
    the image processing component.
    e.g.
    <cflock name="imgComponentLock" timeout=30
    type="Exclusive">
    If you want to only restrict access to a certain file you
    could use the filename as the lock name.

  • Application scope inside error handler

    Hi,
    I am not using the onError method. I am instead using the "Site-wide Error Handler" setting in the CF administrator to direct errors to an error.cfm page. Everything is working well but it appears that I do not have access to the application scope in that error.cfm error handling page.
    How can I get access to the application scope in that error handling page?
    Thanks,
    Andre

    without seeing the code its nearly impossible to help.
    But here are a few questions - you're using application.cfm
    so are you checking if the application is already initialised on
    the second page request rather than reinitialising it all over
    again?
    If you're getting an application scope timeout then it would
    maybe suggest you're using a CFLOCK with a timeout that is too
    short for the code execution in between the lock. If there error is
    present 9 times out of 10 it won't go away just by clicking
    refresh

  • Cookie Error

    Hi all -
    I've been scratching my head over this one. Any help would be
    appreciated...
    Every 1 to 6 days I receive an error like the following:
    "Element is undefined in a Java object of type class
    coldfusion.runtime.CookieScope referenced as The specific sequence
    of files included or processed is:
    /var/www/html/mysite/www/js/myjs.cfm, line: 418"
    Attached code shows the page code snippet that apparently
    causes the error. This is the code at the very top of the page and
    the rest of the page code just outputs database variables into text
    strings for display.
    The page doesn't have anywhere near 418 lines even
    considering INCLUDEd files, and the code doesn't explicity do any
    cookie manipulation.
    When I remove the cfcache the problem stopped for 16 days, at
    which time I put the cfcache back in. This indcates that the
    cfcache is at least part of the problem, and is probably is most or
    all of it.
    Some considerations are:
    1) I'm running CFMX 7,0,2,142559
    2) I'm running on a Linux box
    3 I'm setting Domain cookies in the Application.cfm
    4) In the web server logs I find that the error occurs when a
    browser requests the cfm file at the same time (or within a second
    or two before) the site IP itself calls the template to recache it.
    (The site's IP calls the template with a cfnocache=true URL param
    to force the recache.) If a browser calls the template immediately
    after the recache then there is no error.
    Any ideas for workarounds?

    I have not yet determined the problem. On the bright side, I
    have found numerous ways to not fix it.
    Since my original posting on 11/27 I have tried the
    following:
    1) Found somethign on the web indicating that "Macromedia"
    does not recmmend using ServerCache as and "action" type. I changed
    it to plain old "cache", but still receive the error.
    2) Moved the server cache directory to a custom location (to
    ease debugging). My expectations that this would not help were
    fulfilled.
    3) Added server and port params to match what was used by
    default in previous version of ColdFusion, but which no longer are
    defaults. Didn't help.
    4) Attempted cflock, but that caused an error no matter where
    it was placed.
    5) Removed all timeout/timespan params from the cache tag,
    then set up a scheduled task to run action="flush" every x minutes.
    Didn't help.
    I'm currently at a loss for what else to try. The only
    solution I can think of is to remove the cfcache altogether and
    hope browser caching of the file will relieve the server enough.
    It does indeed appear to me to be a race condition, but I
    can't get cflock to work - not sure what to wrap in the cflock
    tag.

Maybe you are looking for

  • How can I load a picture and use it in ActiveX in run time ??

    I am using an ActiveX object which needs a property "picture" as input. I can set the picture property in its property page in design time, but I don't know how to give it a "picture" in run time. In VB, I can do: dim pic As Picture pic = loadpicture

  • Module Pool Text Editor Problem

    Hi I have developed module pool program which has 3 tab strips. In the last (3rd) Tab Strip I need to input Long Text. I have the done the coding but when I go to the Last tab and then come back to any other tabs, the text editor is overwriting the o

  • Spotlight Problems

    I know there are a lot of threads about Spotlight not working properly, but I've read through all of them and none of the answers have helped me. I have not yet resorted to the archive and install method, and I would rather not. Anyhow, my Spotlight

  • Creating Image "photography_chris.dmg" Unable to create , resource busy

    I have re-started the mac but to no avail, this appears in the console log. I haven't a clue. Thankyou. Creating Image "photography_chris.dmg" Unable to create "photography_chris. Resource busy. Have searched google but everyone is is giving complex

  • Can a busines customer order MacBook (or MBP) without iSight?

    I've read in past threads and on other online forums about the concerns of business MacBook (or MBP) users needing to have a portable without the iSight web cam. I guess with the original MacBook design it was possible to pay a 3rd party or perhaps e