Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8817353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:49:36+00:00 2026-06-14T04:49:36+00:00

I am using ColdFusion 8 and jQuery. I am working on a page that

  • 0

I am using ColdFusion 8 and jQuery.

I am working on a page that does several ajax calls via jQuery. Quite frequently, I see an application timeout error on one of the pages that is called via ajax. I do not get the error on every ajax call. I do not get the error on the same call each time.

From what I understand the error is caused by the different pages each trying to access the same application variable at the the same time. I am not sure what is the best approach to resolve the issue.

The code seems to be setting a two second timeout. This seems excessive. Should the cflock be set to readonly? Any other advice?

 A timeout occurred while attempting to lock the Application scope.

 The error occurred in E:/INETPUB/WWWROOT/DEV/AVCAT/Application.cfm: line 53
 Called from E:/INETPUB/WWWROOT/DEV/Application.cfm: line 1
 Called from E:/INETPUB/WWWROOT/DEV/Application.cfm: line 53
 Called from E:/INETPUB/WWWROOT/DEV/Application.cfm: line 1

 51 : 
 52 : <!---<cfif NOT IsDefined("application.datasource")>--->
 53 :   <cflock timeout="#CreateTimeSpan(0,0,2,0)#" SCOPE="Application">
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:49:38+00:00Added an answer on June 14, 2026 at 4:49 am

    The timeout attribute of the cflock tag is expecting seconds. So if you want a two minute timeout period than the timeout attribute should be set to 120. Like this (and I agree that seems excessive):

    <cflock timeout="120" SCOPE="Application">
    

    The CreateTimeSpan() function returns a date/time object. I’m not sure how your cflock is interpreting that value for the timeout.

    As far as using an exclusive lock versus a readonly lock. If your code is only reading the application scope variables than use a readonly lock. If your code is setting the application scope variables than use an exclusive lock. Using an exclusive lock, which you are using by not specifying the type attribute, will cause that code to be single threaded. That may be your issue there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using ColdFusion (Railo 3.3), and I have several forms using jQuery that
I'm looking into using Jquery to replace some of our native Coldfusion ajax functionality.
I am working on a ColdFusion 8 training application where I'm making some AJAX
I am using jQuery 1.6.2 and ColdFusion 9. When a page is requested, many
I am using ColdFusion 8 and jQuery 1.7. ** This is a programming question,
I have a form that validates using the jQuery plugin: Validation, v1.9.0. The validation
I'm using coldfusion and jquery. This is my first real go at jquery and
When using ColdFusion ORM where you have several tables with relationships can I bind
I am using ColdFusion 8.0.1. I am writing a little code in the application
I'm trying to setup user authentification in Jquery Mobile/Coldfusion8. I'm using Coldfusion for just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.