mirror of
https://github.com/corda/corda.git
synced 2025-01-18 10:46:38 +00:00
Silence SASL exception (#3208)
This commit is contained in:
parent
48b126321b
commit
c2c792eccf
@ -104,7 +104,12 @@ class BrokerJaasLoginModule : BaseBrokerJaasLoginModule() {
|
||||
loginSucceeded = true
|
||||
return true
|
||||
} catch (e: Exception) {
|
||||
log.error("Login failed: ${e.message}", e)
|
||||
// This is a known problem, so we swallow this exception. A peer will attempt to connect without presenting client certificates during SASL
|
||||
if (e is IllegalArgumentException && e.stackTrace.any { it.className == "org.apache.activemq.artemis.protocol.amqp.sasl.PlainSASL" }) {
|
||||
log.trace("SASL Login failed.")
|
||||
} else {
|
||||
log.error("Login failed: ${e.message}", e)
|
||||
}
|
||||
if (e is LoginException) {
|
||||
throw e
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user