|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Application variable problemsHello, 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:4479 Subscription: http://www.houseoffusion.com/groups/cf-linux/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14 |
|
|
RE: Application variable problemsA 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:mcianciulli@...] 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=17837.14401.14 |
|
|
Re: Application variable problemsNo debug or dev setting. I am still using the old application.cfm, and there are logic blocks in there. Basically, it looks to see if the application.framework variable exists, or if the page request does not exist. That is what is strange, it will error out saying that the application.framework is not in the application scope.
Nothing complex about the application variables, just view and controller nodes. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:4481 Subscription: http://www.houseoffusion.com/groups/cf-linux/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14 |
|
|
Re: Application variable problemsbtw, it worked fine on windows server. I went through and corrected all the case-sensitive problems.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:4482 Subscription: http://www.houseoffusion.com/groups/cf-linux/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14 |
|
|
RE: Application variable problemsWhat do you mean by "if the page request does not exist"?
How are you handling the "name" of the application (as in <cfapplication name="blah" ..>) Ok... If it's a Linux vs. windows problem, make sure that the file is named "Application.cfm" and not "application.cfm" (note the capital "A"). -Mark 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:mcianciulli@...] Sent: Wednesday, December 17, 2008 8:49 AM To: cf-linux Subject: Re: Application variable problems No debug or dev setting. I am still using the old application.cfm, and there are logic blocks in there. Basically, it looks to see if the application.framework variable exists, or if the page request does not exist. That is what is strange, it will error out saying that the application.framework is not in the application scope. Nothing complex about the application variables, just view and controller nodes. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:4483 Subscription: http://www.houseoffusion.com/groups/cf-linux/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14 |
|
|
Re: Application variable problemsIf this is the old application.cf you ran on windows is the "a" in
application upper cased like this "Application.cfm"? This is critical on non-windows file systems. Wil Genovese Sr. Web Application Developer On Wed, Dec 17, 2008 at 8:48 AM, mark cianciulli <mcianciulli@...>wrote: > No debug or dev setting. I am still using the old application.cfm, and > there are logic blocks in there. Basically, it looks to see if the > application.framework variable exists, or if the page request does not > exist. That is what is strange, it will error out saying that the > application.framework is not in the application scope. > > Nothing complex about the application variables, just view and controller > nodes. > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:4484 Subscription: http://www.houseoffusion.com/groups/cf-linux/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14 |
|
|
Re: Application variable problemsIf the page request, action=somepage, is not found in the config file, it will try to reload the xml file to see if there was a change to the file. You will probably say that i have a case problem and it is tryin to reload the config, but i can click on the same thing, 8 times it will work, 2 times it will error.
i have the capital A, found that one out in about a minute after i tried to run it! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:4485 Subscription: http://www.houseoffusion.com/groups/cf-linux/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14 |
| Free embeddable forum powered by Nabble | Forum Help |