<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><p style="background-color: rgb(255, 255, 255);"><font color="#222222" face="arial, sans-serif"><span style="font-size: 12.8px;"><b>Is anyone familiar with the below stack trace trying to connect Keycloak to Tomcat, please?</b></span></font></p><p style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; background-color: rgb(255, 255, 255);"><b><br></b></p><p style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; background-color: rgb(255, 255, 255);"><b>type</b>&nbsp;Exception report</p><p style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; background-color: rgb(255, 255, 255);"><b>message</b>&nbsp;<u>Could not create authentication request.</u></p><p style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; background-color: rgb(255, 255, 255);"><b>description</b>&nbsp;<u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; background-color: rgb(255, 255, 255);"><b>exception</b></p><pre style="white-space: pre-wrap; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);">java.lang.RuntimeException: Could not create authentication request.
        org.keycloak.adapters.saml.<wbr>AbstractInitiateLogin.<wbr>challenge(<wbr>AbstractInitiateLogin.java:63)
        org.keycloak.adapters.saml.<wbr>AbstractSamlAuthenticatorValve<wbr>.executeAuthenticator(<wbr>AbstractSamlAuthenticatorValve<wbr>.java:247)
        org.keycloak.adapters.saml.<wbr>AbstractSamlAuthenticatorValve<wbr>.authenticateInternal(<wbr>AbstractSamlAuthenticatorValve<wbr>.java:222)
        org.keycloak.adapters.saml.<wbr>tomcat.SamlAuthenticatorValve.<wbr>authenticate(<wbr>SamlAuthenticatorValve.java:<wbr>42)
        org.apache.catalina.<wbr>authenticator.<wbr>AuthenticatorBase.invoke(<wbr>AuthenticatorBase.java:574)
        org.keycloak.adapters.saml.<wbr>AbstractSamlAuthenticatorValve<wbr>.invoke(<wbr>AbstractSamlAuthenticatorValve<wbr>.java:184)
        org.apache.catalina.valves.<wbr>ErrorReportValve.invoke(<wbr>ErrorReportValve.java:99)
        org.apache.catalina.valves.<wbr>AccessLogValve.invoke(<wbr>AccessLogValve.java:953)
        org.apache.catalina.connector.<wbr>CoyoteAdapter.service(<wbr>CoyoteAdapter.java:408)
        org.apache.coyote.http11.<wbr>AbstractHttp11Processor.<wbr>process(<wbr>AbstractHttp11Processor.java:<wbr>1023)
        org.apache.coyote.<wbr>AbstractProtocol$<wbr>AbstractConnectionHandler.<wbr>process(AbstractProtocol.java:<wbr>589)
        org.apache.tomcat.util.net.<wbr>JIoEndpoint$SocketProcessor.<wbr>run(JIoEndpoint.java:312)
        java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1145)
        java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:615)
        java.lang.Thread.run(Thread.<wbr>java:744)
</pre><p style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; background-color: rgb(255, 255, 255);"><b>root cause</b></p><pre style="white-space: pre-wrap; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);">java.lang.RuntimeException: java.io.IOException: Buffer overflow, no sink 4096 4096
        org.keycloak.adapters.saml.<wbr>CatalinaSamlSessionStore.<wbr>saveRequest(<wbr>CatalinaSamlSessionStore.java:<wbr>226)
        org.keycloak.adapters.saml.<wbr>AbstractInitiateLogin.<wbr>challenge(<wbr>AbstractInitiateLogin.java:58)
        org.keycloak.adapters.saml.<wbr>AbstractSamlAuthenticatorValve<wbr>.executeAuthenticator(<wbr>AbstractSamlAuthenticatorValve<wbr>.java:247)
        org.keycloak.adapters.saml.<wbr>AbstractSamlAuthenticatorValve<wbr>.authenticateInternal(<wbr>AbstractSamlAuthenticatorValve<wbr>.java:222)
        org.keycloak.adapters.saml.<wbr>tomcat.SamlAuthenticatorValve.<wbr>authenticate(<wbr>SamlAuthenticatorValve.java:<wbr>42)
        org.apache.catalina.<wbr>authenticator.<wbr>AuthenticatorBase.invoke(<wbr>AuthenticatorBase.java:574)
        org.keycloak.adapters.saml.<wbr>AbstractSamlAuthenticatorValve<wbr>.invoke(<wbr>AbstractSamlAuthenticatorValve<wbr>.java:184)
        org.apache.catalina.valves.<wbr>ErrorReportValve.invoke(<wbr>ErrorReportValve.java:99)
        org.apache.catalina.valves.<wbr>AccessLogValve.invoke(<wbr>AccessLogValve.java:953)
        org.apache.catalina.connector.<wbr>CoyoteAdapter.service(<wbr>CoyoteAdapter.java:408)
        org.apache.coyote.http11.<wbr>AbstractHttp11Processor.<wbr>process(<wbr>AbstractHttp11Processor.java:<wbr>1023)
        org.apache.coyote.<wbr>AbstractProtocol$<wbr>AbstractConnectionHandler.<wbr>process(AbstractProtocol.java:<wbr>589)
        org.apache.tomcat.util.net.<wbr>JIoEndpoint$SocketProcessor.<wbr>run(JIoEndpoint.java:312)
        java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1145)
        java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:615)
        java.lang.Thread.run(Thread.<wbr>java:744)
