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.
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.
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
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.
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.