I don't understand what is happening. Anyone see something in my application.cfc that would cause this error? I can get rid of the error by reinitialing the application.
I get this error every once in a while. It is like the application is not re-initialzing right and my application variables are lost when a user hits the web site and tries to use the application.cart variable. The application.page variable works fine. It display the pages etc. Error Info: Message: Element CART is undefined in a Java object of type class [Ljava.lang.String; referenced as Detail: Root Cause: Type: Expression Template: /act_addCartItem.cfm? Tag Context: Here is my application.cfc <cfcomponent> <cfset this.name = "testSite"> <cfset this.sessionManagement = true> <cffunction name="onApplicationStart"> <cfset application.dsn = "datasource1"> <cfset application.page = createObject("component", "com.testSite.pages")> <cfset application.cart = createObject("component", "com.testSite.cart")> <cfreturn true> </cffunction> <cffunction name="onRequestStart"> <cfargument name="thePage" type="string" required="true"> <cfif isdefined("URL.reinit")> <cfset onApplicationStart() /> </cfif> </cffunction> <cffunction name="onRequestEnd" returnType="void" output="false"> <cfargument name="thePage" type="string" required="true"> <cfset var cfid_local = ""> <cfset var cftoken_local = ""> <!--- if the user closes their browser, make sure all session variables get killed ---> <cfif isdefined("Cookie.CFID") and isdefined("Cookie.CFTOKEN")> <cfset cfid_local = cookie.cfid> <cfset cftoken_local = cookie.cftoken> <cfcookie name="CFID" value="#cfid_local#"> <cfcookie name="CFTOKEN" value="#cftoken_local#"> </cfif> </cffunction> </cfcomponent> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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-talk/message.cfm/messageid:315366 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4