[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
offered [PLAIN AMQPLAIN]
W/System.err( 275): at
com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:269)
W/System.err( 275): at
com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:382)
W/System.err( 275): at
com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:402)
W/System.err( 275): at
eu.telecomsudparis.rabbitmq.tutorial.android.SendActivity.onCreate(SendActivity.java:26)
W/System.err( 275): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
The RabbitMQ server logs contains the following message:
=INFO REPORT==== 8-Feb-2011::13:07:27 ===
accepted TCP connection on [::]:5672 from 157.159.110.134:60291
=INFO REPORT==== 8-Feb-2011::13:07:27 ===
starting TCP connection <0.22221.0> from 157.159.110.134:60291
=ERROR REPORT==== 8-Feb-2011::13:07:37 ===
exception on TCP connection <0.22221.0> from 157.159.110.134:60291
{handshake_timeout,frame_header}
=INFO REPORT==== 8-Feb-2011::13:07:37 ===
closing TCP connection <0.22221.0> from 157.159.110.134:60291
--
Denis Conan
More information about the rabbitmq-discuss
mailing list