I found the problem in CFMX.
(Raymond, thx for the help!!!)

The problem was that I was wrapping the WDDX returned from a servlet in a
tag like:

<cf_wddxcapture output="SupplierList">
        <CFSETTING ENABLECFOUTPUTONLY="NO">
        <cfservlet 
                code="#attributes.code#" 
                writeoutput="yes" 
                debug="no"
                jrunproxy="#attributes.jrunproxy#">

                ...
        </cfservlet>
</CF_WddxCapture>

        Where the cf_wddxcapture tag works off the returned servlet output
stream (wddx).
                and calls this:
                <cfwddx input="#Trim(ThisTag.GeneratedContent)#"
output="tempVar" action="wddx2cfml" validate="#variables.validate#"> 


The writeoutput="yes" does not work the same as in CF5.
Meaning, it did not write it out to the screen.


So, the fix was to change the writeoutput="yes"  to writeoutput="NO" 
and then at the end do this:
<CFOUTPUT>#cfservlet.output#</CFOUTPUT>          <----  BEWARE



I understand that CFSERVLET is deprecated in CFMX, but should still work.
Are they any documented (or un-documented) differences in the CFSERVLET tag
from CF5 to CFMX?


I have also noticed some strange-ness on CGI variables being passed in
automatically (or lack there of in CFMX.)   <----  BEWARE




Finally, if I were to change from CFSERVLET to the preferred method:
        GetPageContext().include(path)
        GetPageContext().forward(path)

How would I be able to call a servlet that is on another machine???
  (I assume CFHTTP would work, but expensive in terms of performance.)
Any thoughts...???


Tkx,
Jim




 
 
Tkx,
James M. Reilly
GlobalSpec
350 Jordan Road
Troy, NY 12180
Tel:  518.880.0200 x318
Fax: 518.880.0250


-----Original Message-----
From: Reilly, Jim 
Sent: Tuesday, September 24, 2002 11:58 AM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: RE: WDDX Error in CFMX


Raymond,

1) There is no datetime tags.
2) There are no quotes as keys, just in the values.

3) I added the Trim.

Still no luck!  I appreciate the help!!!



You or anyone else have a thought...?


Tkx,
Jim

 
 
Tkx,
James M. Reilly
GlobalSpec
350 Jordan Road
Troy, NY 12180
Tel:  518.880.0200 x318
Fax: 518.880.0250


-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 11:28 AM
To: CF-Talk
Subject: RE: WDDX Error in CFMX
Importance: Low


There are two confirmed WDDX bugs that may be affecting you:

1) Does your packet contain any date time info? Any large packet with
datetime info will not be deserialized. You must do a regex and replace
any <datetime>...</datetime> with <string>...</string> This will have
zero impact on your ability to use the data.

2) Does your data contain a structure with a key containing a single
quote? Ie, <cfset foo["ray's world"]>. This will not be deserializable.

Also - try adding a trim around the ThisTag.generatedcontent.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Reilly, Jim [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, September 24, 2002 11:12 AM
> To: CF-Talk
> Subject: WDDX Error in CFMX
> 
> 
> I am testing on CFMX Pro box, that has code that currently 
> works in CF 5.
> 
> I am getting this error:
> WDDX packet parse error at line 1, column -1. Document root element is
> missing.. 
> 
> From this line:
> <cfwddx input="#ThisTag.GeneratedContent#" output="tempVar"
> action="wddx2cfml" validate="no">
> 
> (Note: The WDDX packet is rendered from a servlet, ie: our 
> own wddx packet).
> The packet is about 40940 bytes in length.
> 
> 1.) Is there a wddx length restriction?  (as possible seen 
> from CF Forums?)
> 
> 2.) Or any other wddx oddities or change in definition in 
> wddx from CFMX?
> 
> 
> Here are the top and bottom headers:
>       <wddxPacket version="1.0">
>               <header></header>
>               <data>
>                       <struct>
>                               ...
>                       </struct>
>               </data>
>       </wddxPacket>
> 
> 
> 
> 
> Tkx,
> James M. Reilly
> GlobalSpec
> 350 Jordan Road
> Troy, NY 12180
> Tel:  518.880.0200 x318
> Fax: 518.880.0250
> 

______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to