ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 6th, 2012, 12:27 PM
rawk rawk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 72 rawk User rank is Private First Class (20 - 50 Reputation Level)rawk User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 8 h 37 sec
Reputation Power: 9
Application scope losing variables

My app is setup to email me the details of any runtime errors when they occur. Additionally, on every request, my controller looks for an updated config.xml (by file modified date) to refresh certain application variables should the data in that xml file change. All requests to my application go through the controller.

The problem I'm seeing is some of my scheduled tasks are failing. The error being reported is that the expected application scope variables do not exist -- which should not be possible because the controller initializes them if they don't exist before processing the request. My application is also set to send me an email on the first request it receives after the server has been started (allowing me to track unexpected reboots and server restarts). I am not receiving these emails so I can conclude that the server is not restarting unexpectedly.

Any ideas why my application variables would be getting cleared without the server restarting? I have no code in place to clear these variables -- only code to set them.

Reply With Quote
  #2  
Old September 6th, 2012, 12:52 PM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,091 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 2 h 53 m 27 sec
Reputation Power: 966
Application variables also have a time out, either set in the Application.cfc/.cfm, or whatever is set in the CF administrator.

Reply With Quote
  #3  
Old September 6th, 2012, 12:57 PM
rawk rawk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 72 rawk User rank is Private First Class (20 - 50 Reputation Level)rawk User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 8 h 37 sec
Reputation Power: 9
Yeah, I've considered the timeout. But I have it set to 7 days in the console and 1 day in Application.cfm. I see these errors pop up a couple of times per day.

Additionally, this only started happening after I migrated my system to a Windows Server 2008 machine.

Reply With Quote
  #4  
Old September 6th, 2012, 03:28 PM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,091 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 2 h 53 m 27 sec
Reputation Power: 966
Not sure then. Which version of CF are you on? My guess is that it must be something in either your initialization logic, the order things are happening, a race condition, or a server config issue.
Comments on this post
rawk agrees!

Reply With Quote
  #5  
Old September 6th, 2012, 05:03 PM
rawk rawk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 72 rawk User rank is Private First Class (20 - 50 Reputation Level)rawk User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 8 h 37 sec
Reputation Power: 9
I'm actually using Open BlueDragon, so it could very well be a bug in the build I'm using. I posted it to their google group, so I was mostly hoping someone here might suggest something simple that I'm overlooking. Thanks for your input.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Application scope losing variables

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap