[
https://issues.apache.org/jira/browse/WINK-326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927977#action_12927977
]
Bryant Luk commented on WINK-326:
---------------------------------
Hi,
Thanks for the contribution. i applied the patch in my sandbox. When I try to
run the unit tests, I sometimes get a :
{code}
Exception in thread "Thread-4" java.lang.RuntimeException: illegal
http request
at
org.apache.wink.client.MockHttpServer$HttpProcessor.processRequestMethod(MockHttpServer.java:285)
at
org.apache.wink.client.MockHttpServer$HttpProcessor.processRequest(MockHttpServer.java:277)
at
org.apache.wink.client.MockHttpServer$HttpProcessor.run(MockHttpServer.java:248)
at
org.apache.wink.client.MockHttpServer.executeLoop(MockHttpServer.java:189)
at org.apache.wink.client.MockHttpServer.run(MockHttpServer.java:180)
Nov 3, 2010 2:51:52 PM
org.apache.wink.client.AsyncHttpClientConnectionHandler$1 onThrowable
SEVERE: com.ning.http.client.AsyncCompletionHandlerBase
Throwable occurred: java.net.ConnectException
at
com.ning.http.client.providers.netty.NettyConnectListener.operationComplete(NettyConnectListener.java:74)
at
com.ning.http.client.providers.netty.NettyAsyncHttpProvider.doConnect(NettyAsyncHttpProvider.java:764)
at
com.ning.http.client.providers.netty.NettyAsyncHttpProvider.execute(NettyAsyncHttpProvider.java:649)
at
com.ning.http.client.AsyncHttpClient.executeRequest(AsyncHttpClient.java:481)
at
org.apache.wink.client.AsyncHttpClientConnectionHandler.processRequest(AsyncHttpClientConnectionHandler.java:78)
at
org.apache.wink.client.AsyncHttpClientConnectionHandler.handle(AsyncHttpClientConnectionHandler.java:65)
at
org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52)
at
org.apache.wink.client.internal.handlers.AcceptHeaderHandler.handle(AcceptHeaderHandler.java:76)
at
org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52)
at
org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:227)
at
org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:189)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
.....
Caused by: java.util.concurrent.RejectedExecutionException
at
java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:1780)
at
java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:779)
at
java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:670)
at
org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.register(NioClientSocketPipelineSink.java:197)
at
org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.connect(NioClientSocketPipelineSink.java:153)
at
org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:103)
at
org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:60)
at
org.jboss.netty.handler.codec.http.HttpClientCodec.handleDownstream(HttpClientCodec.java:82)
at
org.jboss.netty.handler.stream.ChunkedWriteHandler.handleDownstream(ChunkedWriteHandler.java:114)
at org.jboss.netty.channel.Channels.connect(Channels.java:541)
at org.jboss.netty.channel.AbstractChannel.connect(AbstractChannel.java:218)
at
org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:227)
at
org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:188)
at
com.ning.http.client.providers.netty.NettyAsyncHttpProvider.doConnect(NettyAsyncHttpProvider.java:745)
... 34 more
{code}
I was wondering if you ran into this before.
Also, I think we'll have to rename the package to org.apache.wink.client for
the main implementation like we did for the json4j package.
> AsyncHttpClient module
> ----------------------
>
> Key: WINK-326
> URL: https://issues.apache.org/jira/browse/WINK-326
> Project: Wink
> Issue Type: New Feature
> Components: Client
> Reporter: Jean-Francois Arcand
> Priority: Minor
> Attachments:
> 0001-Cleaned-up-legal-bits-fixed-tests-added-testsupport-.patch,
> wink-client-ahc.jar
>
>
> The AsyncHttpClient Project is a library that can be used for doing
> asynchronous http request. The library supports a provider based API which
> allow pluggable http client under the hood. Currently the library ship with a
> Netty and a JDK based provider, but next version (1.4.0) will ship with an
> Apache Http Client provider as well. Right now the default is Netty because
> it is the fastest one.
> We would like to donate to the Wink project a new Wink-Client implementation
> based on this library:
> http://github.com/sonatype/wink-client-asynchttpclient
> The client has been build on top of 1.1.1-incubating released version.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.