[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dart
Subject:    RE: [Dart] content not allowed in prolog
From:       "Scott Oster" <oster () bmi ! osu ! edu>
Date:       2007-10-26 19:04:53
Message-ID: 24048DC1F8522C44B83040006BCC8FC35D4A7B () troy ! bmi ! ohio-state ! edu
[Download RAW message or body]

--===============1934466056==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C81803.146A1D2A"

This is a multi-part message in MIME format.


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@public.kitware.com
[mailto:dart-bounces+oster=bmi.osu.edu@public.kitware.com] On Behalf Of
Blezek, Daniel J (GE, Research)
Sent: Friday, October 26, 2007 11:05 AM
To: Scott Oster; dart@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@public.kitware.com
[mailto:dart-bounces+blezek=crd.ge.com@public.kitware.com] On Behalf Of
Scott Oster
	Sent: Friday, October 26, 2007 10:42 AM
	To: dart@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@bmi.osu.edu

	lab:  614-292-9845

	voice mail:  614-292-8680

	 


[Attachment #3 (text/html)]

<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&#8217;m actually using Dart
1.0.7.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</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"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</span></span></span><![endif]><span style='color:#1F497D'>I don&#8217;t know why it \
wasn&#8217;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"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</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.&nbsp; \
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 &#8216;&lt;my build name&gt;&#8217; 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"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span \
style='color:#1F497D'>I&#8217;d put in a vote that the 64 character limit be \
increased.&nbsp; I&#8217;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 &#8220;project build name&#8221; 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"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</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"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span \
style='color:#1F497D'>I&#8217;d suggest removing this, or making it \
configurable.&nbsp; While I&#8217;d agree a 10MB XML document is generally too large \
for most processors, the DART format is fairly compact, and doesn&#8217;t have too \
many entities (which is really what causes problems); most of &#8220;bulk&#8221; 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>&nbsp;</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&#8217;t think my
servers were having that problem (just the build name length).&nbsp; 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>&nbsp;</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>&nbsp;</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>&nbsp;</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"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>&nbsp; I'm assuming you are using the latest SVN version of
Dart?&nbsp; I haven't changed the XML parsing libraries or anything that I can
think of that might cause you problems.&nbsp; 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"'>&nbsp;<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>&nbsp;</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: &#8220;org.xml.sax.SAXParseException:
Content is not allowed in prolog.&#8221;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>The XML file in question seems to be valid however.&nbsp;
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.&nbsp; The process which produces the submission hasn&#8217;t changed
(as this started happening across multiple projects from stable CVS
tags).&nbsp; I suspect something has changed on the DART server , but I&#8217;m
not aware of anything.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Any ideas what may be causing this?<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Scott<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><b><span \
style='font-size:9.0pt;color:black'><o:p>&nbsp;</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>&nbsp;</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'>&nbsp; 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'>&nbsp; \
614-292-8680<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</blockquote>

</div>

</body>

</html>



_______________________________________________
Dart mailing list
Dart@public.kitware.com
http://public.kitware.com/mailman/listinfo/dart

--===============1934466056==--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic