[rabbitmq-discuss] RabbitMQ Java Client 2.3.1 on Android

Denis Conan Denis.Conan at telecom-sudparis.eu
Tue Feb 8 12:38:07 GMT 2011

Hi all,

my objective is to run the Java Client on Android.

Do not hesitate to tell me if I started off with the wrong idea.

I didn't see any specific release for Android. So, I took the Java Client for 
J2SE. I was able to adapt the previous version 2.2.0 of the Java Client for 
running on Android: removal of packages json and jsonrpc, and correct a call to 
super in the constructor of the class PossibleAuthenticationFailureException.

As I see, the new version 2.3.1 now has authentication with SASL. 
Unfortunately, there is no package javax.security.sasl in Android JRE. So, I 
tried to manage this lack by replacing the classes of this package by the ones 
in aSMACK (http://code.google.com/p/asmack/). The compilation is ok, but the 
execution throws the following exception.

Any comment and/or help will be appreciated. Thanks in advance.

java.io.IOException: No compatible authentication mechanism found - server 
W/System.err(  275): 	at 
W/System.err(  275): 	at 
W/System.err(  275): 	at 
W/System.err(  275): 	at 
W/System.err(  275): 	at 

The RabbitMQ server logs contains the following message:

=INFO REPORT==== 8-Feb-2011::13:07:27 ===
accepted TCP connection on [::]:5672 from

=INFO REPORT==== 8-Feb-2011::13:07:27 ===
starting TCP connection <0.22221.0> from

=ERROR REPORT==== 8-Feb-2011::13:07:37 ===
exception on TCP connection <0.22221.0> from

=INFO REPORT==== 8-Feb-2011::13:07:37 ===
closing TCP connection <0.22221.0> from

Denis Conan

More information about the rabbitmq-discuss mailing list