Is anyone familiar with the below stack trace trying to connect Keycloak to Tomcat, please?
type Exception report
message Could not create authentication request.
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.RuntimeException: Could not create authentication request. org.keycloak.adapters.saml.AbstractInitiateLogin. challenge( AbstractInitiateLogin.java:63) org.keycloak.adapters.saml. AbstractSamlAuthenticatorValve .executeAuthenticator( AbstractSamlAuthenticatorValve .java:247) org.keycloak.adapters.saml. AbstractSamlAuthenticatorValve .authenticateInternal( AbstractSamlAuthenticatorValve .java:222) org.keycloak.adapters.saml. tomcat.SamlAuthenticatorValve. authenticate( SamlAuthenticatorValve.java: 42) org.apache.catalina. authenticator. AuthenticatorBase.invoke( AuthenticatorBase.java:574) org.keycloak.adapters.saml. AbstractSamlAuthenticatorValve .invoke( AbstractSamlAuthenticatorValve .java:184) org.apache.catalina.valves. ErrorReportValve.invoke( ErrorReportValve.java:99) org.apache.catalina.valves. AccessLogValve.invoke( AccessLogValve.java:953) org.apache.catalina.connector. CoyoteAdapter.service( CoyoteAdapter.java:408) org.apache.coyote.http11. AbstractHttp11Processor. process( AbstractHttp11Processor.java: 1023) org.apache.coyote. AbstractProtocol$ AbstractConnectionHandler. process(AbstractProtocol.java: 589) org.apache.tomcat.util.net. JIoEndpoint$SocketProcessor. run(JIoEndpoint.java:312) java.util.concurrent. ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1145) java.util.concurrent. ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:615) java.lang.Thread.run(Thread. java:744)
root cause
java.lang.RuntimeException: java.io.IOException: Buffer overflow, no sink 4096 4096 org.keycloak.adapters.saml.CatalinaSamlSessionStore. saveRequest( CatalinaSamlSessionStore.java: 226) org.keycloak.adapters.saml. AbstractInitiateLogin. challenge( AbstractInitiateLogin.java:58) org.keycloak.adapters.saml. AbstractSamlAuthenticatorValve .executeAuthenticator( AbstractSamlAuthenticatorValve .java:247) org.keycloak.adapters.saml. AbstractSamlAuthenticatorValve .authenticateInternal( AbstractSamlAuthenticatorValve .java:222) org.keycloak.adapters.saml. tomcat.SamlAuthenticatorValve. authenticate( SamlAuthenticatorValve.java: 42) org.apache.catalina. authenticator. AuthenticatorBase.invoke( AuthenticatorBase.java:574) org.keycloak.adapters.saml. AbstractSamlAuthenticatorValve .invoke( AbstractSamlAuthenticatorValve .java:184) org.apache.catalina.valves. ErrorReportValve.invoke( ErrorReportValve.java:99) org.apache.catalina.valves. AccessLogValve.invoke( AccessLogValve.java:953) org.apache.catalina.connector. CoyoteAdapter.service( CoyoteAdapter.java:408) org.apache.coyote.http11. AbstractHttp11Processor. process( AbstractHttp11Processor.java: 1023) org.apache.coyote. AbstractProtocol$ AbstractConnectionHandler. process(AbstractProtocol.java: 589) org.apache.tomcat.util.net. JIoEndpoint$SocketProcessor. run(JIoEndpoint.java:312) java.util.concurrent. ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1145) java.util.concurrent. ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:615) java.lang.Thread.run(Thread. java:744)
root cause
java.io.IOException: Buffer overflow, no sink 4096 4096 org.apache.tomcat.util.buf.ByteChunk.flushBuffer( ByteChunk.java:477) org.apache.tomcat.util.buf. ByteChunk.append(ByteChunk. java:366) org.apache.catalina. authenticator. FormAuthenticator.saveRequest( FormAuthenticator.java:664) org.keycloak.adapters.saml. AbstractSamlAuthenticatorValve .keycloakSaveRequest( AbstractSamlAuthenticatorValve .java:253) org.keycloak.adapters.saml. CatalinaSamlSessionStore. saveRequest( CatalinaSamlSessionStore.java: 224) org.keycloak.adapters.saml. AbstractInitiateLogin. challenge( AbstractInitiateLogin.java:58) org.keycloak.adapters.saml. AbstractSamlAuthenticatorValve .executeAuthenticator( AbstractSamlAuthenticatorValve .java:247) org.keycloak.adapters.saml. AbstractSamlAuthenticatorValve .authenticateInternal( AbstractSamlAuthenticatorValve .java:222) org.keycloak.adapters.saml. tomcat.SamlAuthenticatorValve. authenticate( SamlAuthenticatorValve.java: 42) org.apache.catalina. authenticator. AuthenticatorBase.invoke( AuthenticatorBase.java:574) org.keycloak.adapters.saml. AbstractSamlAuthenticatorValve .invoke( AbstractSamlAuthenticatorValve .java:184) org.apache.catalina.valves. ErrorReportValve.invoke( ErrorReportValve.java:99) org.apache.catalina.valves. AccessLogValve.invoke( AccessLogValve.java:953) org.apache.catalina.connector. CoyoteAdapter.service( CoyoteAdapter.java:408) org.apache.coyote.http11. AbstractHttp11Processor. process( AbstractHttp11Processor.java: 1023) org.apache.coyote. AbstractProtocol$ AbstractConnectionHandler. process(AbstractProtocol.java: 589) org.apache.tomcat.util.net. JIoEndpoint$SocketProcessor. run(JIoEndpoint.java:312) java.util.concurrent. ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1145) java.util.concurrent. ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:615) java.lang.Thread.run(Thread. java:744)