I've never worked with Android so I will need some help in order to
diagnose the issue. Can you try to create the JDKAsyncHttpProvider
directly instead of letting the library creates it?
AsyncHttpClient c = new AsyncHttpClient(new JDKAsyncHttpProvider(new
AsyncHttpClientConfig.Builder().build()));
Thanks!
-- Jeanfrancois
> --
> You received this message because you are subscribed to the Google
> Groups "asynchttpclient" group.
> To post to this group, send email to asyncht...@googlegroups.com.
> To unsubscribe from this group, send email to
> asynchttpclie...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/asynchttpclient?hl=en.
On 11-05-09 6:14 PM, Konrad Malawski wrote:
> Hi and thanks for your response.
>
> Yes I tried it like you suggested (tried it again just now to be sure),
> it results in:
>
> 05-09 22:04:48.857: ERROR/AndroidRuntime(288): Uncaught handler: thread
> main exiting due to uncaught exception
> 05-09 22:04:48.867: ERROR/AndroidRuntime(288): java.lang.VerifyError:
> com.ning.http.client.providers.jdk.JDKAsyncHttpProvider
> at
> pl.llp.kanbanery.guice.JanbaneryProvider.getRestClient(JanbaneryProvider.java:46)
> at pl.llp.kanbanery.guice.JanbaneryProvider.get(JanbaneryProvider.java:32)
> at pl.llp.kanbanery.guice.JanbaneryProvider.get(JanbaneryProvider.java:18)
Thanks for sharing. I've filled:
https://issues.sonatype.org/browse/AHC-91
to track the issue. I've never developped with Android so I will need a
couple of days to install the dev env and see wha
>
> In the end I just switched my high level "RestClient" which does some
> additional things to the http client implementation that is native to
> Android, that is to the packages -> org.apache.http.*
> (org.apache.http.impl.client.DefaultHttpClient).
> So if we'd be able to implement an AsyncHttpProvider using the
> DefaultHttpClient from Apache, AsyncHttpClient would probably get it's
> Android support :-) I may research this further in some freetime hmm...
> If I come up with an implementation I'll be sure to let you know about
> it :-)
Thanks!
> My basic implementation is enough for now for me, I didn't really
> harness the async part of your library in this project yet so a simple
> implementation was easy to swap in.
>
> --
> Thanks a lot for your response and good work on AHC :-)
Thanks! Let me know how it goes!
-- Jeanfrancois
I'm not longer full time on this project (specially for the next 3
months)...hence if you need support, you will need to submit patches :-) :-)
Any contribution welcomed!
Thanks!
-- Jeanfrancois