"Content is not allowed in prolog"

449 views
Skip to first unread message

Jeff Mutonho

unread,
Oct 30, 2006, 7:25:04 AM10/30/06
to CTJUG...@googlegroups.com
Hi guys

I'm trying to get ant to transform some jmeter test results into
html.The ant target is defined as follows :

<xslt
in="${basedir}/loadtests/JMeterResults.jtl"
out="${basedir}/loadtests/JMeterResults.html"
style="${basedir}/jmeter-results-detail-report/jmeter-results-detail-report.xsl"/>


where jmeter-results-detail-report.xsl is an XSLT file for for
generating a detailed report from the result log file.However when I
run this task , I get the following error message:

[xslt] Processing D:\MAVEN-WORK\eportal-functional-tests\loadtests\JMeterRe
sults.jtl to D:\MAVEN-WORK\eportal-functional-tests\loadtests\JMeterResults.html

[xslt] Loading stylesheet D:\MAVEN-WORK\eportal-functional-tests\jmeter-res
ults-detail-report\jmeter-results-detail-report.xsl
[xslt] : Error! Content is not allowed in prolog.
[xslt] : Error! com.sun.org.apache.xml.internal.utils.WrappedRuntimeExcepti
on: Content is not allowed in prolog.
[xslt] Failed to process D:\MAVEN-WORK\eportal-functional-tests\loadtests\J
MeterResults.jtl

BUILD FAILED
D:\MAVEN-WORK\eportal-functional-tests\build.xml:14: javax.xml.transform.Transfo
rmerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.
internal.utils.WrappedRuntimeException: Content is not allowed in prolog.


What could be causing this ?
The "jmeter-results-detail-report.xsl" can be found at
http://www.programmerplanet.org/media/ant-jmeter/jmeter-results-detail-report.zip
if you wish to take a look at it.
--


Jeff Mutonho

GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042

Mike Morris

unread,
Oct 31, 2006, 3:37:51 AM10/31/06
to CTJUG...@googlegroups.com
On 30/10/06, Jeff Mutonho <ejbe...@gmail.com> wrote:

> [xslt] : Error! Content is not allowed in prolog.

I've seen the same thing in a totally different context (startup logs
from Blojsom where one plugin is missing/unconfigured). From memory
(hint: I may be totally off base here) it simply means that there is
some spurious extra text in the doctype declaration that the XML
parser is wingeing about. Probably safe to ignore.

--
This email is [X] bloggable [ ] ask first [ ] private

http://mikro2nd.net/
EarthStuff: http://mikro2nd.net/blog/planb/
TechStuff: http://mikro2nd.net/blog/mike/

----- A day without chillies is a day wasted ------

Jeff Mutonho

unread,
Oct 31, 2006, 3:54:35 AM10/31/06
to CTJUG...@googlegroups.com
On 10/31/06, Mike Morris <mikr...@gmail.com> wrote:
>
> I've seen the same thing in a totally different context (startup logs
> from Blojsom where one plugin is missing/unconfigured). From memory
> (hint: I may be totally off base here) it simply means that there is
> some spurious extra text in the doctype declaration that the XML
> parser is wingeing about. Probably safe to ignore.
>

Thanx Mike. I can't really ignore it though, because the transforming
of the jmeter report log to html is failing because of that.

I can't say I don't understand why Hani Suleiman is always flaming
Apache programmers :)

Mike Morris

unread,
Oct 31, 2006, 4:03:48 AM10/31/06
to CTJUG...@googlegroups.com
On 31/10/06, Jeff Mutonho <ejbe...@gmail.com> wrote:

> I can't say I don't understand why Hani Suleiman is always flaming
> Apache programmers :)

Like the Tomcat logs that say helpful things like "Webapp failed to
start" (in amidst a welter of stacktraces and other error messages)
without saying /which/ webapp died or /which/ config file was being
read... :-(

Of course I should just leap in and submit a patch... ;-)

Jeff Mutonho

unread,
Oct 31, 2006, 4:34:08 AM10/31/06
to CTJUG...@googlegroups.com
On 10/31/06, Mike Morris <mikr...@gmail.com> wrote:
>
> On 31/10/06, Jeff Mutonho <ejbe...@gmail.com> wrote:
>
> > I can't say I don't understand why Hani Suleiman is always flaming
> > Apache programmers :)
>
> Like the Tomcat logs that say helpful things like "Webapp failed to
> start" (in amidst a welter of stacktraces and other error messages)
> without saying /which/ webapp died or /which/ config file was being
> read... :-(
>
> Of course I should just leap in and submit a patch... ;-)
>

Lol...I hear you Mike.Flip...ROTFLMAO.What diagnostic value is an
error message such as : "Content is not allowed in prolog." .Huh?What
content?How about telling me what line the parsing is failing
on...unless it's programmatically impossible.But then again I forgot
"I should just leap in and submit a patch..." :)


--

Reply all
Reply to author
Forward
0 new messages