Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Content is not allowed in prolog

843834Oct 30 2006 — edited Nov 1 2006
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 ? Couldn't the apache programmers come up with an error message with more diagnostic value?

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 29 2006
Added on Oct 30 2006
4 comments
1,284 views