Skip to main content
Participant
October 23, 2009
Question

WDDX packet parse error on CF development server

  • October 23, 2009
  • 3 replies
  • 7454 views

We have been getting an error on our development server since 10/8/09.

Error is "WDDX packet parse error at line 1, column 1. Content is not allowed in prolog."  Since this error has started, we have been unable to get the our development website to open.  Has anyone seen this error and do you know how to fix it?

    This topic has been closed for replies.

    3 replies

    Participant
    August 8, 2012

    I had this problem as well, however my solution was a little more simple. Some where in the code is probably a line like so:

    <cfwddx action="wddx2cfml" input="someVariable" output="anotherVariable">

    My problem was that someVariable needed to be wrapped like so #someVariable#

    <cfwddx action="wddx2cfml" input="#someVariable#" output="anotherVariable">

    This solved my problem.

    BKBK
    Community Expert
    Community Expert
    October 24, 2009

    The error message usually suggests that there is a character (which may be a space or byte order mark) before the line <?xml version="1.0" encoding='UTF-8'?>. Assuming your encoding is the default UTF-8, you could remove any space or BOM by starting with a line similar to the following,

    <cfset trimmed_packet = replace(trim(packet),chr(65279),"")>

    ilssac
    Inspiring
    October 23, 2009

    Your applicaiton is trying to read and parse a WDDX packet.  This packet is not a properly formated XML WDDX data.  That code can not parse it and is throwing that error.

    That is all I can tell you, but that is what the error message has already been telling you.