my dog learned polymorphism*
The moose likes Testing and the fly likes Errores JMeter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Testing
Bookmark "Errores JMeter" Watch "Errores JMeter" New topic
Author

Errores JMeter

Alberto Fuertes
Greenhorn

Joined: Sep 12, 2013
Posts: 5
Buenos días,

Tengo instalado el JMeter para trabajar con MyEclipse y a la hora de hacerle el testeo me da los siguientes errores:


HTTP Request HTTPClient” rc=”Non HTTP response code: java.net.ConnectException”
Non HTTP response message: Connection refused: connect

Non HTTP response code: java.io.EOFException
Non HTTP response message: Unexpected end of ZLIB input stream

ya me estoy volviendo loco de mirar por todos lados y nadie es capaz de darme una solucion.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

Welcome to the Ranch.
Could you please post in English? Not everyone here understands Spanish.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Alberto Fuertes
Greenhorn

Joined: Sep 12, 2013
Posts: 5
Hello, well, I'll try but my English is very bad.

I am using JMeter to test the application of the company and we need that can support 300 concurrent users.

The Jmeter I have it running on a test server that I use just now. The application has been generated in MyEclipse Java, the DB is Oracle and work through the glasfhis.

Applying now the users are using the company (about 30 concurrent users) and does not give any problems, but in January comes a new client to use our application and are 300 users or so so I need to confirm q our application can take it.

I have generated some execution threads with a couple of queries to DB, ie, nothing complicated.

The problem is that when I want to run a single user testing I get the following errors:

HTTP Request HTTPClient "rc =" Non HTTP response code: java.net.ConnectException "
Non HTTP response message: Connection refused: connect

Non HTTP response code: java.io.EOFException
Non HTTP response message: Unexpected end of ZLIB input stream

Could hecharme a hand please??

Thank you so much
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

Don't worry about your English. Not everyone is a native English speaker

Non HTTP response message: Connection refused: connect

That would indicate that the machine you are trying to connect to is unreachable. Please post the whole stack trace (Please UseCodeTags <- link; cick to view)
Alberto Fuertes
Greenhorn

Joined: Sep 12, 2013
Posts: 5
<httpSample t="2031" lt="0" ts="1378973971581" s="false" lb="HTTP Request HTTPClient" rc="Non HTTP response code: java.net.ConnectException" rm="Non HTTP response message: Connection refused: connect" tn="PruebasReales 1-1" dt="text" by="1978">
<responseData class="java.lang.String">java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.reflect.GeneratedMethodAccessor81.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.apache.jmeter.protocol.http.sampler.HTTPHC3Impl.sample(HTTPHC3Impl.java:258)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1088)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1077)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:428)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
at java.lang.Thread.run(Unknown Source)
</responseData>
<cookies class="java.lang.String"></cookies>
<method class="java.lang.String">POST</method>
<queryString class="java.lang.String">XML=true</queryString>
</httpSample>
Alberto Fuertes
Greenhorn

Joined: Sep 12, 2013
Posts: 5
Hi,

Now I'm using the program BadBoy to generate execution threads because it seems that JMeter is corrupt.

The error that occurs is:


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:114)
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:1088)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1077)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:428)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
at java.lang.Thread.run(Unknown Source)


It´s possible that I should difene another option?

Thank you for your help
Dmitri Tikhanski
Greenhorn

Joined: Oct 13, 2013
Posts: 15
Hi Alberto,

It looks like that your "host" parameter is blank. I guess that BadBoy generates corrupt .jmx file for some reasons i.e. fails to set correct host/port combination.

Have you tried JMeter embedded HTTP Proxy server to record your test steps? JMeter is smart enough to record HTTP requests.

The idea is to enable JMeter's proxy, point your browser to use it and navigate to your application.



 
GeeCON Prague 2014
 
subject: Errores JMeter