[Dart] content not allowed in prolog
Scott Oster
oster at bmi.osu.edu
Fri Oct 26 15:04:53 EDT 2007
I'm actually using Dart 1.0.7.
I think I was running into multiple problems.
1) I don't know why it wasn't working otherwise, but changed my
XSLT output to explicitly specify the encoding, which seems to have
gotten rid of the content prolog issue.
a. I suspect this was only an issue when running it on my Windows
box which I was doing for debugging, and the actual problem my real
deployments were having is caused by the second error below.
2) I recently changed my build naming conventions, and there seems
to be a 64 character limit on them. Some of my build names were longer
than that, and that causes Dart to throw a different exception (ERROR
22001: A truncation error was encountered trying to shrink VARCHAR '<my
build name>' to length 64).
a. I'd put in a vote that the 64 character limit be increased. I'm
using the naming practice specified in the sample ant target shipped
with Dart, and the OS version can get quite long for some OSes (my
actual "project build name" was only 20 something characters).
3) Some of my submissions are flirting with the 10MB limit.
a. I'd suggest removing this, or making it configurable. While I'd
agree a 10MB XML document is generally too large for most processors,
the DART format is fairly compact, and doesn't have too many entities
(which is really what causes problems); most of "bulk" on our logs is
test output, which is captured in a single element for each test.
So the original error I posted was a red herring caused by my
investigation methods; I don't think my servers were having that problem
(just the build name length). Fixing both the build name length, and
the XSLT to specify the encoding explicitly, I am able to successfully
submit builds from my laptop, as well as my servers again.
Thanks,
Scott
From: dart-bounces+oster=bmi.osu.edu at public.kitware.com
[mailto:dart-bounces+oster=bmi.osu.edu at public.kitware.com] On Behalf Of
Blezek, Daniel J (GE, Research)
Sent: Friday, October 26, 2007 11:05 AM
To: Scott Oster; dart at public.kitware.com
Subject: RE: [Dart] content not allowed in prolog
Hi Scott,
I'm assuming you are using the latest SVN version of Dart? I haven't
changed the XML parsing libraries or anything that I can think of that
might cause you problems. Have you located the problem character in the
XML?
-dan
________________________________
From: dart-bounces+blezek=crd.ge.com at public.kitware.com
[mailto:dart-bounces+blezek=crd.ge.com at public.kitware.com] On Behalf Of
Scott Oster
Sent: Friday, October 26, 2007 10:42 AM
To: dart at public.kitware.com
Subject: [Dart] content not allowed in prolog
Our dartboard has recently started having a problem where some
builds are not showing up as the server throws an exception parsing the
submission file.
The exception is: "org.xml.sax.SAXParseException: Content is not
allowed in prolog."
The XML file in question seems to be valid however. Googling
indicates the usual cause is a Byte Order Marker inserted by text
editors on Windows (or invalid prologs), but my submission is
autogenerated from an XLST of cruise control logs on unix machines and
sent to a unix machine. The process which produces the submission
hasn't changed (as this started happening across multiple projects from
stable CVS tags). I suspect something has changed on the DART server ,
but I'm not aware of anything.
Any ideas what may be causing this?
Scott
Scott Oster
co-Director, Software Research Institute
Biomedical Informatics Department
Ohio State University
oster at bmi.osu.edu
lab: 614-292-9845
voice mail: 614-292-8680
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/dart/attachments/20071026/602b505d/attachment.htm
More information about the Dart
mailing list