Portal Node 2 won't start with Unable to build Hibernate SessionFactory error
search cancel

Portal Node 2 won't start with Unable to build Hibernate SessionFactory error

book

Article ID: 386411

calendar_today

Updated On:

Products

CA Identity Suite CA Identity Portal

Issue/Introduction

Issue occured after scheduled weekly restart of both Identity Portal Node.

Error visible in server.log / wildfly-console.log:

ERROR [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 142) Failed to initialize JPA EntityManagerFactory: [PersistenceUnit: SIGMA] Unable to build Hibernate SessionFactory; nested exception is org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.statetransfer.StateTransferManagerImpl.waitForInitialStateTransferToComplete() throws java.lang.Exception on object of type StateTransferManagerImpl

(...)

Caused by: javax.persistence.PersistenceException: [PersistenceUnit: SIGMA] Unable to build Hibernate SessionFactory; nested exception is org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.statetransfer.StateTransferManagerImpl.waitForInitialStateTransferToComplete() throws java.lang.Exception on object of type StateTransferManagerImpl

(...)

Caused by: org.infinispan.commons.CacheException: Initial state transfer timed out for cache com.idmlogic.sigma.entity.statistics.StatisticsCategoryComponentLinkEntity on <node hostname>

Environment

Identity Portal

Release 14.5.X

Cause

During troublesooting we have noticed GMS error. in initial log.

Also JGROUPSPING table contained more entries than expected 4. Portal in High Availability.

We also noticed that issue started on node one right after second node was started.

 

Resolution

Solution provided for vApp.

  1. Stop portal on both nodes - stop_ip
  2. Clear cache on both nodes - deleteIDPJMSqueue
  3. Purge all data within the JGROUPSPING table if it's not cleared after IP is stopped.
  4. Start node 1 portal - start_ip - wait till startup completes
  5. Start node 2 portal - start_ip - wait till startup completes

 

Additional Information