[keycloak-user] Dev server weird error
Marek Posolda
mposolda at redhat.com
Wed Jan 21 11:06:47 EST 2015
Hi,
another possible workaround is to add realm public key directly to
configuration of your adapter. In that case it doesn't need to be
downloaded remotely from Keycloak. Something like this:
https://github.com/keycloak/keycloak/blob/master/examples/demo-template/customer-app/src/main/webapp/WEB-INF/keycloak.json#L4
You can also try to update to newest 1.1.0.Beta2, which has some
additional fixes (or wait for 1.1.0.Final which is going to be released
quite soon).
Also are there any other errors in server log? Since it returns "status
500" from keycloak server, I would suspect there will be some error in
keycloak server log too?
Marek
On 21.1.2015 14:38, Alexander Chriztopher wrote:
> Hi Guys,
>
> Here and then we are getting this error on a server that used to work
> nicely and without any apparent reason :
>
> 14:33:58,380 ERROR [io.undertow.request] [handleFirstRequest] (default
> task-2) UT005022: Exception generating error page /error.cv
> <http://error.cv>: java.lang.RuntimeException:
> java.lang.RuntimeException: Unable to resolve realm public key
> remotely, status = 500
> at
> io.undertow.servlet.spec.RequestDispatcherImpl.error(RequestDispatcherImpl.java:408)
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> at
> io.undertow.servlet.spec.RequestDispatcherImpl.error(RequestDispatcherImpl.java:319)
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> at
> io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:263)
> [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:1142)
> [rt.jar:1.8.0_11]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [rt.jar:1.8.0_11]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]
> Caused by: java.lang.RuntimeException: Unable to resolve realm public
> key remotely, status = 500
> at
> org.keycloak.adapters.AdapterDeploymentContext.resolveRealmKey(AdapterDeploymentContext.java:107)
> [keycloak-adapter-core-1.1.0.Beta1.jar:1.1.0.Beta1]
> at
> org.keycloak.adapters.AdapterDeploymentContext.resolveDeployment(AdapterDeploymentContext.java:82)
> [keycloak-adapter-core-1.1.0.Beta1.jar:1.1.0.Beta1]
> at
> org.keycloak.adapters.undertow.UndertowAuthenticatedActionsHandler.handleRequest(UndertowAuthenticatedActionsHandler.java:61)
> [keycloak-undertow-adapter-1.1.0.Beta1.jar:1.1.0.Beta1]
> at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
> [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> 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.dispatchRequest(ServletInitialHandler.java:229)
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> at
> io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:172)
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> at
> io.undertow.servlet.spec.RequestDispatcherImpl.error(RequestDispatcherImpl.java:402)
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
>
> This happens on dev servers and we don't know what is causing this as
> it happens very rarely and the only workout found till now is to
> restart with a fresh install.
>
> We are using Wildfly with keycloak war.
>
> Thanks for any help.
>
>
> _______________________________________________
> 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/20150121/536a9c75/attachment.html
More information about the keycloak-user
mailing list