<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:1104230509;
        mso-list-type:hybrid;
        mso-list-template-ids:-777328726 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>I’m actually using Dart
1.0.7.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>I think I was running into
multiple problems.<o:p></o:p></span></p>
<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='color:#1F497D'><span style='mso-list:Ignore'>1)<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span style='color:#1F497D'>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.<o:p></o:p></span></p>
<p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in;
mso-list:l0 level2 lfo1'><![if !supportLists]><span style='color:#1F497D'><span
style='mso-list:Ignore'>a.<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span style='color:#1F497D'>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.<o:p></o:p></span></p>
<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='color:#1F497D'><span style='mso-list:Ignore'>2)<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span style='color:#1F497D'>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 (<i>ERROR 22001: A truncation error was encountered
trying to shrink VARCHAR ‘<my build name>’ to length 64).</i><o:p></o:p></span></p>
<p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in;
mso-list:l0 level2 lfo1'><![if !supportLists]><span style='color:#1F497D'><span
style='mso-list:Ignore'>a.<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span style='color:#1F497D'>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).<o:p></o:p></span></p>
<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='color:#1F497D'><span style='mso-list:Ignore'>3)<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span style='color:#1F497D'>Some of my
submissions are flirting with the 10MB limit.<o:p></o:p></span></p>
<p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in;
mso-list:l0 level2 lfo1'><![if !supportLists]><span style='color:#1F497D'><span
style='mso-list:Ignore'>a.<span style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span style='color:#1F497D'>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.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>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.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Thanks,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Scott<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
dart-bounces+oster=bmi.osu.edu@public.kitware.com
[mailto:dart-bounces+oster=bmi.osu.edu@public.kitware.com] <b>On Behalf Of </b>Blezek,
Daniel J (GE, Research)<br>
<b>Sent:</b> Friday, October 26, 2007 11:05 AM<br>
<b>To:</b> Scott Oster; dart@public.kitware.com<br>
<b>Subject:</b> RE: [Dart] content not allowed in prolog<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Hi Scott,</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'> <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'> 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?</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'> <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>-dan</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>
<hr size=3 width="100%" align=center>
</span></div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>
dart-bounces+blezek=crd.ge.com@public.kitware.com
[mailto:dart-bounces+blezek=crd.ge.com@public.kitware.com] <b>On Behalf Of </b>Scott
Oster<br>
<b>Sent:</b> Friday, October 26, 2007 10:42 AM<br>
<b>To:</b> dart@public.kitware.com<br>
<b>Subject:</b> [Dart] content not allowed in prolog</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal>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.<o:p></o:p></p>
<p class=MsoNormal>The exception is: “org.xml.sax.SAXParseException:
Content is not allowed in prolog.”<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Any ideas what may be causing this?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Scott<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;color:black'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;color:black'>Scott Oster<o:p></o:p></span></b></p>
<p class=MsoNormal><span style='font-size:9.0pt;color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;color:black'>co-Director,
Software Research Institute<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;color:black'>Biomedical
Informatics Department<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;color:black'>Ohio State
University<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:7.5pt;color:black'><a
href="mailto:oster@bmi.osu.edu">oster@bmi.osu.edu</a><o:p></o:p></span></p>
<p class=MsoNormal><b><span style='font-size:7.5pt;color:black'>lab:</span></b><span
style='font-size:7.5pt;color:black'> 614-292-9845<o:p></o:p></span></p>
<p class=MsoNormal><b><span style='font-size:7.5pt;color:black'>voice mail:</span></b><span
style='font-size:7.5pt;color:black'> 614-292-8680<o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
</blockquote>
</div>
</body>
</html>