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 08:03:12 GMT
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
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:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        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.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
        at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
        at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
        at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
        at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
        at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
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:39)
        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:745)
Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.526 sec
<<< FAILURE! - in
org.apache.http.nio.client.integration.TestHttpAsyncPrematureTermination
testConnectionRequestFailure(org.apache.http.nio.client.integration.TestHttpAsyncPrematureTermination)
 Time elapsed: 0.19 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:310)

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