<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    The issue is that the initial request is a POST, adapter saves
    request and redirects to keycloak, authenticates, redirects back to
    app, then restores request.  The restore of the request is where the
    NoSuchMethodError happens.<br>
    <br>
    <div class="moz-cite-prefix">On 1/21/2016 10:19 AM, Stian Thorgersen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJgngAft1WkUV-xTg97jLgxY9=4to+wYgTJ+vcfCL0msP2-EXw@mail.gmail.com"
      type="cite">
      <div dir="ltr">It depends on what the actual problem is though,
        because we have tested it on WF10 and we didn't discover any
        issues</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 21 January 2016 at 16:18, Stian
          Thorgersen <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">If the adapter is broken for WF10, we need to
              fix for 1.8 as well</div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">On 21 January 2016 at 16:15,
                    Bill Burke <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:bburke@redhat.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bburke@redhat.com">bburke@redhat.com</a></a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000"> Log a jira
                        and schedule for 1.9.  I'll either create a new
                        adapter or find a workaround that is backward
                        compatible. <br>
                        <div>
                          <div> <br>
                            <div>On 1/21/2016 10:09 AM, Stian Thorgersen
                              wrote:<br>
                            </div>
                            <blockquote type="cite">
                              <div dir="ltr">What is your problem when
                                you are actually using the adapter?
                                <div><br>
                                </div>
                                <div>As I said we need the adapter to
                                  compile against multiple versions, we
                                  can not maintain one per version of
                                  WildFly.</div>
                              </div>
                              <div class="gmail_extra"><br>
                                <div class="gmail_quote">On 21 January
                                  2016 at 16:07, Christian Beikov <span
                                    dir="ltr">&lt;<a
                                      moz-do-not-send="true"
                                      href="mailto:christian.beikov@gmail.com"
                                      target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:christian.beikov@gmail.com">christian.beikov@gmail.com</a></a>&gt;</span>
                                  wrote:<br>
                                  <blockquote class="gmail_quote"
                                    style="margin:0 0 0
                                    .8ex;border-left:1px #ccc
                                    solid;padding-left:1ex">
                                    <div bgcolor="#FFFFFF"
                                      text="#000000"> As I wrote, when
                                      you change the Undertow version in
                                      the parent pom, a build will
                                      generate a compilation error when
                                      using the Undertow version that is
                                      used in Wildfly 10 which would be
                                      1.3.x.<br>
                                      <br>
                                      I encountered the following
                                      exception in the Undertow adapters
                                      because of binary
                                      incompatibilities between Undertow
                                      1.2.x and 1.3.x:<br>
                                      <br>
                                      java.lang.NoSuchMethodError:
