Non Http response message: null

1,018 views
Skip to first unread message

santiago...@gmail.com

unread,
May 30, 2017, 3:35:15 PM5/30/17
to codename-taurus
Hi! It's my first time using Taurus and I have problems when I try to use the 1st example (quick-test). When I do the quick-test, I have 100% NullPointerException and show this error Non Http response message: null. I don't know how can fix it. The version of Taurus is v1.9.2 and JMeter is v3.1

Andrey Pokhilko

unread,
May 30, 2017, 4:09:47 PM5/30/17
to codenam...@googlegroups.com

Hi,

Can you please archive artifacts dir from such execution and share with us?

--

Andrey


On 05/30/2017 10:35 PM, santiago...@gmail.com wrote:
Hi! It's my first time using Taurus and I have problems when I try to use the 1st example (quick-test). When I do the quick-test, I have 100% NullPointerException and show this error Non Http response message: null. I don't know how can fix it. The version of Taurus is v1.9.2 and JMeter is v3.1
--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/d13fbf85-b0b2-4f77-99ba-2a71991e0541%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

stuar...@gmail.com

unread,
May 30, 2017, 5:35:09 PM5/30/17
to codename-taurus, santiago...@gmail.com
I get the same error.  The error.jtl file has a CookieManager.getCookieHeaderForURL exception:
C:\Python27\2017-05-30_15-11-11.523000>more error.jtl
<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.2">
<httpSample t="0" lt="0" ts="1496178675673" s="false" lb="http://blazedemo.com" rc="Non HTTP response code: java.lang.NullPointerException" rm="Non HTTP response message: null" tn="quick-test 1-1" dt="text" de="" by="983" ng="1" na="1">
  <responseHeader class="java.lang.String"></responseHeader>
  <requestHeader class="java.lang.String"></requestHeader>
  <responseData class="java.lang.String">java.lang.NullPointerException&#xd;
        at org.apache.jmeter.protocol.http.control.CookieManager.getCookieHeaderForURL(CookieManager.java:368)&#xd;
        at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.setConnectionCookie(HTTPHC4Impl.java:1034)&#xd;
        at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.setupRequest(HTTPHC4Impl.java:964)&#xd;
        at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:388)&#xd;
        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)&#xd;
        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189)&#xd;
        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178)&#xd;
        at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:491)&#xd;
        at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:425)&#xd;
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254)&#xd;
        at java.lang.Thread.run(Unknown Source)&#xd;
</responseData>
  <cookies class="java.lang.String"></cookies>
  <method class="java.lang.String">GET</method>
  <queryString class="java.lang.String"></queryString>
  <java.net.URL>http://blazedemo.com/</java.net.URL>
</httpSample>

Santiago Da Rosa

unread,
May 30, 2017, 6:19:53 PM5/30/17
to stuar...@gmail.com, codename-taurus
Hi!,

I send to you the .yml that I used, and then copy the error

quick-test.yml:
execution:
- concurrency: 100
  ramp-up: 1m
  hold-for: 5m
  scenario: quick-test
scenarios:
  quick-test:
    requests:
    - http://blazedemo.com

error.jtl:
<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.2">
<httpSample t="0" lt="0" ts="1496172479583" s="false" lb="http://blazedemo.com" rc="Non HTTP response code: java.lang.NullPointerException" rm="Non HTTP response message: null" tn="quick-test 1-1" dt="text" de="" by="983" ng="1" na="1">

  <responseHeader class="java.lang.String"></responseHeader>
  <requestHeader class="java.lang.String"></requestHeader>
  <responseData class="java.lang.String">java.lang.NullPointerException&#xd;
 at org.apache.jmeter.protocol.http.control.CookieManager.getCookieHeaderForURL(CookieManager.java:368)&#xd;
 at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.setConnectionCookie(HTTPHC4Impl.java:1034)&#xd;
 at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.setupRequest(HTTPHC4Impl.java:964)&#xd;
 at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:388)&#xd;
 at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)&#xd;
 at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189)&#xd;
 at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178)&#xd;
 at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:491)&#xd;
 at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:425)&#xd;
 at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254)&#xd;
 at java.lang.Thread.run(Unknown Source)&#xd;
</responseData>
  <cookies class="java.lang.String"></cookies>
  <method class="java.lang.String">GET</method>
  <queryString class="java.lang.String"></queryString>
  <java.net.URL>http://blazedemo.com/</java.net.URL>
</httpSample>
quick-test.yml

Andrey Pokhilko

unread,
May 30, 2017, 7:25:39 PM5/30/17
to codenam...@googlegroups.com

Can you try downloading and installing this snapshot?

sudo pip install http://gettaurus.org/snapshots/bzt-1.9.2.1480.tar.gz


It should help


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.

stuar...@gmail.com

unread,
May 31, 2017, 12:01:30 PM5/31/17
to codename-taurus, andrey....@contractor.ca.com
Andrey,

