Identity and Access Manager failing to start

book

Article ID: 182957

calendar_today

Updated On:

Products

CLOUDTEST CA Application Test CA Cloud Test Mobile MOBILECLOUD Service Virtualization

Issue/Introduction

IAM is failing to start, throwing the below errors in server logs.

ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 49) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./auth: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)
 at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:84)

Caused by: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)
 at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:162)
 at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2298)
 at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:340)
 at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:253)
 at org.jb


Caused by: java.lang.RuntimeException: Unable to find group specified by path: /xxxxx-developers
 at org.keycloak.models.utils.RepresentationToModel.createUser(RepresentationToModel.java:1488)
 at com.ca.ad.sv.keycloak.ext.updater.IAMUpdateHandler.lambda$updateRealm$4(IAMUpdateHandler.java:121)
 at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)

Cause

Configuration

Environment

Release : 10.5

Component : CA Service Virtualization

Resolution

Follow the below steps to resolve the issue:
. Open IAM_HOME/bin/standalone.conf.bat file in any text editor and verify the property's value as mentioned below and remove -SNAPSHOT and save it.

rem # Setup iam version
set "JAVA_OPTS=%JAVA_OPTS% -Diam.version=1.2.1-SNAPSHOT"

It should be updated to -> set "JAVA_OPTS=%JAVA_OPTS% -Diam.version=1.2.1"

. Now restart the IAM and it should resolve the issue.

Additional Information

Note: Customers should not import whole LDAP groups at once as it may get session timeout while importing the large hierarchy of group configuration and end up with the exception occurred in the log file.