Netty 4?

164 views
Skip to first unread message

Seb Andraos

unread,
Mar 4, 2015, 7:02:24 PM3/4/15
to asyncht...@googlegroups.com
Bonsoir,

I'm getting missing method errors with Netty 3.2.10 and AHC 1.9.11 (on Android)

java.lang.NoSuchMethodError: No interface method headers()Lorg/jboss/netty/handler/codec/http/HttpHeaders; in class Lorg/jboss/netty/handler/codec/http/HttpRequest; or its super classes (declaration of 'org.jboss.netty.handler.codec.http.HttpRequest' appears in /data/app/xyz.collabo.dmri-1/base.apk)
            at com.ning.http.client.providers.netty.request.NettyRequestFactory.newNettyRequest(NettyRequestFactory.java:293)
            at com.ning.http.client.providers.netty.request.NettyRequestSender.newNettyRequestAndResponseFuture(NettyRequestSender.java:179)
            at com.ning.http.client.providers.netty.request.NettyRequestSender.sendRequestWithCertainForceConnect(NettyRequestSender.java:133)
            at com.ning.http.client.providers.netty.request.NettyRequestSender.sendRequest(NettyRequestSender.java:115)
            at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.execute(NettyAsyncHttpProvider.java:87)
            at com.ning.http.client.AsyncHttpClient.executeRequest(AsyncHttpClient.java:486)
            at com.ning.http.client.AsyncHttpClient$BoundRequestBuilder.execute(AsyncHttpClient.java:225)
            at all.my.functions......

From what I've seen in other posts/questions AHC is compatible with android, if not officially, as is Netty 4.x but obviously that hasn't been implemented in AHC 1.9.
I tried building the master to test Netty 4 but, I assume because it's not stable yet, I can't get the master to build.
Is this issue worthy or should i just give it a miss until 2.0 is stable/beta?

Thanks in advance,

Seb

Stéphane LANDELLE

unread,
Mar 5, 2015, 3:47:57 AM3/5/15
to asyncht...@googlegroups.com
AHC 1.9.11 uses Netty 3.10.0 (groupId is io.netty, not org.jboss.netty that was used until 3.2.10): https://github.com/AsyncHttpClient/async-http-client/blob/1.9.x/pom.xml#L558

We might start releasing alpha versions of AHC2 with Netty 4 support soon.



Stéphane Landelle
Lead developer


--
You received this message because you are subscribed to the Google Groups "asynchttpclient" group.
To unsubscribe from this group and stop receiving emails from it, send an email to asynchttpclie...@googlegroups.com.
To post to this group, send email to asyncht...@googlegroups.com.
Visit this group at http://groups.google.com/group/asynchttpclient.
For more options, visit https://groups.google.com/d/optout.

Seb Andraos

unread,
Mar 5, 2015, 6:04:01 AM3/5/15
to asyncht...@googlegroups.com

Great, thanks Stephane. I'll try this out when I get bank to a computer but I guess that means that the references to org.jboss in http/client/providers/netty/NettyAsyncHttpProvider.Java under the 1.9.x branch is an error? If so I can change that but just want to check that's not intentional


You received this message because you are subscribed to a topic in the Google Groups "asynchttpclient" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/asynchttpclient/gcirj3bwrnI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to asynchttpclie...@googlegroups.com.

Stéphane LANDELLE

unread,
Mar 5, 2015, 6:14:30 AM3/5/15
to asyncht...@googlegroups.com
I don't understand what you mean. You're using an oooooold Netty version. Upgrade to 3.10.0.

Stéphane Landelle
Lead developer


Seb Andraos

unread,
Mar 5, 2015, 7:20:27 AM3/5/15
to asyncht...@googlegroups.com
Sorry Stéphane, slight misunderstanding.

From what I can see Netty 3.10.0 is still using groupId jboss.org, which is what the AHC 1.9.11 imports show. I was suggesting that the jboss.org imports might not be correct based on 
"AHC 1.9.11 uses Netty 3.10.0 (groupId is io.netty, not org.jboss.netty that was used until 3.2.10):"
I have now imported the latest Netty and it "works" (well now I'm getting NetworkOnMainThread exceptions but that's Android's problem).

Thanks again,

Seb

slan...@gatling.io

unread,
Mar 5, 2015, 7:22:31 AM3/5/15
to asyncht...@googlegroups.com
You're misunderstanding package and maven groupId.


--

Seb Andraos

unread,
Mar 5, 2015, 8:16:03 AM3/5/15
to asyncht...@googlegroups.com

You're absolutely right, I got confused because the package in netty 4 changed to netty.io too and I'm not familiar with maven terminology.
Thanks for your help


You received this message because you are subscribed to a topic in the Google Groups "asynchttpclient" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/asynchttpclient/gcirj3bwrnI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to asynchttpclie...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages