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

Occasional failure of OpenAM configurator tool

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.0.0
    • Fix Version/s: 13.5.1, 14.0.0
    • Component/s: install, sms
    • Labels:
    • Sprint:
      AM Sustaining Sprint 23, AM Sustaining Sprint 24, AM Sustaining Sprint 25
    • Support Ticket IDs:

      Description

      Configurator tool sometimes fail with NPE :

      amSMS:03/05/2015 03:55:08:944 PM NZDT: Thread[http-bio-10.0.0.42-8080-exec-1,5,main]
      CachedSMSEntry: obtained instance: ou=server-default,ou=com-sun-identity-servers,ou=default,ou=GlobalConfig,ou=1.0,ou=iPlanetAMPlatformService,ou=services,dc=opensso,dc=java,dc=net
      amSMS:03/05/2015 03:55:08:944 PM NZDT: Thread[http-bio-10.0.0.42-8080-exec-1,5,main]
      ServiceConfigImpl::getInstance: couldn't find subschema : ou=server-default,ou=com-sun-identity-servers,ou=default,ou=GlobalConfig,ou=1.0,ou=iPlanetAMPlatformService,ou=services,dc=opensso,dc=java,dc=net
      amSMS:03/05/2015 03:55:08:944 PM NZDT: Thread[http-bio-10.0.0.42-8080-exec-1,5,main]
      ERROR: ConfigurationBase::getServerConfigurationId: 6193 serviceName =iPlanetAMPlatformService
      amSMS:03/05/2015 03:55:08:944 PM NZDT: Thread[http-bio-10.0.0.42-8080-exec-1,5,main]
      ERROR: ConfigurationBase::getServerConfigurationId: 6193 subconfig name =server-default
      amSMS:03/05/2015 03:55:08:944 PM NZDT: Thread[http-bio-10.0.0.42-8080-exec-1,5,main]
      ERROR: ConfigurationBase::getServerConfigurationId: 6193 isValid =true
      amSetupServlet:03/05/2015 03:55:08:944 PM NZDT: Thread[http-bio-10.0.0.42-8080-exec-1,5,main]
      ERROR: AMSetupServlet.processRequest: error
      java.lang.NullPointerException
              at com.sun.identity.common.configuration.ConfigurationBase.getServerConfigurationId(ConfigurationBase.java:115)
              at com.sun.identity.common.configuration.ConfigurationBase.getNextId(ConfigurationBase.java:92)
              at com.sun.identity.common.configuration.SiteConfiguration.createSite(SiteConfiguration.java:303)
              at com.sun.identity.setup.AMSetupServlet.processRequest(AMSetupServlet.java:768)
              at com.sun.identity.setup.AMSetupServlet.doPost(AMSetupServlet.java:613)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              at org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
      

      This is because under a very rare condition, ConfigurationBase called from AMSetupServlet will hold a reference to ServiceConfig object gets cleaned by SMSNotificationManager and become invalid.

      amSMS:03/05/2015 03:55:08:377 PM NZDT: Thread[smIdmThreadPool,5,main]
      java.lang.Exception: clearing subSchemas
              at com.sun.identity.sm.ServiceSchemaImpl.clear(ServiceSchemaImpl.java:432)
              at com.sun.identity.sm.ServiceSchemaImpl.clear(ServiceSchemaImpl.java:449)
              at com.sun.identity.sm.ServiceSchemaImpl.clear(ServiceSchemaImpl.java:449)
              at com.sun.identity.sm.ServiceSchemaManagerImpl.clear(ServiceSchemaManagerImpl.java:583)
              at com.sun.identity.sm.ServiceSchemaManagerImpl.getInstance(ServiceSchemaManagerImpl.java:608)
              at com.sun.identity.sm.ServiceConfigManagerImpl.getServiceSchemaManagerImpl(ServiceConfigManagerImpl.java:113)
              at com.sun.identity.sm.ServiceConfigImpl.<init>(ServiceConfigImpl.java:100)
              at com.sun.identity.sm.ServiceConfigImpl.getInstance(ServiceConfigImpl.java:552)
              at com.sun.identity.sm.ServiceConfigImpl.getSubConfig(ServiceConfigImpl.java:216)
              at com.sun.identity.sm.ServiceConfig.getSubConfig(ServiceConfig.java:291)
              at com.sun.identity.common.configuration.ConfigurationBase.getRootServerConfig(ConfigurationBase.java:262)
              at com.sun.identity.common.configuration.ServerConfiguration.getServers(ServerConfiguration.java:211)
              at com.sun.identity.sm.ServiceManager.getAMServerInstances(ServiceManager.java:834)
              at com.sun.identity.sm.SMSNotificationManager.sendNotifications(SMSNotificationManager.java:259)
              at com.sun.identity.sm.SMSNotificationManager$LocalChangeNotifcationTask.run(SMSNotificationManager.java:370)
              at com.iplanet.am.util.ThreadPool$WorkerThread.run(ThreadPool.java:306)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sachiko Sachiko Wallace
                Reporter:
                sachiko Sachiko Wallace
                QA Assignee:
                Filip Kubáň
              • Votes:
                3 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 6h
                  6h
                  Remaining:
                  Remaining Estimate - 6h
                  6h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified