<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello all,
<div><br>
</div>
<div>It looks like Wildfly 10 changes a method interface in undertow and the keycloak is still linking against the old method. Going across a redirect, I get this exception:</div>
<div><br>
</div>
<div>
<div>java.lang.NoSuchMethodError: io.undertow.server.Connectors.ungetRequestBytes(Lio/undertow/server/HttpServerExchange;[Lorg/xnio/Pooled;)V</div>
<div>org.keycloak.adapters.undertow.SavedRequest.tryRestoreRequest(SavedRequest.java:112)</div>
<div>org.keycloak.adapters.undertow.ServletSessionTokenStore.restoreRequest(ServletSessionTokenStore.java:119)</div>
<div>org.keycloak.adapters.undertow.ServletSessionTokenStore.isCached(ServletSessionTokenStore.java:67)</div>
<div>org.keycloak.adapters.RequestAuthenticator.authenticate(RequestAuthenticator.java:85)</div>
<div>org.keycloak.adapters.undertow.AbstractUndertowKeycloakAuthMech.keycloakAuthenticate(AbstractUndertowKeycloakAuthMech.java:114)</div>
<div>org.keycloak.adapters.undertow.ServletKeycloakAuthMech.authenticate(ServletKeycloakAuthMech.java:94)</div>
</div>
<div><br>
</div>
<div>Looking at this commit:</div>
<div><br>
</div>
<div><a href="https://github.com/undertow-io/undertow/commit/b62c3f1efadeb86d94ed6577f59a8705e0ba8cb5#diff-5f4196395618b4f5f665d36a4f3773cd" target="_blank" style="font-size: 10pt;">https://github.com/undertow-io/undertow/commit/b62c3f1efadeb86d94ed6577f59a8705e0ba8cb5#diff-5f4196395618b4f5f665d36a4f3773cd</a></div>
<div><br>
</div>
<div>the parameters changed type (from Pooled<ByteBuffer> to PooledByteBuffer).</div>
<div><br>
</div>
<div>This is called from here:</div>
<div><br>
</div>
<div>https://github.com/keycloak/keycloak/blob/master/integration/undertow/src/main/java/org/keycloak/adapters/undertow/SavedRequest.java<a href="https://github.com/keycloak/keycloak/blob/master/integration/undertow/src/main/java/org/keycloak/adapters/undertow/SavedRequest.java" target="_blank" style="font-size: 10pt;">https://github.com/keycloak/keycloak/blob/master/integration/undertow/src/main/java/org/keycloak/adapters/undertow/SavedRequest.java</a></div>
<div><br>
</div>
<div>I'm guessing the call on 112 needs to make the new object type?</div>
<div><br>
</div>
<div>Should I file a bug in the JIRA?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Kenn</div>
</div>
</body>
</html>