Leave the clientId username and password fields null instead of setting them to "" if no value is specified. Connection was failing due to broker expecting to be null if not set.