Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-12315

NullPointerException after configuration store failover

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 13.5.1
    • Fix Version/s: 13.5.3, 6.5.0, 5.5.2
    • Component/s: None
    • Labels:
    • Sprint:
      AM Sustaining Sprint 48, AM Sustaining Sprint 49, AM Sustaining Sprint 50, AM Sustaining Sprint 51
    • Story Points:
      2
    • Support Ticket IDs:
    • Needs QA verification:
      No

      Description

      Bug description

      There is a ldap connection failure and openam attempts to failover

      The following error was observed.

      amSMS:01/10/2018 09:18:48:049 PM XXXX: Thread[SystemTimerPool,5,main]: TransactionId[6210840b-7cc1-4fa0-877b-14373313ef54-1634]
      ERROR: ServiceManager::clearCache unable to re-initialize global flags       <=======
      Message:Connection to the server could not be established: Connection to the server could not be established
              at com.sun.identity.sm.ldap.SMSLdapObject.getConnection(SMSLdapObject.java:592)
              at com.sun.identity.sm.ldap.SMSLdapObject.read(SMSLdapObject.java:277)
              at com.sun.identity.sm.SMSEntry.read(SMSEntry.java:699)
              at com.sun.identity.sm.SMSEntry.read(SMSEntry.java:676)
              at com.sun.identity.sm.SMSEntry.<init>(SMSEntry.java:469)
              at com.sun.identity.sm.CachedSMSEntry.getInstance(CachedSMSEntry.java:355)
              at com.sun.identity.sm.ServiceManager.checkFlags(ServiceManager.java:1284)
              at com.sun.identity.sm.ServiceManager.clearCache(ServiceManager.java:927)
              at com.sun.identity.sm.SMSNotificationManager.allObjectsChanged(SMSNotificationManager.java:320)
              at com.sun.identity.sm.ldap.LDAPEventManager.allEntriesChanged(LDAPEventManager.java:165)
              at com.iplanet.services.ldap.event.EventService$EventServicePersistentSearch.clearCaches(EventService.java:375)
              at com.iplanet.services.ldap.event.LDAPv3PersistentSearch.startSearch(LDAPv3PersistentSearch.java:213)
              at com.iplanet.services.ldap.event.LDAPv3PersistentSearch.access$700(LDAPv3PersistentSearch.java:66)
              at com.iplanet.services.ldap.event.LDAPv3PersistentSearch$RetryTask.run(LDAPv3PersistentSearch.java:435)
              at com.sun.identity.common.TimerPool$WorkerThread.run(TimerPool.java:434)
      

       

      The cache appear to be corrupted

       

      EORROR: SMSLdapObject:
      
      Unable to get connection to LDAP server for the principal: cn=dsameuser,ou=DSAME Users,dc=openam,dc=xxxxxx,dc=xxxx,dc=xxxx
      
      amAuth:01/10/2018 09:18:48:130 PM XXXX: Thread[SystemTimerPool,5,main]: TransactionId[6210840b-7cc1-4fa0-877b-14373313ef54-1634]
      ERROR: Error schemaChanged : null <========
      
      amAuth:01/10/2018 09:18:48:130 PM XXXX: Thread[SystemTimerPool,5,main]: TransactionId[6210840b-7cc1-4fa0-877b-14373313ef54-1634]
      Stack trace:
      java.lang.NullPointerException
              at com.sun.identity.authentication.service.AuthD.updateSessionServiceDynamics(AuthD.java:434)
              at com.sun.identity.authentication.service.AuthConfigMonitor.schemaChanged(AuthConfigMonitor.java:80)
              at com.sun.identity.sm.ServiceSchemaManagerImpl.allObjectsChanged(ServiceSchemaManagerImpl.java:409)
              at com.sun.identity.sm.SMSNotificationManager.allObjectsChanged(SMSNotificationManager.java:348)
              at com.sun.identity.sm.ldap.LDAPEventManager.allEntriesChanged(LDAPEventManager.java:165)
              at com.iplanet.services.ldap.event.EventService$EventServicePersistentSearch.clearCaches(EventService.java:375)
              at com.iplanet.services.ldap.event.LDAPv3PersistentSearch.startSearch(LDAPv3PersistentSearch.java:213)
              at com.iplanet.services.ldap.event.LDAPv3PersistentSearch.access$700(LDAPv3PersistentSearch.java:66)
              at com.iplanet.services.ldap.event.LDAPv3PersistentSearch$RetryTask.run(LDAPv3PersistentSearch.java:435)
              at com.sun.identity.common.TimerPool$WorkerThread.run(TimerPool.java:434)
      

       

      How to reproduce the issue

      Not able to reproduce

      Expected behaviour
      Should not encounter NPE
      
      Current behaviour
      Encounter NPE
      

       

        Attachments

          Activity

            People

            • Assignee:
              sachiko Sachiko Wallace
              Reporter:
              sam.phua Sam Phua
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: