java.lang.Error: java.lang.ExceptionInInitializerError

ForgeRock JIRA | David Goldsmith | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    This doesn't appear to effect functionality. I'm logging this in case it is issue with the new LDAP SDK. I am seeing sporadic errors similar to the following. It occurred while running a scripted build based on the SE demo. Note that the agent OIDCAgent does not exist when I run this command: {noformat}ssoadm delete-agents --verbose --agentnames OIDCAgent --realm /shop --adminid amadmin --password-file pwd.txt >/dev/null Identity OIDCAgent1 of type agentonly not found. Exception in thread "SystemTimer" java.lang.Error: java.lang.ExceptionInInitializerError at com.sun.identity.common.TimerPool$WorkerThread.run(TimerPool.java:542) Caused by: java.lang.ExceptionInInitializerError at com.sun.identity.idm.IdRepoListener.getChangedIds(IdRepoListener.java:275) at com.sun.identity.idm.IdRepoListener.objectChanged(IdRepoListener.java:173) at com.sun.identity.idm.remote.IdRemoteEventListener.sendIdRepoNotification(IdRemoteEventListener.java:315) at com.sun.identity.idm.remote.IdRemoteEventListener$NotificationRunnable.run(IdRemoteEventListener.java:398) at com.sun.identity.common.TimerPool$WorkerThread.run(TimerPool.java:434) Caused by: java.lang.IllegalStateException: CachedConnectionPool is already closed at org.forgerock.opendj.ldap.CachedConnectionPool.getConnectionAsync(CachedConnectionPool.java:786) at org.forgerock.opendj.ldap.CachedConnectionPool.getConnection(CachedConnectionPool.java:772) at com.sun.identity.sm.ldap.SMDataLayer.getConnection(SMDataLayer.java:107) at com.sun.identity.sm.ldap.SMSLdapObject.getConnection(SMSLdapObject.java:577) at com.sun.identity.sm.ldap.SMSLdapObject.read(SMSLdapObject.java:278) at com.sun.identity.sm.SMSEntry.read(SMSEntry.java:700) at com.sun.identity.sm.SMSEntry.read(SMSEntry.java:677) at com.sun.identity.sm.SMSEntry.<init>(SMSEntry.java:470) at com.sun.identity.sm.CachedSMSEntry.getInstance(CachedSMSEntry.java:397) at com.sun.identity.sm.ServiceConfigImpl.checkAndUpdatePermission(ServiceConfigImpl.java:634) at com.sun.identity.sm.ServiceConfigImpl.getFromCache(ServiceConfigImpl.java:625) at com.sun.identity.sm.ServiceConfigImpl.getInstance(ServiceConfigImpl.java:495) at com.sun.identity.sm.ServiceConfigImpl.getInstance(ServiceConfigImpl.java:473) at com.sun.identity.sm.ServiceConfigManagerImpl.getGlobalConfig(ServiceConfigManagerImpl.java:204) at com.sun.identity.sm.ServiceConfigManager.getGlobalConfig(ServiceConfigManager.java:253) at com.sun.identity.idm.IdUtils.initialize(IdUtils.java:128) at com.sun.identity.idm.IdUtils.<clinit>(IdUtils.java:116) ... 5 more {noformat}

    ForgeRock JIRA | 2 years ago | David Goldsmith
    java.lang.Error: java.lang.ExceptionInInitializerError

    Root Cause Analysis

    1. java.lang.IllegalStateException

      CachedConnectionPool is already closed

      at org.forgerock.opendj.ldap.CachedConnectionPool.getConnectionAsync()
    2. org.forgerock.opendj
      CachedConnectionPool.getConnection
      1. org.forgerock.opendj.ldap.CachedConnectionPool.getConnectionAsync(CachedConnectionPool.java:786)
      2. org.forgerock.opendj.ldap.CachedConnectionPool.getConnection(CachedConnectionPool.java:772)
      2 frames
    3. com.sun.identity
      TimerPool$WorkerThread.run
      1. com.sun.identity.sm.ldap.SMDataLayer.getConnection(SMDataLayer.java:107)
      2. com.sun.identity.sm.ldap.SMSLdapObject.getConnection(SMSLdapObject.java:577)
      3. com.sun.identity.sm.ldap.SMSLdapObject.read(SMSLdapObject.java:278)
      4. com.sun.identity.sm.SMSEntry.read(SMSEntry.java:700)
      5. com.sun.identity.sm.SMSEntry.read(SMSEntry.java:677)
      6. com.sun.identity.sm.SMSEntry.<init>(SMSEntry.java:470)
      7. com.sun.identity.sm.CachedSMSEntry.getInstance(CachedSMSEntry.java:397)
      8. com.sun.identity.sm.ServiceConfigImpl.checkAndUpdatePermission(ServiceConfigImpl.java:634)
      9. com.sun.identity.sm.ServiceConfigImpl.getFromCache(ServiceConfigImpl.java:625)
      10. com.sun.identity.sm.ServiceConfigImpl.getInstance(ServiceConfigImpl.java:495)
      11. com.sun.identity.sm.ServiceConfigImpl.getInstance(ServiceConfigImpl.java:473)
      12. com.sun.identity.sm.ServiceConfigManagerImpl.getGlobalConfig(ServiceConfigManagerImpl.java:204)
      13. com.sun.identity.sm.ServiceConfigManager.getGlobalConfig(ServiceConfigManager.java:253)
      14. com.sun.identity.idm.IdUtils.initialize(IdUtils.java:128)
      15. com.sun.identity.idm.IdUtils.<clinit>(IdUtils.java:116)
      16. com.sun.identity.idm.IdRepoListener.getChangedIds(IdRepoListener.java:275)
      17. com.sun.identity.idm.IdRepoListener.objectChanged(IdRepoListener.java:173)
      18. com.sun.identity.idm.remote.IdRemoteEventListener.sendIdRepoNotification(IdRemoteEventListener.java:315)
      19. com.sun.identity.idm.remote.IdRemoteEventListener$NotificationRunnable.run(IdRemoteEventListener.java:398)
      20. com.sun.identity.common.TimerPool$WorkerThread.run(TimerPool.java:434)
      20 frames