WDDX Serializer Issue

Hi, Folks:

I know this is not specifically related to ColdBox, but hoped someone
might have ran into this problem and knows of a workaround.

In my ColdBox application, running 2.6.x with CF 9 on Windows, if an
error occurs, and it is not a business rule violation (eg: database
error), I am trapping this and collecting the cfcatch data into a
database for diagnostic purpose.

I have used this method many times in the past, but not in a CF 9
environment. Basically, the database stores summary information (ie:
date/time, errorId as GUID, template in error, along with a structure
in WDDX string (CLOB) that details the tagContext and additional
information, such as query string, parameters, etc.)

The errorInfo is encapsulated in a value object.

Everything work perfectly except when I try to WDDX the error details.
The error details are just a standard ColdFusion data structure. The
CFWDDX causes the following error:

WDDX packet parse error at line 1, column 1. Content is not allowed in
prolog...

I've found numerous posts on Google related to this problem with
xmlParse() involving BOM characters, but haven't seen anything
regarding structs.

Again, sorry for posting here on the CB group, but hoped someone might
have a clue on this.

Cheers!

I am not sure that this is the problem, but have you got any whitespace
before the root nodes? That error message is very good at popping up when
there is.

Regards,
Andrew Scott
http://www.andyscott.id.au/

From: coldbox@googlegroups.com [mailto:coldbox@googlegroups.com] On
Behalf Of ClearCoder
Sent: Thursday, 30 September 2010 1:32 PM
To: ColdBox Platform
Subject: [coldbox:5994] WDDX Serializer Issue

Hi, Folks:

I know this is not specifically related to ColdBox, but hoped someone

might

have ran into this problem and knows of a workaround.

In my ColdBox application, running 2.6.x with CF 9 on Windows, if an error
occurs, and it is not a business rule violation (eg: database error), I am
trapping this and collecting the cfcatch data into a database for

diagnostic

purpose.

I have used this method many times in the past, but not in a CF 9
environment. Basically, the database stores summary information (ie:
date/time, errorId as GUID, template in error, along with a structure in

WDDX

string (CLOB) that details the tagContext and additional information, such

as

query string, parameters, etc.)

The errorInfo is encapsulated in a value object.

Everything work perfectly except when I try to WDDX the error details.
The error details are just a standard ColdFusion data structure. The

CFWDDX

Hi, Andrew:

Thanks for your response. I don't know how I could have whitespace, since what I am trying to serialize is a ColdFusion structure, rather than XML.

Kevin S. Anderson
Superlative Solutions, Inc.

Try getting the XML and creating a new XML document in eclipse, paste it and see what it reports as wrong. The XML editor that is. I belieeve you must have either cfbuilder or the wtp eclipse tools installed to check this.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

This is probably a “dead” issue. To reiterate, the object I am attempting to serialize is a STRUCTURE, not XML. Thanks, however, to everyone who responded. It may be a bug in CF 9, not sure. I do have the 9.0.1 updater installed, but have not installed the CUM hotfixes. Maybe I’ll try that.

Kevin S. Anderson

Superlative Solutions, Inc.