hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Claassen <ma...@donnell.com>
Subject RE: Unit test failure
Date Tue, 15 Jan 2013 18:08:35 GMT
Thanks!

Connect to localhost:54964

Since the other tests succeeded, I can't tell if they had been using this port or not.  netstat
does not show it in use now (when
the tests are not running).



-<testcase name="testStatefulConnections" time="0.063" classname="org.apache.http.impl.client.TestStatefulConnManagement">
<error
type="org.apache.http.conn.ConnectTimeoutException" message="Connect to localhost:54964 timed
out">org.apache.http.conn.ConnectTimeoutException: Connect to localhost:54964 timed out
at
org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:129)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
at
org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at
org.apache.http.impl.client.TestStatefulConnManagement$HttpWorker.run(TestStatefulConnManagement.java:177)
</error> </testcase>



-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Tuesday, January 15, 2013 12:57 PM
To: HttpClient User Discussion
Subject: Re: Unit test failure

On 15 January 2013 17:45, Mark Claassen <mac01@donnell.com> wrote:
> I will get a unit test failure in the same place.  Any ideas?
>
> Running org.apache.http.impl.client.TestRequestRetryHandler
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 
> sec Running org.apache.http.impl.client.TestRequestWrapper
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 
> sec Running org.apache.http.impl.client.TestStatefulConnManagement
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.283 sec <<<
FAILURE!

Have a look at the relevant Surefire details file under

target/surefire-reports

This will give more info on the error.

> Running org.apache.http.impl.conn.TestAbortHandling
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.186 
> sec Running org.apache.http.impl.conn.TestBasicConnManager
>
> -----Original Message-----
> From: Mark Claassen [mailto:mac01@donnell.com]
> Sent: Tuesday, January 15, 2013 12:35 PM
> To: 'HttpClient User Discussion'
> Subject: RE: Unit test failure
>
> Guess I will try 4.2.3 quick.
>
> -----Original Message-----
> From: Mark Claassen [mailto:mac01@donnell.com]
> Sent: Tuesday, January 15, 2013 12:26 PM
> To: 'HttpClient User Discussion'
> Subject: Unit test failure
>
> I am trying to compile HttpClient 4.2.2, but I run into a unit test 
> failure every time.  It doesn't say much so I am not sure what to do.  Could it be my
environment?  All the other tests in all the
other packages succeed.
>
> Running org.apache.http.impl.client.TestStatefulConnManagement
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.262 sec <<<
FAILURE!
>
> Thanks
> Mark
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message