Click here to Skip to main content
15,942,449 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have recorded a Script in Bad Boy and exported in Jmeter.While execution the script in Jmeter I get an error as stated below.

java.lang.IllegalArgumentException: Host of origin may not be blank
at org.apache.commons.httpclient.cookie.CookieSpecBase.match(CookieSpecBase.java:461)
at org.apache.commons.httpclient.cookie.CookieSpecBase.match(CookieSpecBase.java:557)
at org.apache.jmeter.protocol.http.control.HC3CookieHandler.getCookiesForUrl(HC3CookieHandler.java:98)
at org.apache.jmeter.protocol.http.control.HC3CookieHandler.getCookieHeaderForURL(HC3CookieHandler.java:113)
at org.apache.jmeter.protocol.http.control.CookieManager.getCookieHeaderForURL(CookieManager.java:328)
at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.setConnectionCookie(HTTPJavaImpl.java:340)
at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.setupConnection(HTTPJavaImpl.java:200)
at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:484)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1075)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1064)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:426)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
at java.lang.Thread.run(Unknown Source)




The applicaion is in Asp.net 4.0 and for performance testing Script is recorded in Jmeter.I get this error when landing page is been displayed for reports generation.


My Question is related to the some what same
kindly check the link too.Some one has posted.

http://stackoverflow.com/questions/7125210/jmeter-unable-to-login-to-web-site-jmeter-noob[^]


1.What is this error?
2.How to resolve this error?
Posted
Updated 21-Aug-13 21:58pm
v5

1 solution

Without code impossible to tell you anything. Based on your exception message, here solved threads

Host name may not be null in HttpResponse execute for android[^]
How should I resolve java.lang.IllegalArgumentException: protocol = https host = null Exception?[^]
 
Share this answer
 
Comments
Amul V V Wayangankar 22-Aug-13 3:42am    
Thanks for the reply, but problem is that i cant paste the script here.The applicaion is in Asp.net 4.0 and for performance testing Script is recorded in Jmeter.I get this error when landing page is been displayed for reports generation.
thatraja 22-Aug-13 3:46am    
Oops, try the 2nd link. That's java
Amul V V Wayangankar 22-Aug-13 3:55am    
My Question is related to the some what same
kindly check the link too.Some one has posted.

http://stackoverflow.com/questions/7125210/jmeter-unable-to-login-to-web-site-jmeter-noob[^]
thatraja 22-Aug-13 3:59am    
Did you try the answers from that link?
Amul V V Wayangankar 22-Aug-13 4:06am    
Yes I saw the link.I tried but doesn't seem to work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900