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:[email protected]] 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 <[email protected]> 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:[email protected]] > 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 <[email protected]> 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:[email protected]] >> 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:[email protected]] >> 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: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
