Siteminder session expired issues with http client 4
Hi Team We are using the http client v4.2.2 and we are using pooling client connection manager for connections, When we test the application we get siteminder session expired message, and it tries to forward to login page. Please need your help in this regard. Thanks in advance, Gouri. - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
Re:
Thank you very much Dilip, Oleg. We need to get latest release of HttpClient 4.2.3 with this bug fix very urgently. Can you please also tell me how to get the latest jar files (httpclient-4.2.3.jar etc...) for the latest code or if I should build jar files locally on my machine then which branch should I use to check out the code, and what is the process for building jar files? Following are the branches I think I should use for the 4.2.3 code but not sure if I am correct. Please tell me the correct branch. http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.2.3/ http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.2.3-RC1/ http://svn.apache.org/repos/asf/httpcomponents/httpcore/tags/4.2.3/ http://svn.apache.org/repos/asf/httpcomponents/httpcore/tags/4.2.3-RC1/ thank you for helps, deepak On Tue, Jan 8, 2013 at 4:02 PM, dilip ved...@gmail.com wrote: created issue https://issues.apache.org/jira/browse/HTTPCLIENT-1293 i have tried changing the GGSSchemeBase.java my change is working in my setup added my change in comments. - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
Re: Re:
On Tue, 2013-01-15 at 17:05 +0530, Deepak Mishra wrote: Thank you very much Dilip, Oleg. We need to get latest release of HttpClient 4.2.3 with this bug fix very urgently. Can you please also tell me how to get the latest jar files (httpclient-4.2.3.jar etc...) for the latest code or if I should build jar files locally on my machine then which branch should I use to check out the code, and what is the process for building jar files? Following are the branches I think I should use for the 4.2.3 code but not sure if I am correct. Please tell me the correct branch. http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.2.3/ http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.2.3-RC1/ http://svn.apache.org/repos/asf/httpcomponents/httpcore/tags/4.2.3/ http://svn.apache.org/repos/asf/httpcomponents/httpcore/tags/4.2.3-RC1/ thank you for helps, deepak HttpClient 4.2.3 should be available in the Maven central by now. I am going to send a formal release announcement in a short while. Oleg On Tue, Jan 8, 2013 at 4:02 PM, dilip ved...@gmail.com wrote: created issue https://issues.apache.org/jira/browse/HTTPCLIENT-1293 i have tried changing the GGSSchemeBase.java my change is working in my setup added my change in comments. - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
Re: Re:
Thank you very much Oleg. I got the latest build from following URL http://archive.apache.org/dist/httpcomponents/httpclient/binary/ I need one more help from you. Can you please give me a sample program that communicates through proxy server using kerberos authentication. I am successfully able to communicate to an internet URL through proxy server using kerberos authentication, but it asks for UserName and password twice; although I have specified the username and password in the program. Following is the sample program. System.setProperty(java.security.krb5.conf, krb5.ini); System.setProperty(java.security.auth.login.config, spNegoLogin.conf); System.setProperty(javax.security.auth.useSubjectCredsOnly, false); System.setProperty(sun.security.krb5.debug, true); DefaultHttpClient httpClient = new DefaultHttpClient(); AuthSchemeRegistry authreg = httpClient.getAuthSchemes(); authreg.unregister(Negotiate); authreg.register(Negotiate, new SPNegoSchemeFactory(true)); httpClient.setAuthSchemes(authreg); HttpHost httpHost = new HttpHost(proxyserver.test.local, 3128); httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, httpHost); CredentialsProvider provider = httpClient.getCredentialsProvider(); AuthScope authScope = new AuthScope(proxyserver.test.local, 3128, TEST.LOCAL, AuthPolicy.SPNEGO); UsernamePasswordCredentials creds = new UsernamePasswordCredentials(adminusername, password); provider.setCredentials(authScope, creds); HttpUriRequest request = new HttpGet(http://www.google.com;); try { HttpResponse response = httpClient.execute(request); BasicResponseHandler handler = new BasicResponseHandler(); String respStr = handler.handleResponse(response); System.out.println(respStr); } catch (ClientProtocolException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } thank you. On Tue, Jan 15, 2013 at 5:12 PM, Oleg Kalnichevski ol...@apache.org wrote: HttpClient 4.2.3 should be available in the Maven central by now. I am going to send a formal release announcement in a short while. Oleg On Tue, Jan 8, 2013 at 4:02 PM, dilip ved...@gmail.com wrote: created issue https://issues.apache.org/jira/browse/HTTPCLIENT-1293 i have tried changing the GGSSchemeBase.java my change is working in my setup added my change in comments. - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
[ANNOUNCEMENT] HttpComponents HttpClient 4.2.3 GA release
The HttpComponents project is pleased to announce 4.2.3 GA release of Apache HttpClient. This is a bug fix release that addresses a number of issues reported since release 4.2.2. This release also includes a thoroughly reworked NTLM authentication engine which should result in a better compatibility with the newest Microsoft products. Users of HttpClient 4.x are advised to upgrade. --- Download - http://hc.apache.org/downloads.cgi Release notes - http://www.apache.org/dist/httpcomponents/httpclient/RELEASE_NOTES.txt HttpComponents site - http://hc.apache.org/ --- About Apache HttpClient Although the java.net package provides basic functionality for accessing resources via HTTP, it doesn't provide the full flexibility or functionality needed by many applications. HttpClient seeks to fill this void by providing an efficient, up-to-date, and feature-rich package implementing the client side of the most recent HTTP standards and recommendations. Designed for extension while providing robust support for the base HTTP protocol, HttpClient may be of interest to anyone building HTTP-aware client applications such as web browsers, web service clients, or systems that leverage or extend the HTTP protocol for distributed communication. - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
Re: [ANNOUNCEMENT] HttpComponents HttpClient 4.2.3 GA release
Hi Oleg, Into httpcomponents-client-4.2.3 zip file there is httpcore-4.2.2 file. Should it not be httpcore-4.2.3? JM 2013/1/15, Oleg Kalnichevski ol...@apache.org: The HttpComponents project is pleased to announce 4.2.3 GA release of Apache HttpClient. This is a bug fix release that addresses a number of issues reported since release 4.2.2. This release also includes a thoroughly reworked NTLM authentication engine which should result in a better compatibility with the newest Microsoft products. Users of HttpClient 4.x are advised to upgrade. --- Download - http://hc.apache.org/downloads.cgi Release notes - http://www.apache.org/dist/httpcomponents/httpclient/RELEASE_NOTES.txt HttpComponents site - http://hc.apache.org/ --- About Apache HttpClient Although the java.net package provides basic functionality for accessing resources via HTTP, it doesn't provide the full flexibility or functionality needed by many applications. HttpClient seeks to fill this void by providing an efficient, up-to-date, and feature-rich package implementing the client side of the most recent HTTP standards and recommendations. Designed for extension while providing robust support for the base HTTP protocol, HttpClient may be of interest to anyone building HTTP-aware client applications such as web browsers, web service clients, or systems that leverage or extend the HTTP protocol for distributed communication. - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
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-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
RE: Unit test failure
Guess I will try 4.2.3 quick. -Original Message- From: Mark Claassen [mailto:ma...@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-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
RE: Unit test failure
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! 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:ma...@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:ma...@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-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
Re: Unit test failure
On 15 January 2013 17:45, Mark Claassen ma...@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:ma...@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:ma...@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-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
RE: Unit test failure
Sorry, I bit of a type-o there. I still get a unit test failure in the same place. I am going to see if I can try a build on another machine. -Original Message- From: Mark Claassen [mailto:ma...@donnell.com] Sent: Tuesday, January 15, 2013 12:46 PM To: 'HttpClient User Discussion' Subject: RE: Unit test failure 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! 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:ma...@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:ma...@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-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
Re: Unit test failure
On 15 January 2013 18:08, Mark Claassen ma...@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 outorg.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 Try running just that test case: mvn test -Dtest=TestStatefulConnManagement What JVM and OS are you using? -Original Message- From: sebb [mailto:seb...@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 ma...@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:ma...@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:ma...@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-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
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:seb...@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 ma...@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 outorg.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:seb...@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 ma...@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:ma...@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:ma...@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-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
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. --- 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:ma...@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:seb...@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 ma...@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 outorg.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:seb...@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 ma...@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
RE: Unit test failure
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:ma...@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. --- 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:ma...@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:seb...@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 ma...@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 outorg.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:seb...@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 ma...@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
Re: Unit test failure
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:ma...@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=revisionrevision=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:ma...@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:seb...@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 ma...@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 outorg.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:seb...@gmail.com] Sent: Tuesday, January 15, 2013 12:57 PM To: HttpClient User Discussion
RE: Unit test failure
Thanks! My test laptops are not too fast, so I am guessing that this might be the issue. I am not too familiar with the ins and outs of maven. Is there a way I can remove this test from my local lists of tests and run the build successfully? Mark -Original Message- From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: Tuesday, January 15, 2013 3:25 PM To: HttpClient User Discussion Subject: Re: Unit test failure 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:ma...@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=revisionrevision=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.TestStatefulConnMa nagement): 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\httpcli ent\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:ma...@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:seb...@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 ma...@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 outorg.apache.http.conn.ConnectTimeoutException: Connect to localhost:54964 timed out at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSo ck etFactory.java:129) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnec ti on(DefaultClientConnectionOperator.java:180) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedCl ie ntConnectionImpl.java:294) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(Defaul tR equestDirector.java:645) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRe qu estDirector.java:480) at
Re: Unit test failure
On Tue, 2013-01-15 at 15:39 -0500, Mark Claassen wrote: Thanks! My test laptops are not too fast, so I am guessing that this might be the issue. I am not too familiar with the ins and outs of maven. Is there a way I can remove this test from my local lists of tests and run the build successfully? Mark I am not sure individual test can be excluded through maven configuration without patching the source. Oleg - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org