I tried to authenticate my Spring-based web server with OpenID identity server. On the first authentication attempt application crashed. I traced the problem to the following co