Show us how and when the XML is stored in the session scope; it sounds
like a race condition.

On 1/23/07, Chad Gray <[EMAIL PROTECTED]> wrote:
> Well I have narrowed it down some more.  I took out the onError function so 
> the standard CF errors would be displayed.  After a few tries I finally got 
> the error to occur.  So it is not an application.cfc problem, but an XML 
> parsing problem.
>
> Here is the error:
> http://chadgray.info/misc/cfError2.jpg
>
> It is like a performance problem.  If I hit the pages hard and really press 
> the server the more often I run into this error.  The error does not always 
> occur in the same place on the page.
>
> The XML data that the CF server is saying is null really is there and here it 
> is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <preferences>
> <elementView>
>         <JID view="false"/>
>         <history view="false"/>
>         <SKU view="false"/>
>         <ElementDescription view="true"/>
>         <ElementType view="true"/>
>         <page view="true"/>
>         <TypeOfShot view="true"/>
>         <SimpleORAdvanced view="false"/>
>         <Props view="false"/>
>         <OutlineType view="false"/>
>         <notes view="false"/>
>         <careyNotes view="false"/>
>         <Round view="false"/>
>         <ElementStatus view="true"/>
>         <ElementStatusDate view="false"/>
> </elementView>
> <pageView>
>         <PageName view="true"/>
>         <JID view="true"/>
>         <Round view="true"/>
>         <history view="false"/>
>         <PageStatus view="true"/>
>         <PageStatusDate view="true"/>
>         <Notes view="true"/>
>         <careyNotes view="true"/>
> </pageView>
> </preferences>
>
> I setup a test site and stripped my programming WAY down...  no CSS only 
> display data and use the XML.  I cannot get the error to occur.
>
> Should I not store my XML as a session variable?
>
> Is there a better way of parsing the XML then this:
> <cfif session.prefs.preferences.elementView.ElementStatus.XMLAttributes.view 
> EQ "true">
>
> Chad
>
>
> -----Original Message-----
> From: Chad Gray [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 22, 2007 12:11 PM
> To: CF-Talk
> Subject: application.cfc problems fixed now i hit my real error
>
> Thanks Will, that did solve one of my problems.
>
> But now I am running into my original problem that I was trying to figure out 
> by simplifying my onError function.
>
> On one of my pages when the user is adding a new record I do a pop up window 
> so they can enter the new records information.  When they hit submit the page 
> submits to an action page that run this javascript to refresh the parent 
> window and closes the pop up window.
>
> <script language="javascript">
> opener.location.reload();
> self.close();
> </script>
>
> When the parent window refreshes the onError function in the application.cfc 
> fires and I get an email with this dump:
>
> http://chadgray.info/misc/cferror.jpg
>
> Now see how it is staring to display the data on the page then errors.  It 
> does not always stop at this location.  Next time I add a new record it will 
> stop further down the page or higher up.
>
> Now on this page that errors I am using some XML that is stored in a session 
> variable to decide if I show the column of data or not.
>
> <table cellspacing="0" cellpadding="0" class="elementList">
>   <tr>
>         <th>&nbsp;</th>
>         <cfif session.prefs.preferences.elementView.JID.XMLAttributes.view>
>                 <th>JID</th></cfif>
>     <cfif session.prefs.preferences.elementView.SKU.XMLAttributes.view>
>                 <th>SKU</th></cfif>
>
> ........ etc...
>
>
> I think the cfifs on my session XML is what is causing the crash.  In the 
> stack trace there is mentioning of XML.
>
> I don't know why though....  If I hit refresh the page works fine.  It only 
> does it when I do my add new record as I described above.
>
> If I take the onError function out of my Application.cfc then I never hit the 
> error.  The page works fine.
>
> Is there any way to submit this to Adobe so they can tell me if this is a bug 
> in CF or my programming skills or lack there of.  :)
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267231
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to