hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Unit test failure
Date Tue, 15 Jan 2013 20:24:57 GMT
On Tue, 2013-01-15 at 14:39 -0500, Mark Claassen wrote:
> I tried it on a different machine, this one running the same version of Java, but on
a Windows 7 machine (64 bit OS, 32 bit VM).
> 
> I get the same result.  Only this time is has "Connect to localhost:56701 timed out"
> 
> -----Original Message-----
> From: Mark Claassen [mailto:mac01@donnell.com] 
> Sent: Tuesday, January 15, 2013 1:42 PM
> To: 'HttpClient User Discussion'
> Subject: RE: Unit test failure
> 
> It has not been a good day for me as far as jumping to conclusions and type-os.  It actually
failed.
> 

It turned out the test had a very low (10 ms) connection timeout
setting. Fixed in 4.2.x HEAD

http://svn.apache.org/viewvc?view=revision&revision=1433614

Oleg

> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.http.impl.client.TestStatefulConnManagement
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.712 sec <<<
FAILURE!
> 
> Results :
> 
> Tests in error:
>   testStatefulConnections(org.apache.http.impl.client.TestStatefulConnManagement): Connect
to localhost:58094 timed out
> 
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0
> 
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There are test failures.
> 
> Please refer to C:\dsi\opensource\HttpClient-4.2.3\httpcomponents-client-4.2.3\httpclient\target\surefire-reports
for th [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 10 seconds
> [INFO] Finished at: Tue Jan 15 13:41:21 EST 2013 [INFO] Final Memory: 45M/108M [INFO]
> ------------------------------------------------------------------------
> C:\dsi\opensource\HttpClient-4.2.3\httpcomponents-client-4.2.3>
> 
> 
> 
> -----Original Message-----
> From: Mark Claassen [mailto:mac01@donnell.com]
> Sent: Tuesday, January 15, 2013 1:41 PM
> To: 'HttpClient User Discussion'
> Subject: RE: Unit test failure
> 
> That works.
> 
> I am using Java 6 update 38
> My laptop is running Windows Vista
> 
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> 
> Results :
> 
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> 
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] No tests were executed!  (Set -DfailIfNoTests=false to ignore this error.) [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 18 seconds
> [INFO] Finished at: Tue Jan 15 13:39:06 EST 2013 [INFO] Final Memory: 45M/108M [INFO]
> ------------------------------------------------------------------------
> 
> 
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Tuesday, January 15, 2013 1:26 PM
> To: HttpClient User Discussion
> Subject: Re: Unit test failure
> 
> On 15 January 2013 18:08, Mark Claassen <mac01@donnell.com> wrote:
> > 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(PlainSock
> > etFactory.java:129) at
> > org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnecti
> > on(DefaultClientConnectionOperator.java:180) at 
> > org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClie
> > ntConnectionImpl.java:294) at
> > org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultR
> > equestDirector.java:645) at
> > org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequ
> > estDirector.java:480) at
> > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpCli
> > ent.java:906) at
> > org.apache.http.impl.client.TestStatefulConnManagement$HttpWorker.run(
> > TestStatefulConnManagement.java:177) </error> </testcase>
> >
> 
> Try running just that test case:
> 
> mvn test -Dtest=TestStatefulConnManagement
> 
> What JVM and OS are you using?
> 
> >
> > -----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
> >
> 
> ---------------------------------------------------------------------
> 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