[keycloak-user] "Random" error when using https

Bruno Oliveira bruno at abstractj.org
Wed Mar 9 10:01:43 EST 2016


Which version of Keycloak are you running? Not sure it helps, but a similar
question was posted while ago
http://lists.jboss.org/pipermail/keycloak-user/2016-January/004529.html

On Wed, Mar 9, 2016 at 10:39 AM Kevin Hirschmann <khirschmann at huebinet.de>
wrote:

> Hello,
>
>
>
> Sometimes I get the following error. I can’t find a reason why this
> happens.
>
> Do you have any idea what might be causing this?
>
>
>
> Thank you.
>
>
>
> 2016-03-09 14:27:19,438 ERROR
> [org.keycloak.adapters.OAuthRequestAuthenticator] (default task-43) failed
> to turn code into token: java.net.SocketException: Connection reset
>
>                 at
> java.net.SocketInputStream.read(SocketInputStream.java:209)
>
>                 at
> java.net.SocketInputStream.read(SocketInputStream.java:141)
>
>                 at
> sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
>
>                 at sun.security.ssl.InputRecord.read(InputRecord.java:503)
>
>                 at
> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:961)
>
>                 at
> sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:918)
>
>                 at
> sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
>
>                 at
> org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160)
>
>                 at
> org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84)
>
>                 at
> org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:273)
>
>                 at
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:140)
>
>                 at
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
>
>                 at
> org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260)
>
>                 at
> org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:283)
>
>                 at
> org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:251)
>
>                 at
> org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:223)
>
>                 at
> org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271)
>
>                 at
> org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
>
>                 at
> org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:685)
>
>                 at
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:487)
>
>                 at
> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
>
>                 at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
>
>                 at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
>
>                 at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
>
>                 at
> org.keycloak.adapters.ServerRequest.invokeAccessCodeToToken(ServerRequest.java:90)
>
>                 at
> org.keycloak.adapters.OAuthRequestAuthenticator.resolveCode(OAuthRequestAuthenticator.java:320)
>
>                 at
> org.keycloak.adapters.OAuthRequestAuthenticator.authenticate(OAuthRequestAuthenticator.java:263)
>
>                 at
> org.keycloak.adapters.RequestAuthenticator.authenticate(RequestAuthenticator.java:95)
>
>                 at
> org.keycloak.adapters.undertow.AbstractUndertowKeycloakAuthMech.keycloakAuthenticate(AbstractUndertowKeycloakAuthMech.java:110)
>
>                 at
> org.keycloak.adapters.undertow.ServletKeycloakAuthMech.authenticate(ServletKeycloakAuthMech.java:92)
>
>                 at
> io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:339)
>
>                 at
> io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:356)
>
>                 at
> io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:325)
>
>                 at
> io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:138)
>
>                 at
> io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:113)
>
>                 at
> io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:106)
>
>                 at
> io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:55)
>
>                 at
> io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)
>
>                 at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>
>                 at
> io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)
>
>                 at
> io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
>
>                 at
> io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
>
>                 at
> io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)
>
>                 at
> io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
>
>                 at
> io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:72)
>
>                 at
> io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
>
>                 at
> io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
>
>                 at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>
>                 at
> org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
>
>                 at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>
>                 at
> org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69)
>
>
>
> Mit freundlichen Grüßen
>
>
>
> Kevin Hirschmann
>
>
>
>
>
> HUEBINET Informationsmanagement GmbH & Co. KG
>
> An der Königsbach 8
>
> 56075 Koblenz
>
>
>
> Sitz und Registergericht: Koblenz HRA 5329
>
>
>
> Persönlich haftender Gesellschafter der KG:
>
> HUEBINET GmbH;
>
> Sitz und Registergericht: Koblenz HRB 6857
>
>
>
> Geschäftsführung:
>
> Frank Hüttmann; Michael Biemer
>
>
>
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>
>
> Der Nachrichtenaustausch mit HUEBINET Informationsmanagement GmbH & Co.
> KG, Koblenz via E-Mail dient lediglich zu Informationszwecken.
> Rechtsgeschäftliche Erklärungen mit verbindlichem Inhalt können über dieses
> Medium nicht ausgetauscht werden, da die Manipulation von E-Mails durch
> Dritte nicht ausgeschlossen werden kann.
>
>
>
> Email communication with HUEBINET Informationsmanagement GmbH & Co. KG is
> only intended to provide information of a general kind, and shall not be
> used for any statement with binding contents in respect to legal relations.
> It is not totally possible to prevent a third party from manipulating
> emails and email contents.
>
>
>
>
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160309/c99f017c/attachment-0001.html 


More information about the keycloak-user mailing list