Java client reconnect succeeds, but doesn't deliver messages

23 views
Skip to first unread message

Simon Hafner

unread,
May 27, 2024, 10:14:55 AMMay 27
to rabbitmq-users
Hello y'all

I've got two apps, an RPC ping server and a RPC client, both android apps. When the reconnecter code triggers, the logs show that the connection has recovered:

Connection amqp://tests...@10.42.0.1:5672/ has recovered

but the pings don't arrive anymore at the server. When I restart the connection by rebuilding it from the Factory, things work again.

The apps can be recreated using the standard compose app in Android Studio and then copy/pasting the corresponding files as MainActivity from https://gist.github.com/reactormonk/f1dd6eea57fb90881e5cea20fa3b0546 and adding the gradle.kt into the "dependencies" section in the corresponding gradle.build files. Also create the two users corresponding to their logins (testclient/test and testserver/test) and give them permissions on /.

Cheers,
Simon

Arnaud Cogoluègnes

unread,
May 28, 2024, 2:06:14 AMMay 28
to rabbitmq-users
The channel used to publish messages is likely to throw exceptions while the connection is down, so the publishing code must deal with them.

Please provide a standalone project with steps to reproduce the issue if you want us to investigate more.

Reply all
Reply to author
Forward
0 new messages