[keycloak-user] Logout exception
Marko Radinovic
markoradinovic79 at gmail.com
Wed Sep 10 11:42:13 EDT 2014
Hi,
I have Vaadin application running on Wildfly and I'am having problems
with logout.
I have installed keycloak on OpenShift and configure test domain for
application testing.
When i try to logout I get:
2014-09-10 17:31:45,206 ERROR [io.undertow.request] (default task-39)
UT005023: Exception handling request to /k_logout:
java.lang.RuntimeException: java.io.IOException: UT010029: Stream is closed
at
org.keycloak.adapters.PreAuthActionsHandler.handleLogout(PreAuthActionsHandler.java:138)
[keycloak-adapter-core-1.0-rc-2.jar:]
at
org.keycloak.adapters.PreAuthActionsHandler.handleRequest(PreAuthActionsHandler.java:57)
[keycloak-adapter-core-1.0-rc-2.jar:]
at
org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:68)
[keycloak-undertow-adapter-1.0-rc-2.jar:]
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
[undertow-core-1.0.15.Final.jar:1.0.15.Final]
at
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)
[undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
at
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
[undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
at
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
[undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
at
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
[undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
at
io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
[undertow-core-1.0.15.Final.jar:1.0.15.Final]
at
io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
[undertow-core-1.0.15.Final.jar:1.0.15.Final]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_67]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_67]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]
Caused by: java.io.IOException: UT010029: Stream is closed
at
io.undertow.servlet.spec.ServletInputStreamImpl.read(ServletInputStreamImpl.java:115)
[undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
[rt.jar:1.7.0_67]
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
[rt.jar:1.7.0_67]
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
[rt.jar:1.7.0_67]
at java.io.InputStreamReader.read(InputStreamReader.java:184)
[rt.jar:1.7.0_67]
at java.io.BufferedReader.fill(BufferedReader.java:154)
[rt.jar:1.7.0_67]
at java.io.BufferedReader.read1(BufferedReader.java:205)
[rt.jar:1.7.0_67]
at java.io.BufferedReader.read(BufferedReader.java:279)
[rt.jar:1.7.0_67]
at org.keycloak.util.StreamUtil.readString(StreamUtil.java:25)
[keycloak-core-1.0-rc-2.jar:]
at
org.keycloak.adapters.PreAuthActionsHandler.verifyAdminRequest(PreAuthActionsHandler.java:165)
[keycloak-adapter-core-1.0-rc-2.jar:]
at
org.keycloak.adapters.PreAuthActionsHandler.handleLogout(PreAuthActionsHandler.java:118)
[keycloak-adapter-core-1.0-rc-2.jar:]
... 12 more
I tried both JaasAccessControl.logout() and httpServletRequest.logout().
Thanks
Marko
More information about the keycloak-user
mailing list