DEVTEST 10.8.4 IAM service is shutting down on one of the registry server
search cancel

DEVTEST 10.8.4 IAM service is shutting down on one of the registry server

book

Article ID: 417384

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

IAM service on one of the registry server is not staying up. It goes down right after it just started successfully.

Its one of the production registry server and impacting lots of application testing.

server logs :

''2025-11-06 05:21:07,775 INFO  [org.infinispan.CONTAINER] (ForkJoinPool.commonPool-worker-1) ISPN000556: Starting user marshaller 'org.infinispan.jboss.marshalling.core.JBossUserMarshaller'
''2025-11-06 05:21:07,985 WARN  [io.agroal.pool] (agroal-11) Datasource '<default>': File corrupted while reading record: "/opt/apps/devtest/IdentityAccessManager/data/h2/keycloakdb.mv.db". Possible solution: use the recovery tool [90030-224]
''2025-11-06 05:21:07,987 WARN  [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator] (JPA Startup Thread) HHH000342: Could not obtain connection to query metadata: java.lang.NullPointerException: Cannot throw exception because the return value of "java.util.function.BiFunction.apply(Object, Object)" is null
at org.hibernate.resource.transaction.backend.jta.internal.JtaIsolationDelegate.doTheWork(JtaIsolationDelegate.java:202)
at org.hibernate.resource.transaction.backend.jta.internal.JtaIsolationDelegate.lambda$delegateWork$3(JtaIsolationDelegate.java:91)
at org.hibernate.resource.transaction.backend.jta.internal.JtaIsolationDelegate.doInSuspendedTransaction(JtaIsolationDelegate.java:123)
at org.hibernate.resource.transaction.backend.jta.internal.JtaIsolationDelegate.delegateWork(JtaIsolationDelegate.java:88)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.getJdbcEnvironmentUsingJdbcMetadata(JdbcEnvironmentInitiator.java:276)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:107)

 

Environment

Devtest 10.8.x or newer

Cause

Embedded H2 database for IAM is corrupted.

File corrupted while reading record: "/opt/apps/devtest/IdentityAccessManager/data/h2/keycloakdb.mv.db".

Resolution

Rename the /data folder  to /data-todaysdate

"/opt/apps/devtest/IdentityAccessManager/data/ 

Upon start up a new data folder will be created.   

Note **:   We recommend that you move to an  enterprise database like DB2, Oracle, SQL Server, MySQL, PostgreSQL or Azure SQL. H2 is strictly for demo purposes only.

If IAM was configured for LDAP or ACL users ,You will have reconfigure it back.