[Laszlo-dev] XML Data corruption
henry.minsky at gmail.com
Sun Jan 2 18:55:27 PST 2005
At one point there was a bug that if a null byte (value == 0) was in
the XML data, it would cause the data to become corrupted. There was a
check put into the data encoder on the LPS server, and then it was
try adding this to your WEB-INF/lps/config/lps.properties file
data.removenulls = true
and restart the server.
There may also be a race condition in the loading of data, I have been
seeing some kind of race condition while debugging a test app which
loads data, but this only happens when compiling to Flash 7 (Flash 7
support is planned for LPS 3, but is not yet supported in the current
release). It seems to be dependent on timing ... are you running your
app with debugging enabled (debug=true in the query args) ? If not,
try running with debugging, and see if that changes the behavior one
way or the other (either always works , or always fails)
On Mon, 3 Jan 2005 10:35:21 +0800, Nevin Ng <nevin at catsnight.com> wrote:
> Hi everyone,
> While playing with Laszlo 3.0a2 I'm having problem with the XML data.
> Generally, I'm feeding a Chinese (UTF-8 encoded) XML data from a Servlet to
> Laszlo and from time to time some of the data elements' content got
> corrupted and became displayed as "???????".
> The strange part is, it's quite random. So this time the content got
> courrpted doesn't mean next time I cannot get a good one when server
> I've check the raw output from the Servlet and the data is fine. Both
> Firefox and Internet Explorer can display the XML using UTF-8 encoding
> without any problem.
> The structure of the XML is similar to:
> <name>Diet coke</name>
> The XML usually contains 8~12 product in each request.
> Is there any known bug in the XML processing/converting between Laszlo
> Server and Client?
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
More information about the Laszlo-dev