</pre><p style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; background-color: rgb(255, 255, 255);"><b>root cause</b></p><pre style="white-space: pre-wrap; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);">java.io.IOException: Buffer overflow, no sink 4096 4096
        org.apache.tomcat.util.buf.<wbr>ByteChunk.flushBuffer(<wbr>ByteChunk.java:477)
        org.apache.tomcat.util.buf.<wbr>ByteChunk.append(ByteChunk.<wbr>java:366)
        org.apache.catalina.<wbr>authenticator.<wbr>FormAuthenticator.saveRequest(<wbr>FormAuthenticator.java:664)
        org.keycloak.adapters.saml.<wbr>AbstractSamlAuthenticatorValve<wbr>.keycloakSaveRequest(<wbr>AbstractSamlAuthenticatorValve<wbr>.java:253)
        org.keycloak.adapters.saml.<wbr>CatalinaSamlSessionStore.<wbr>saveRequest(<wbr>CatalinaSamlSessionStore.java:<wbr>224)
        org.keycloak.adapters.saml.<wbr>AbstractInitiateLogin.<wbr>challenge(<wbr>AbstractInitiateLogin.java:58)
        org.keycloak.adapters.saml.<wbr>AbstractSamlAuthenticatorValve<wbr>.executeAuthenticator(<wbr>AbstractSamlAuthenticatorValve<wbr>.java:247)
        org.keycloak.adapters.saml.<wbr>AbstractSamlAuthenticatorValve<wbr>.authenticateInternal(<wbr>AbstractSamlAuthenticatorValve<wbr>.java:222)
        org.keycloak.adapters.saml.<wbr>tomcat.SamlAuthenticatorValve.<wbr>authenticate(<wbr>SamlAuthenticatorValve.java:<wbr>42)
        org.apache.catalina.<wbr>authenticator.<wbr>AuthenticatorBase.invoke(<wbr>AuthenticatorBase.java:574)
        org.keycloak.adapters.saml.<wbr>AbstractSamlAuthenticatorValve<wbr>.invoke(<wbr>AbstractSamlAuthenticatorValve<wbr>.java:184)
        org.apache.catalina.valves.<wbr>ErrorReportValve.invoke(<wbr>ErrorReportValve.java:99)
        org.apache.catalina.valves.<wbr>AccessLogValve.invoke(<wbr>AccessLogValve.java:953)
        org.apache.catalina.connector.<wbr>CoyoteAdapter.service(<wbr>CoyoteAdapter.java:408)
        org.apache.coyote.http11.<wbr>AbstractHttp11Processor.<wbr>process(<wbr>AbstractHttp11Processor.java:<wbr>1023)
        org.apache.coyote.<wbr>AbstractProtocol$<wbr>AbstractConnectionHandler.<wbr>process(AbstractProtocol.java:<wbr>589)
        org.apache.tomcat.util.net.<wbr>JIoEndpoint$SocketProcessor.<wbr>run(JIoEndpoint.java:312)
        java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1145)
        java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:615)
        java.lang.Thread.run(Thread.<wbr>java:744)</pre><br><div><hr id="stopSpelling"><div dir="ltr"><div><br></div>                                               </div></div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>                                               </div></body>
</html>