Click here to Skip to main content
15,897,226 members

Performance Testing with Jmeter Error obtained is java.lang.IllegalArgumentException: Host of origin may not be blank

Amul V V Wayangankar asked:

Open original thread
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?
Tags: Java

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



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