You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by dinesh g <di...@yahoo.co.in> on 2006/12/16 09:15:41 UTC
Problem with Ant Task : jtl file not generated properly
Hi,
Platform: Linux
Jmeter Version: 2.2
Java Version: 1.4
Ant Version:1.6.1 (tried apache-ant-1.6.5 also)
I am using Jmeter for functional testing of a web app. It is a perl based application deployed on apache-1.3
The tests run fine when using the Jmeter GUI and output is generated w/o any problem. However, i will have to run these scripts on headless machines. So, i looked into the ant task that comes with JMeter. The tests ran fine, but the .jtl file was not generated properly and so the results did not show up.
Found the following exception in the jmeter.log file
2006/12/15 21:57:46 INFO - jmeter.threads.JMeterThread: Thread Thread Group 1-1 started
2006/12/15 21:57:46 INFO - jmeter.services.FileServer: Stored: MT.conf
ERROR - jmeter.reporters.ResultCollector: java.lang.NullPointerException
at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeText(PrettyPrintWriter.java:115)
at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeAttributeValue(PrettyPrintWriter.java:107)
at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.addAttribute(PrettyPrintWriter.java:102)
at com.thoughtworks.xstream.io.WriterWrapper.addAttribute(WriterWrapper.java:30)
at org.apache.jmeter.save.converters.SampleResultConverter.setAttributes(SampleResultConverter.java:244)
at org.apache.jmeter.protocol.http.util.HTTPResultConverter.marshal(HTTPResultConverter.java:76)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(Abs
(ReferenceByXPathMarshallingStrategy.java:34)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:751)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:740)
at com.thoughtworks.xstream.XStream.toXML(XStream.java:721)
at org.apache.jmeter.save.SaveService.saveSampleResult(SaveService.java:236)
at org.apache.jmeter.reporters.ResultCollector.recordResult(ResultCollector.java:427)
at org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:405)
at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:239)
at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:466)
at org.apache.jmeter.thre2006/12/15 21:57:46 INFO - jmeter.threads.JMeterThread: Thread
ads.JMeterThread.run
This appeared for every sampler in the jmx file (/cgi-bin/qt/qt-fcgi is the PATH for the sampler). I did try executing the scripts written for other applications (php application deployed on apache 2.2) using ant and that worked pefectly.
Any idea why this is happening?
Regards,
Dinesh G
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
Re: Problem with Ant Task : jtl file not generated properly
Posted by sebb <se...@gmail.com>.
Please start a new thread for a new issue.
On 18/12/06, dinesh g <di...@yahoo.co.in> wrote:
> Hi Seb,
>
> I am able get the .jtl file generate in CSV format without any issues. Now I have another issue. Is there any parser available so that i can get this CSV data in HTML format?
>
> Regards,
> Dinesh G
>
> sebb <se...@gmail.com> wrote: 302 is a redirect. Unless you want to see the redirects, you could try
> setting "Redirect Automatically". This would cause the redirect to be
> handled by the HTTP library.
>
> Might solve the problem.
>
> The code that is causing the NPE seems to be where it is saving the
> responseMessage in SampleResultConverter.java - I've no idea why that
> is causing the problem though, as that field should always be present.
>
> You could also try not saving that field and see what happens.
>
> Also, please file a Buzilla report - otherwise the problem is likely
> to be forgotten.
>
> S.
> On 16/12/06, dinesh g wrote:
> > I tried to execute this with Jmeter command line option. Still, not getting the .jtl file generated properly and not able to view the complete results.
> >
> > However, i did not get the exception this time. Moreover, some of the results are logged into the .jtl file. The results that are logged have one common behaviour.
> >
> > rc="302" rm="Moved" tn="Thread Group 1-1" dt="text"
> >
> > This is common across the generated .jtl file.
> >
> > Hope this gives some clue.
> >
> > dinesh g wrote: Hi,
> >
> > Platform: Linux
> > Jmeter Version: 2.2
> > Java Version: 1.4
> > Ant Version:1.6.1 (tried apache-ant-1.6.5 also)
> >
> > I am using Jmeter for functional testing of a web app. It is a perl based application deployed on apache-1.3
> >
> > The tests run fine when using the Jmeter GUI and output is generated w/o any problem. However, i will have to run these scripts on headless machines. So, i looked into the ant task that comes with JMeter. The tests ran fine, but the .jtl file was not generated properly and so the results did not show up.
> >
> > Found the following exception in the jmeter.log file
> > 2006/12/15 21:57:46 INFO - jmeter.threads.JMeterThread: Thread Thread Group 1-1 started
> > 2006/12/15 21:57:46 INFO - jmeter.services.FileServer: Stored: MT.conf
> > ERROR - jmeter.reporters.ResultCollector: java.lang.NullPointerException
> > at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeText(PrettyPrintWriter.java:115)
> > at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeAttributeValue(PrettyPrintWriter.java:107)
> > at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.addAttribute(PrettyPrintWriter.java:102)
> > at com.thoughtworks.xstream.io.WriterWrapper.addAttribute(WriterWrapper.java:30)
> > at org.apache.jmeter.save.converters.SampleResultConverter.setAttributes(SampleResultConverter.java:244)
> > at org.apache.jmeter.protocol.http.util.HTTPResultConverter.marshal(HTTPResultConverter.java:76)
> > at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(Abs
> > (ReferenceByXPathMarshallingStrategy.java:34)
> > at com.thoughtworks.xstream.XStream.marshal(XStream.java:751)
> > at com.thoughtworks.xstream.XStream.marshal(XStream.java:740)
> > at com.thoughtworks.xstream.XStream.toXML(XStream.java:721)
> > at org.apache.jmeter.save.SaveService.saveSampleResult(SaveService.java:236)
> > at org.apache.jmeter.reporters.ResultCollector.recordResult(ResultCollector.java:427)
> > at org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:405)
> > at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:239)
> > at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:466)
> > at org.apache.jmeter.thre2006/12/15 21:57:46 INFO - jmeter.threads.JMeterThread: Thread
> > ads.JMeterThread.run
> >
> > This appeared for every sampler in the jmx file (/cgi-bin/qt/qt-fcgi is the PATH for the sampler). I did try executing the scripts written for other applications (php application deployed on apache 2.2) using ant and that worked pefectly.
> >
> > Any idea why this is happening?
> >
> > Regards,
> > Dinesh G
> > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
> >
> > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
> Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Problem with Ant Task : jtl file not generated properly
Posted by dinesh g <di...@yahoo.co.in>.
Hi Seb,
I am able get the .jtl file generate in CSV format without any issues. Now I have another issue. Is there any parser available so that i can get this CSV data in HTML format?
Regards,
Dinesh G
sebb <se...@gmail.com> wrote: 302 is a redirect. Unless you want to see the redirects, you could try
setting "Redirect Automatically". This would cause the redirect to be
handled by the HTTP library.
Might solve the problem.
The code that is causing the NPE seems to be where it is saving the
responseMessage in SampleResultConverter.java - I've no idea why that
is causing the problem though, as that field should always be present.
You could also try not saving that field and see what happens.
Also, please file a Buzilla report - otherwise the problem is likely
to be forgotten.
S.
On 16/12/06, dinesh g wrote:
> I tried to execute this with Jmeter command line option. Still, not getting the .jtl file generated properly and not able to view the complete results.
>
> However, i did not get the exception this time. Moreover, some of the results are logged into the .jtl file. The results that are logged have one common behaviour.
>
> rc="302" rm="Moved" tn="Thread Group 1-1" dt="text"
>
> This is common across the generated .jtl file.
>
> Hope this gives some clue.
>
> dinesh g wrote: Hi,
>
> Platform: Linux
> Jmeter Version: 2.2
> Java Version: 1.4
> Ant Version:1.6.1 (tried apache-ant-1.6.5 also)
>
> I am using Jmeter for functional testing of a web app. It is a perl based application deployed on apache-1.3
>
> The tests run fine when using the Jmeter GUI and output is generated w/o any problem. However, i will have to run these scripts on headless machines. So, i looked into the ant task that comes with JMeter. The tests ran fine, but the .jtl file was not generated properly and so the results did not show up.
>
> Found the following exception in the jmeter.log file
> 2006/12/15 21:57:46 INFO - jmeter.threads.JMeterThread: Thread Thread Group 1-1 started
> 2006/12/15 21:57:46 INFO - jmeter.services.FileServer: Stored: MT.conf
> ERROR - jmeter.reporters.ResultCollector: java.lang.NullPointerException
> at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeText(PrettyPrintWriter.java:115)
> at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeAttributeValue(PrettyPrintWriter.java:107)
> at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.addAttribute(PrettyPrintWriter.java:102)
> at com.thoughtworks.xstream.io.WriterWrapper.addAttribute(WriterWrapper.java:30)
> at org.apache.jmeter.save.converters.SampleResultConverter.setAttributes(SampleResultConverter.java:244)
> at org.apache.jmeter.protocol.http.util.HTTPResultConverter.marshal(HTTPResultConverter.java:76)
> at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(Abs
> (ReferenceByXPathMarshallingStrategy.java:34)
> at com.thoughtworks.xstream.XStream.marshal(XStream.java:751)
> at com.thoughtworks.xstream.XStream.marshal(XStream.java:740)
> at com.thoughtworks.xstream.XStream.toXML(XStream.java:721)
> at org.apache.jmeter.save.SaveService.saveSampleResult(SaveService.java:236)
> at org.apache.jmeter.reporters.ResultCollector.recordResult(ResultCollector.java:427)
> at org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:405)
> at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:239)
> at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:466)
> at org.apache.jmeter.thre2006/12/15 21:57:46 INFO - jmeter.threads.JMeterThread: Thread
> ads.JMeterThread.run
>
> This appeared for every sampler in the jmx file (/cgi-bin/qt/qt-fcgi is the PATH for the sampler). I did try executing the scripts written for other applications (php application deployed on apache 2.2) using ant and that worked pefectly.
>
> Any idea why this is happening?
>
> Regards,
> Dinesh G
> Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
>
> Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
Re: Problem with Ant Task : jtl file not generated properly
Posted by sebb <se...@gmail.com>.
302 is a redirect. Unless you want to see the redirects, you could try
setting "Redirect Automatically". This would cause the redirect to be
handled by the HTTP library.
Might solve the problem.
The code that is causing the NPE seems to be where it is saving the
responseMessage in SampleResultConverter.java - I've no idea why that
is causing the problem though, as that field should always be present.
You could also try not saving that field and see what happens.
Also, please file a Buzilla report - otherwise the problem is likely
to be forgotten.
S.
On 16/12/06, dinesh g <di...@yahoo.co.in> wrote:
> I tried to execute this with Jmeter command line option. Still, not getting the .jtl file generated properly and not able to view the complete results.
>
> However, i did not get the exception this time. Moreover, some of the results are logged into the .jtl file. The results that are logged have one common behaviour.
>
> rc="302" rm="Moved" tn="Thread Group 1-1" dt="text"
>
> This is common across the generated .jtl file.
>
> Hope this gives some clue.
>
> dinesh g <di...@yahoo.co.in> wrote: Hi,
>
> Platform: Linux
> Jmeter Version: 2.2
> Java Version: 1.4
> Ant Version:1.6.1 (tried apache-ant-1.6.5 also)
>
> I am using Jmeter for functional testing of a web app. It is a perl based application deployed on apache-1.3
>
> The tests run fine when using the Jmeter GUI and output is generated w/o any problem. However, i will have to run these scripts on headless machines. So, i looked into the ant task that comes with JMeter. The tests ran fine, but the .jtl file was not generated properly and so the results did not show up.
>
> Found the following exception in the jmeter.log file
> 2006/12/15 21:57:46 INFO - jmeter.threads.JMeterThread: Thread Thread Group 1-1 started
> 2006/12/15 21:57:46 INFO - jmeter.services.FileServer: Stored: MT.conf
> ERROR - jmeter.reporters.ResultCollector: java.lang.NullPointerException
> at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeText(PrettyPrintWriter.java:115)
> at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeAttributeValue(PrettyPrintWriter.java:107)
> at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.addAttribute(PrettyPrintWriter.java:102)
> at com.thoughtworks.xstream.io.WriterWrapper.addAttribute(WriterWrapper.java:30)
> at org.apache.jmeter.save.converters.SampleResultConverter.setAttributes(SampleResultConverter.java:244)
> at org.apache.jmeter.protocol.http.util.HTTPResultConverter.marshal(HTTPResultConverter.java:76)
> at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(Abs
> (ReferenceByXPathMarshallingStrategy.java:34)
> at com.thoughtworks.xstream.XStream.marshal(XStream.java:751)
> at com.thoughtworks.xstream.XStream.marshal(XStream.java:740)
> at com.thoughtworks.xstream.XStream.toXML(XStream.java:721)
> at org.apache.jmeter.save.SaveService.saveSampleResult(SaveService.java:236)
> at org.apache.jmeter.reporters.ResultCollector.recordResult(ResultCollector.java:427)
> at org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:405)
> at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:239)
> at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:466)
> at org.apache.jmeter.thre2006/12/15 21:57:46 INFO - jmeter.threads.JMeterThread: Thread
> ads.JMeterThread.run
>
> This appeared for every sampler in the jmx file (/cgi-bin/qt/qt-fcgi is the PATH for the sampler). I did try executing the scripts written for other applications (php application deployed on apache 2.2) using ant and that worked pefectly.
>
> Any idea why this is happening?
>
> Regards,
> Dinesh G
> Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
>
> Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Problem with Ant Task : jtl file not generated properly
Posted by dinesh g <di...@yahoo.co.in>.
I tried to execute this with Jmeter command line option. Still, not getting the .jtl file generated properly and not able to view the complete results.
However, i did not get the exception this time. Moreover, some of the results are logged into the .jtl file. The results that are logged have one common behaviour.
rc="302" rm="Moved" tn="Thread Group 1-1" dt="text"
This is common across the generated .jtl file.
Hope this gives some clue.
dinesh g <di...@yahoo.co.in> wrote: Hi,
Platform: Linux
Jmeter Version: 2.2
Java Version: 1.4
Ant Version:1.6.1 (tried apache-ant-1.6.5 also)
I am using Jmeter for functional testing of a web app. It is a perl based application deployed on apache-1.3
The tests run fine when using the Jmeter GUI and output is generated w/o any problem. However, i will have to run these scripts on headless machines. So, i looked into the ant task that comes with JMeter. The tests ran fine, but the .jtl file was not generated properly and so the results did not show up.
Found the following exception in the jmeter.log file
2006/12/15 21:57:46 INFO - jmeter.threads.JMeterThread: Thread Thread Group 1-1 started
2006/12/15 21:57:46 INFO - jmeter.services.FileServer: Stored: MT.conf
ERROR - jmeter.reporters.ResultCollector: java.lang.NullPointerException
at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeText(PrettyPrintWriter.java:115)
at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.writeAttributeValue(PrettyPrintWriter.java:107)
at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.addAttribute(PrettyPrintWriter.java:102)
at com.thoughtworks.xstream.io.WriterWrapper.addAttribute(WriterWrapper.java:30)
at org.apache.jmeter.save.converters.SampleResultConverter.setAttributes(SampleResultConverter.java:244)
at org.apache.jmeter.protocol.http.util.HTTPResultConverter.marshal(HTTPResultConverter.java:76)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(Abs
(ReferenceByXPathMarshallingStrategy.java:34)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:751)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:740)
at com.thoughtworks.xstream.XStream.toXML(XStream.java:721)
at org.apache.jmeter.save.SaveService.saveSampleResult(SaveService.java:236)
at org.apache.jmeter.reporters.ResultCollector.recordResult(ResultCollector.java:427)
at org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:405)
at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:239)
at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:466)
at org.apache.jmeter.thre2006/12/15 21:57:46 INFO - jmeter.threads.JMeterThread: Thread
ads.JMeterThread.run
This appeared for every sampler in the jmx file (/cgi-bin/qt/qt-fcgi is the PATH for the sampler). I did try executing the scripts written for other applications (php application deployed on apache 2.2) using ant and that worked pefectly.
Any idea why this is happening?
Regards,
Dinesh G
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php