A trivial program which just tries to make a Connection fails if it uses a connection URL like:
This forces the client to use ANONYMOUS.
ConnectionFactory connectionFactory = ...
Connection connection = connectionFactory.createConnection();
FAILS HERE ^^^
org.apache.qpid.transport.ConnectionException: Client and broker have no SASL mechanisms in common. Broker allows : PLAIN DIGEST-MD5 ANONYMOUS LOGIN CRAM-MD5 Client has : [EXTERNAL, GSSAPI, CRAM-MD5-HASHED, CRAM-MD5, AMQPLAIN, PLAIN] Client restricted itself to : ANONYMOUS
Notice that the client doesn't think it supports ANONYMOUS.