In my opinion, you should protocol an error here. In my case I had a SSLHandshakeException exception, which was not clear to find in production log. Locally everything worked fine, but on other machine ...crashed!!! The problem was the cacert's trustore. I need almost 12 h to find the problem. The problem was, that the first exception was thrown during token verification.
Code Snippet from your code:
protected void resolveUrls() {
if (realmInfoUrl == null) {
synchronized (this) {
...
log.infov("Loaded URLs from {0}", discoveryUrl);
} catch (Exception e) {
****log.warnv(e, "Failed to load URLs from {0}", discoveryUrl);****
}
}
}
}
}
Comment From: wilkinsona
The code you're referring to is part of Keycloak.