I've now reproduced the error running GUI and non-GUI - provided that the JTL format is 2.0. [This is automatically set by extras/build.xml which I used to run the ant task.]
Turns out that there is a method called getSerializedSampleResult() in the ResultCollector class. This generates the serialised output for a sample, and then removes everything before the first line.separator - if there is one. Now in Java 1.4 - with or without the x-jars - the output has a line separator between the generated <?xml prefix and the serialised sample, but in Java 1.5, there is no line separator if the x-jars are not present, so the <?xml prefix is not removed ... I'll fix this shortly. In the meantime, either ensure that the x-jars are present, or use the new jtl format. S. On 14/10/05, sebb <[EMAIL PROTECTED]> wrote: > I can't reproduce the error when running from the GUI or running non-GUI. > > However, I can reproduce the error when running as follows: > - Java 1.5.0 > - Ant task > - "x" jars not present in lib directory > > S. > On 14/10/05, Bogdan Calmac <[EMAIL PROTECTED]> wrote: > > Not always. The same thing happens when I run it from the GUI. I'll > > try again with a fresh download and submit an issue if necessary. > > > > Bogdan. > > > > On 10/14/05, sebb <[EMAIL PROTECTED]> wrote: > > > Are you by any chance using the same file name for the ant log as for > > > the Simple Data Writer? > > > > > > Just a thought. > > > > > > If this does not solve the problem, please create a Bugzilla issue, > > > and then attach: > > > - jmeter.log > > > - jmeter.properties > > > - test plan (replace any private info first) > > > > > > S. > > > On 14/10/05, Bogdan Calmac <[EMAIL PROTECTED]> wrote: > > > > Right. And also, even if i run it just once, there would still be 2 > > > > <?xml...>: One at the beginning and one before <sampleResult> > > > > > > > > > > > > On 10/13/05, sebb <[EMAIL PROTECTED]> wrote: > > > > > JMeter does append to the logfile, but it is supposed to only create > > > > > the <?xml...?> once at the start of the file. > > > > > > > > > > S. > > > > > On 12/10/05, Peter Lin <[EMAIL PROTECTED]> wrote: > > > > > > it looks like you're running the test twice but using the same log > > > > > > file. by > > > > > > default jmeter appends to the log file, so you'll need to give each > > > > > > run a > > > > > > different file name. > > > > > > > > > > > > hope that helps > > > > > > > > > > > > peter > > > > > > > > > > > > > > > > > > On 10/12/05, Bogdan Calmac <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > I have a very simple test plan which looks like this: > > > > > > > > > > > > > > TestPlan > > > > > > > ThreadGroup > > > > > > > HttpRequest > > > > > > > HttpRequest > > > > > > > SimpleDataWriter > > > > > > > > > > > > > > I use this just to save the results to XML and use the jmeter-ant > > > > > > > task > > > > > > > to generate an html report. However, the xml generated by > > > > > > > SimpleDataWriter looks as below. The problem is that each > > > > > > > <sampleResult> is preceded by <?xml version="1.0" > > > > > > > encoding="UTF-8"?> > > > > > > > > > > > > > > Note: I am using version 2.1.1 > > > > > > > > > > > > > > Second note: The same thing happens if I run jmeter with the ant > > > > > > > task > > > > > > > and set the "resultlog" property. > > > > > > > > > > > > > > thank you. > > > > > > > > > > > > > > > > > > > > > > > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > > > > <testResults version="1.1"> > > > > > > > > > > > > > > <?xml version="1.0" encoding="UTF-8"?><sampleResult > > > > > > > timeStamp="1129068445294" dataType="text" threadName="Thread Group > > > > > > > 1-1" label="HTTP Request" time="15" responseCode="200" > > > > > > > success="true"><sampleResult timeStamp="1129068445294" > > > > > > > dataType="text" > > > > > > > threadName="" label="http://vm12/" time="15" responseCode="302" > > > > > > > success="true"/><sampleResult timeStamp="1129068445294" > > > > > > > dataType="text" threadName="" label="http://vm12/apache2-default/" > > > > > > > time="0" responseCode="200" success="true"/></sampleResult> > > > > > > > > > > > > > > <?xml version="1.0" encoding="UTF-8"?><sampleResult > > > > > > > timeStamp="1129068445310" dataType="text" threadName="Thread Group > > > > > > > 1-1" label="HTTP Request" time="0" responseCode="200" > > > > > > > success="true"><sampleResult timeStamp="1129068445310" > > > > > > > dataType="text" > > > > > > > threadName="" label="http://vm12/" time="0" responseCode="302" > > > > > > > success="true"/><sampleResult timeStamp="1129068445310" > > > > > > > dataType="text" threadName="" label="http://vm12/apache2-default/" > > > > > > > time="0" responseCode="200" success="true"/></sampleResult> > > > > > > > > > > > > > > </testResults> > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]