I'm running on Windows 10 and uninstalled and re-installed everything, then installed your update by running 'py -m pip install http://gettaurus.org/snapshots/bzt-1.9.2.1480.tar.gz'.  If that is the wrong thing to do, let me know.  I then ran the sample test, 'bzt quick_test.yml' and got the following error:
C:\Python27>bzt quick_test.yml
09:53:34 INFO: Taurus CLI Tool v1.9.2.1480
09:53:34 INFO: Starting with configs: ['quick_test.yml']
09:53:34 INFO: No personal config found, creating one at c:\users\ssmith\.bzt-rc
09:53:34 ERROR: IOError: [Errno 2] No such file or directory: 'C:\\Program Files\\Common Files\\Python\\2.7\\lib\\site-packages\\bzt\\resources\\base-bzt-rc.yml'
Traceback (most recent call last):
  File "C:\Program Files\Common Files\Python\2.7\lib\site-packages\bzt\cli.py", line 212, in perform
    self.__configure(configs)
  File "C:\Program Files\Common Files\Python\2.7\lib\site-packages\bzt\cli.py", line 165, in __configure
    shutil.copy(os.path.join(get_full_path(__file__, step_up=1), 'resources', 'base-bzt-rc.yml'), bzt_rc)
  File "C:\Program Files\Common Files\Python\2.7\lib\shutil.py", line 119, in copy
    copyfile(src, dst)
  File "C:\Program Files\Common Files\Python\2.7\lib\shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'C:\\Program Files\\Common Files\\Python\\2.7\\lib\\site-packages\\bzt\\resources\\base-bzt-rc.yml'
09:53:34 INFO: Post-processing...
09:53:34 INFO: Artifacts dir: None
09:53:34 INFO: Log file: c:\users\ssmith\appdata\local\temp\bzt_znaykt.log
09:53:34 WARNING: Done performing with code: 1

Any suggestions?  
Thanks.

ta...@blazemeter.com

unread,
Jun 1, 2017, 4:28:25 AM6/1/17
to codename-taurus, andrey....@contractor.ca.com, stuar...@gmail.com
There was an error, thanks. Please try this one: http://gettaurus.org/snapshots/bzt-1.9.2.1481.tar.gz
---
Taras

francima...@gmail.com

unread,
Jun 1, 2017, 4:02:19 PM6/1/17
to codename-taurus, andrey....@contractor.ca.com, stuar...@gmail.com
Hi, I am new using taurus and I have a super basic example and I have the same error  Non Http response message: null, I just installed that snaphot and I get that error


15:01:26 ERROR: IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/bzt/resources/base-bzt-rc.yml'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/bzt/cli.py", line 212, in perform
    self.__configure(configs)
  File "/usr/local/lib/python2.7/dist-packages/bzt/cli.py", line 165, in __configure
    shutil.copy(os.path.join(get_full_path(__file__, step_up=1), 'resources', 'base-bzt-rc.yml'), bzt_rc)
  File "/usr/lib/python2.7/shutil.py", line 119, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/bzt/resources/base-bzt-rc.yml'

stuar...@gmail.com

unread,
Jun 1, 2017, 4:41:36 PM6/1/17
to codename-taurus, andrey....@contractor.ca.com, stuar...@gmail.com, francima...@gmail.com

I googled for that filename and found it in GitHub: https://github.com/Blazemeter/taurus/blob/master/bzt/resources/base-bzt-rc.yml.  I'm on Windows, so I copied the contents of the file and saved it in my "C:\Program Files\Common Files\Python\2.7\Lib\site-packages\bzt\resources" directory.  That directory structure requires admin rights, so I ran an editor in admin mode to create the file.  Funny thing is, everything in the file is commented out, so you probably only need an empty file.  It worked for me after that.

Message has been deleted
Message has been deleted

v.sa...@gmail.com

unread,
Jun 1, 2017, 8:02:15 PM6/1/17
to codename-taurus, andrey....@contractor.ca.com, stuar...@gmail.com, francima...@gmail.com
Can you please explain more? I have same issue 

francima...@gmail.com

unread,
Jun 2, 2017, 9:51:49 AM6/2/17
to codename-taurus, andrey....@contractor.ca.com, stuar...@gmail.com, francima...@gmail.com
I did that and now the app its running. 

Thanks. 

v.sa...@gmail.com

unread,
Jun 2, 2017, 10:53:19 PM6/2/17
to codename-taurus, santiago...@gmail.com
I have this problem yet and non of the solutions has worked for me. Please help

Andrey Pokhilko

unread,
Jun 2, 2017, 10:54:26 PM6/2/17
to codenam...@googlegroups.com

There was version 1.9.3 released. Can you try upgrading and testing again?


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
Message has been deleted

v.sa...@gmail.com

unread,
Jun 3, 2017, 12:41:52 AM6/3/17
to codename-taurus, santiago...@gmail.com



On Wednesday, May 31, 2017 at 7:35:15 AM UTC+12, santiago...@gmail.com wrote:

Andrey Pokhilko

unread,
Jun 3, 2017, 12:16:52 PM6/3/17
to v.sa...@gmail.com, codename-taurus

If you will run your test with additional option "-o modules.jmeter.versions=3.1", will it fail then?

In 1.9.3 we have addressed this "quick switch" way...


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
On 03.06.2017 06:13, v.sa...@gmail.com wrote:
Hi Andrey, yes I am using last version but this problem still persists. 

Andrey Pokhilko

unread,
Jun 3, 2017, 12:23:11 PM6/3/17
to codenam...@googlegroups.com

Sorry, the correct option is "-o modules.jmeter.version=3.1"


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.

v.sa...@gmail.com

unread,
Jun 4, 2017, 5:24:51 AM6/4/17
to codename-taurus, andrey....@contractor.ca.com
Thank you so much Andrey. It's working now.
Reply all
Reply to author
Forward
0 new messages