io.undertow.server.Connectors.ungetRequestBytes(Lio/undertow/server/HttpServerExchange;[Lorg/xnio/Pooled;)V<br>
                                              at
org.keycloak.adapters.undertow.SavedRequest.tryRestoreRequest(SavedRequest.java:112)<br>
                                              at
org.keycloak.adapters.undertow.ServletSessionTokenStore.restoreRequest(ServletSessionTokenStore.java:119)<br>
                                              at
org.keycloak.adapters.undertow.ServletSessionTokenStore.isCached(ServletSessionTokenStore.java:67)<br>
                                              at
org.keycloak.adapters.RequestAuthenticator.authenticate(RequestAuthenticator.java:88)<br>
                                              at
org.keycloak.adapters.undertow.AbstractUndertowKeycloakAuthMech.keycloakAuthenticate(AbstractUndertowKeycloakAuthMech.java:110)<br>
                                              at
org.keycloak.adapters.undertow.ServletKeycloakAuthMech.authenticate(ServletKeycloakAuthMech.java:92)<br>
                                      <br>
                                      <br>
                                      Regards,<br>
                                      Christian
                                      <div>
                                        <div><br>
                                          <br>
                                          <div>Am 21.01.2016 um 16:00
                                            schrieb Stian Thorgersen:<br>
                                          </div>
                                          <blockquote type="cite">
                                            <div dir="ltr">When we
                                              tested it, it worked. So I
                                              need more details from you
                                              to reproduce this.</div>
                                            <div class="gmail_extra"><br>
                                              <div class="gmail_quote">On
                                                21 January 2016 at
                                                14:50, Christian Beikov
                                                <span dir="ltr">&lt;<a
                                                    moz-do-not-send="true"
href="mailto:christian.beikov@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:christian.beikov@gmail.com">christian.beikov@gmail.com</a></a>&gt;</span>
                                                wrote:<br>
                                                <blockquote
                                                  class="gmail_quote"
                                                  style="margin:0 0 0
                                                  .8ex;border-left:1px
                                                  #ccc
                                                  solid;padding-left:1ex">
                                                  <div bgcolor="#FFFFFF"
                                                    text="#000000"> I
                                                    deploy the adapter
                                                    by
                                                    overlaying/copying
                                                    the adapter modules
                                                    into my Wildfly.<br>
                                                    <br>
                                                    I understand that
                                                    you support older
                                                    Wildfly versions
                                                    too, but I guess you
                                                    have to create a
                                                    separate adapter for
                                                    Wildfly 10 then.<br>
                                                    You can easily see
                                                    that there are
                                                    incompatibilities
                                                    between Undertow
                                                    1.2.x and 1.3.x
                                                    which will result in
                                                    a failed compilation
                                                    if you change the
                                                    Undertow version in
                                                    the parent pom for
                                                    testing purposes.<br>
                                                    <br>
                                                    Regards,<br>
                                                    Christian
                                                    <div>
                                                      <div><br>
                                                        <br>
                                                        <div>Am
                                                          21.01.2016 um
                                                          14:44 schrieb
                                                          Stian
                                                          Thorgersen:<br>
                                                        </div>
                                                        <blockquote
                                                          type="cite">
                                                          <div dir="ltr">BTW
                                                          we support
                                                          older versions
                                                          of WildFly as
                                                          well as 10, so
                                                          it's not as
                                                          simple as
                                                          upgrading the
                                                          undertow
                                                          version</div>
                                                          <div
                                                          class="gmail_extra"><br>
                                                          <div
                                                          class="gmail_quote">On
                                                          21 January
                                                          2016 at 14:43,
                                                          Stian
                                                          Thorgersen <span
                                                          dir="ltr">&lt;<a
moz-do-not-send="true" href="mailto:sthorger@redhat.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sthorger@redhat.com">sthorger@redhat.com</a></a>&gt;</span>
                                                          wrote:<br>
                                                          <blockquote
                                                          class="gmail_quote"
                                                          style="margin:0
                                                          0 0
                                                          .8ex;border-left:1px
                                                          #ccc
                                                          solid;padding-left:1ex">
                                                          <div dir="ltr">How
                                                          are you
                                                          deploying the
                                                          adapter and
                                                          what adapter
                                                          are you using?
                                                          We have tested
                                                          the adapter
                                                          with WildFly
                                                          10 (Keycloak
                                                          1.8.0.CR1 was
                                                          tested on
                                                          10.0.0.CR5)
                                                          and it worked
                                                          fine.</div>
                                                          <div>
                                                          <div>
                                                          <div
                                                          class="gmail_extra"><br>
                                                          <div
                                                          class="gmail_quote">On

                                                          21 January
                                                          2016 at 14:30,
                                                          Christian
                                                          Beikov <span
                                                          dir="ltr">&lt;<a
moz-do-not-send="true" href="mailto:christian.beikov@gmail.com"
                                                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:christian.beikov@gmail.com">christian.beikov@gmail.com</a></a>&gt;</span>
                                                          wrote:<br>
                                                          <blockquote
                                                          class="gmail_quote"
                                                          style="margin:0
                                                          0 0
                                                          .8ex;border-left:1px
                                                          #ccc
                                                          solid;padding-left:1ex">Hello,<br>
                                                          <br>
                                                          I am trying to
                                                          deploy
                                                          Keycloak
                                                          1.8.0.CR1 to
                                                          Wildfly
                                                          10.0.0.CR4 but
                                                          there<br>
                                                          are some
                                                          problems with
                                                          that.<br>
                                                          You are
                                                          compiling
                                                          against
                                                          Undertow
                                                          1.1.1.Final
                                                          but Wildfly
                                                          10.0.0.CR4<br>
                                                          comes with
                                                          1.3.3.Final
                                                          and there are
                                                          some binary
                                                          incompatibilities
                                                          in<br>
                                                          io.undertow.server.Connectors

                                                          of which<br>
                                                          org.keycloak.adapters.undertow.SavedRequest


                                                          is affected.<br>
                                                          You are using
                                                          io.undertow.util.ImmediatePooled

                                                          instead of the
                                                          expected<br>
                                                          type
                                                          io.undertow.connector.PooledByteBuffer
                                                          which leads to
                                                          method not<br>
                                                          found
                                                          exceptions.<br>
                                                          I suggest you
                                                          update the
                                                          undertow
                                                          version in the
                                                          parent pom.xml
                                                          to make<br>
                                                          sure
                                                          everything is
                                                          binary
                                                          compatible if
                                                          you are going
                                                          to support
                                                          Wildfly<br>
                                                          10 as you
                                                          announced.<br>
                                                          <br>
                                                          Regards,<br>
                                                          Christian<br>
_______________________________________________<br>
                                                          keycloak-dev
                                                          mailing list<br>
                                                          <a
                                                          moz-do-not-send="true"
href="mailto:keycloak-dev@lists.jboss.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a></a><br>
                                                          <a
                                                          moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/keycloak-dev"
                                                          target="_blank"><a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></a><br>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                          </div>
                                                        </blockquote>
                                                        <br>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </blockquote>
                                              </div>
                                              <br>
                                            </div>
                                          </blockquote>
                                          <br>
                                        </div>
                                      </div>
                                    </div>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                              <br>
                              <fieldset></fieldset>
                              <br>
                              <pre>_______________________________________________
keycloak-dev mailing list
<a moz-do-not-send="true" href="mailto:keycloak-dev@lists.jboss.org" target="_blank">keycloak-dev@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
                            </blockquote>
                            <br>
                          </div>
                        </div>
                        <span><font color="#888888">
                            <pre cols="72">-- 
Bill Burke
JBoss, a division of Red Hat
<a moz-do-not-send="true" href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a></pre>
                          </font></span></div>
                      <br>
                      _______________________________________________<br>
                      keycloak-dev mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:keycloak-dev@lists.jboss.org"
                        target="_blank">keycloak-dev@lists.jboss.org</a><br>
                      <a moz-do-not-send="true"
                        href="https://lists.jboss.org/mailman/listinfo/keycloak-dev"
                        rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Bill Burke
JBoss, a division of Red Hat
<a class="moz-txt-link-freetext" href="http://bill.burkecentral.com">http://bill.burkecentral.com</a></pre>
  </body>
</html>