hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: [VOTE] Release HttpAsyncClient 4.1.2 based on RC1
Date Wed, 15 Jun 2016 22:19:55 GMT
On Wed, Jun 15, 2016 at 2:00 AM, Oleg Kalnichevski <olegk@apache.org> wrote:

> On Wed, 2016-06-15 at 01:03 -0700, Gary Gregory wrote:
> > On Tue, Jun 14, 2016 at 1:46 AM, Oleg Kalnichevski <olegk@apache.org>
> wrote:
> >
> > > On Mon, 2016-06-13 at 14:22 -0700, Gary Gregory wrote:
> > > > On Mon, Jun 13, 2016 at 10:16 AM, Oleg Kalnichevski <
> olegk@apache.org>
> > > > wrote:
> > >
> > > ...
> > >
> > > > > Gary
> > > > > Could you please add this line prior to the assert (See patch
> attached)
> > > > > and send me the stack trace?
> > > >
> > > > ---
> > > > > cause.printStackTrace();
> > > > >
> > > >
> > > > Here you go:
> > > >
> > > > java.lang.IllegalStateException
> > > > at
> > > >
> > >
> org.apache.http.nio.client.integration.TestHttpAsyncPrematureTermination$7.responseReceived(TestHttpAsyncPrematureTermination.java:273)
> > > > at
> > > >
> > >
> org.apache.http.impl.nio.client.MainClientExec.responseReceived(MainClientExec.java:315)
> > > > at
> > >
> > > Thanks, Gary
> > >
> > > As bizarre as it may sound it looks like 'stuff.invalid' hostname does
> > > resolve to a valid address on your system.
> > >
> > > I tweaked the test case to use '0.0.0.0' instead of '.invalid' hostname
> > > to simulate refused connection exception.
> > >
> > > Could you please try building and running the tests of the latest
> > > snapshot?
> > >
> >
> > Hi Oleg,
> >
> > The latest from the 4.1.x branch gives me (mvn clean test):
> >
> >
> testConnectionRequestFailure(org.apache.http.nio.client.integration.TestHttpAsyncPrematureTermination)
> >  Time elapsed: 0.036 sec  <<< FAILURE!
> > java.lang.AssertionError: Unexpected cause:
> java.lang.IllegalStateException
> >         at org.junit.Assert.fail(Assert.java:88)
> >         at org.junit.Assert.assertTrue(Assert.java:41)
> >         at
> >
> org.apache.http.nio.client.integration.TestHttpAsyncPrematureTermination.testConnectionRequestFailure(TestHttpAsyncPrematureTermination.java:309)
> >
> > I have:
> >
> > URL:
> >
> https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/branches/4.1.x
> > Relative URL: ^/httpcomponents/httpasyncclient/branches/4.1.x
> > Repository Root: https://svn.apache.org/repos/asf
> > Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> > Revision: 1748513
> > Node Kind: directory
> > Schedule: normal
> > Last Changed Author: olegk
> > Last Changed Rev: 1748358
> > Last Changed Date: 2016-06-14 01:42:54 -0700 (Tue, 14 Jun 2016)
> >
> > Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
> > 2015-11-10T08:41:47-08:00)
> > Maven home: E:\Java\apache-maven-3.3.9
> > Java version: 1.8.0_91, vendor: Oracle Corporation
> > Java home: C:\Program Files\Java\jdk1.8.0_91\jre
> > Default locale: en_US, platform encoding: Cp1252
> > OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
> >
> > If I add "e.printStackTrace();" before the failing JUnit assertion, I
> get:
> >
> > Running
> > org.apache.http.nio.client.integration.TestHttpAsyncPrematureTermination
> > java.util.concurrent.ExecutionException: java.lang.IllegalStateException
> >         at
>
> That basically means that '0.0.0.0' address resolves to local host on
> your system. This makes no sense.
>
> Could you please change the request URL in the test from
> "http://0.0.0.0/" to "http://0.0.0.0:000/" and try one more time?
>
> ---
> final HttpGet get = new HttpGet("http://0.0.0.0:000/");
> ---
>

With that, on the console, I get (Running from Eclipse now):

java.util.concurrent.ExecutionException: java.lang.IllegalStateException
at org.apache.http.concurrent.BasicFuture.getResult(BasicFuture.java:70)
at org.apache.http.concurrent.BasicFuture.get(BasicFuture.java:80)
at
org.apache.http.nio.client.integration.TestHttpAsyncPrematureTermination.testConnectionRequestFailure(TestHttpAsyncPrematureTermination.java:305)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: java.lang.IllegalStateException
at
org.apache.http.nio.client.integration.TestHttpAsyncPrematureTermination$7.responseReceived(TestHttpAsyncPrematureTermination.java:273)
at
org.apache.http.impl.nio.client.MainClientExec.responseReceived(MainClientExec.java:315)
at
org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.responseReceived(DefaultClientExchangeHandlerImpl.java:147)
at
org.apache.http.nio.protocol.HttpAsyncRequestExecutor.responseReceived(HttpAsyncRequestExecutor.java:303)
at
org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:255)
at
org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)
at
org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:1)
at
org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
at
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
at java.lang.Thread.run(Thread.java:662)

Gary


>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message