A couple of things....
- Does the framework have a "debug" or "development" mode setting. This
would be a setting that causes it to reinitialize everything with each
request. That's fine for development, but in production you want it to
initialize persistent stuff only once (i.e. Application variables)
- Are you using Application.cfc and if so is your application variable
loader in the onApplicationStart() function?
-If you are using appplication.cfm do you have a logic block around your set
statements that keeps them from being overwritten with each new request?
Something like...
<cfif not isDefined('appplication.somevar')>
<cfset application.blah = "value1"/>
<cfset application.somevar = "value2"/>
</cfif>
- Are you stuffing any complex objects into the application scope (i.e.
components)? If you are, and if you reference return value objects from
those components in another persistent scope like "sesssion" you can end up
with unexpected errors and memory issues.
That's all I can think of...
Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com
-----Original Message-----
From: mark cianciulli [mailto:[email protected]]
Sent: Wednesday, December 17, 2008 8:19 AM
To: cf-linux
Subject: Application variable problems
Hello, I am running cf8 on CentOS 5.2. The framework I am using, like
otheres, loads the config.xml file into the application variables. It seems
to be fine for a bit, then I start getting errors about null pointers and
that the application variables don't exist. Any one have any ideas on what
the issue may be??? Thanks Mark
~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive: http://www.houseoffusion.com/groups/cf-linux/message.cfm/messageid:4480
Subscription: http://www.houseoffusion.com/groups/cf-linux/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14