RE: WDDX Error in CFMX
Tricky... -Original Message- From: Reilly, Jim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 1:36 PM To: CF-Talk Subject: RE: WDDX Error in CFMX 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: ... Where the cf_wddxcapture tag works off the returned servlet output stream (wddx). and calls this: 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: #cfservlet.output# < 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 ... with ... 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, . 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: > 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: > > > > > ... > > > > > > > > Tkx, > James M. Reilly > GlobalSpec > 350 Jordan Road > Troy, NY 12180 > Tel: 518.880.0200 x318 > Fax: 518.880.0250 > __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. 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
RE: WDDX Error in CFMX
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: ... Where the cf_wddxcapture tag works off the returned servlet output stream (wddx). and calls this: 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: #cfservlet.output# < 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 ... with ... 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, . 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: > 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: > > > > > ... > > > > > > > > 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
RE: WDDX Error in CFMX
Jim, I have a thought. If you are like me, you might use to cut down on white space. If you use this settng at the top, then use to create your packet and to store it in a var as in: ... The end result with be a wddx packet without the head and tail - which would produce the error you reference. The tag could also be in the custom tag as well. That sort of thing has happened to me before. That's my only thought - my mind is peaceful blank now . -mk -Original Message- From: Reilly, Jim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 10:58 AM To: CF-Talk 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 ... with ... 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, . 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: > 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: > > > > > ... > > > > > > > > Tkx, > James M. Reilly > GlobalSpec > 350 Jordan Road > Troy, NY 12180 > Tel: 518.880.0200 x318 > Fax: 518.880.0250 > __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm 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
RE: WDDX Error in CFMX
Can I see the full packet as you are passing it to cfwddx? Also, I'd add a debug statement before the cfwddx tag: I'm going to pass in: #htmlEditFormat(thisTag.generatedContent)# Confirm that thisTag.generatedContent is what you think it is. === 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: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 ... with ... 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, . 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: > > > 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: > > > > > > > > > > ... > > > > > > > > > > > > > > > > Tkx, > > James M. Reilly > > GlobalSpec > > 350 Jordan Road > > Troy, NY 12180 > > Tel: 518.880.0200 x318 > > Fax: 518.880.0250 > > > __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm 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
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 ... with ... 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, . 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: > 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: > > > > > ... > > > > > > > > Tkx, > James M. Reilly > GlobalSpec > 350 Jordan Road > Troy, NY 12180 > Tel: 518.880.0200 x318 > Fax: 518.880.0250 > __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm 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
RE: WDDX Error in CFMX
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 ... with ... 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, . 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: > 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: > > > > > ... > > > > > > > > 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
RE: WDDX Error in CFMX
there is a packet length in CF5, but you say it works in that. wierd?.. -Original Message- From: Reilly, Jim [mailto:[EMAIL PROTECTED]] Sent: 24 September 2002 16:12 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: (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: ... Tkx, James M. Reilly GlobalSpec 350 Jordan Road Troy, NY 12180 Tel: 518.880.0200 x318 Fax: 518.880.0250 __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm 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