<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Probably you are doing a very large POST or PUT to a secure URL,
      the adapter is trying to save the request in the HttpSession and
      running into buffer limits.  getMaxSavePostSize()  Probably a
      tomcat setting somewhere.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 6/13/16 12:59 PM, Richard Lavallee
      wrote:<br>
    </div>
    <blockquote cite="mid:BLU181-W39C7DAC79BE276D9DB27D7CB530@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr">
        <p style="background-color: rgb(255, 255, 255);"><font
            face="arial, sans-serif" color="#222222"><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> 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> <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> <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>
<div><hr id="stopSpelling"><div dir="ltr"><div>
</div>                                               </div></div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

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

--></style>                                               </div>


<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>

</blockquote>
</body></html>