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

Upgrade to 5.5.1 ssoadm 5.1.1.1 throws null pointer and Guice config error when doing an export-svc-cfg

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 14.5.1
    • Fix Version/s: None
    • Component/s: ssoadm
    • Labels:
    • Needs backport:
      No
    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      After upgrading to 5.5.1 ssoadm throws a null pointer exception when you try to do a export-svc-cfg.  You see the following error in your configuration file:

       

       

      ERROR: CommandManager.<init>
      com.sun.identity.cli.CLIException: java.lang.NullPointerException
       at com.sun.identity.cli.schema.ExportServiceConfiguration.handleRequest(ExportServiceConfiguration.java:122)
       at com.sun.identity.cli.SubCommand.execute(SubCommand.java:296)
       at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:217)
       at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:139)
       at com.sun.identity.cli.CommandManager.serviceRequestQueue(CommandManager.java:585)
       at com.sun.identity.cli.CommandManager.<init>(CommandManager.java:182)
       at com.sun.identity.cli.CommandManager.main(CommandManager.java:159)
      Caused by: java.lang.NullPointerException
       at com.sun.identity.sm.ServiceManager.checkAndEncryptPasswordSyntax(ServiceManager.java:1095)
       at com.sun.identity.sm.ServiceSchemaManagerImpl.toXML(ServiceSchemaManagerImpl.java:682)
       at com.sun.identity.sm.ServiceSchemaManager.toXML(ServiceSchemaManager.java:966)
       at com.sun.identity.sm.ServiceManager.toXML(ServiceManager.java:1356)
       at com.sun.identity.cli.schema.ExportServiceConfiguration.handleRequest(ExportServiceConfiguration.java:86)
       ... 6 more

       

       

      And then the following error in your CoreSystem file:

       

      ERROR: Logger:processNewLoggerObject:Could not instantiate handler: com.sun.identity.log.handlers.FileHandler
      java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
       at com.sun.identity.log.Logger.processNewLoggerObject(Logger.java:209)
       at com.sun.identity.log.Logger.getLogger(Logger.java:473)
       at com.sun.identity.cli.LogWriter.log(LogWriter.java:138)
       at com.sun.identity.cli.Authenticator.ldapLogin(Authenticator.java:167)
       at com.sun.identity.cli.AuthenticatedCommand.ldapLogin(AuthenticatedCommand.java:151)
       at com.sun.identity.cli.schema.ExportServiceConfiguration.handleRequest(ExportServiceConfiguration.java:64)
       at com.sun.identity.cli.SubCommand.execute(SubCommand.java:296)
       at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:217)
       at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:139)
       at com.sun.identity.cli.CommandManager.serviceRequestQueue(CommandManager.java:585)
       at com.sun.identity.cli.CommandManager.<init>(CommandManager.java:182)
       at com.sun.identity.cli.CommandManager.main(CommandManager.java:159)
      Caused by: com.google.inject.ConfigurationException: Guice configuration errors:
      1) No implementation for java.security.PrivilegedAction<com.iplanet.sso.SSOToken> was bound.
       while locating java.security.PrivilegedAction<com.iplanet.sso.SSOToken>
       for parameter 0 at com.iplanet.services.naming.ServiceListeners.<init>(Unknown Source)
       while locating com.iplanet.services.naming.ServiceListeners
       for parameter 0 at com.sun.identity.monitoring.MonitoringConfig.<init>(Unknown Source)
       while locating com.sun.identity.monitoring.MonitoringConfig
       for parameter 0 at com.sun.identity.monitoring.MonitoringManager.<init>(Unknown Source)
       while locating com.sun.identity.monitoring.MonitoringManager
      1 error
       at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1004)
       at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:961)
       at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
       at org.forgerock.guice.core.InjectorHolder.getInstance(InjectorHolder.java:72)
       at com.sun.identity.monitoring.MonitoringUtil.isRunning(MonitoringUtil.java:58)
       at com.sun.identity.log.handlers.FileHandler.<init>(FileHandler.java:394)
       ... 16 more
      

       

       

      Details steps outlining how to recreate the issue (remove this text)

      1. install 5.1.1 or any other upgradable version that is supported by 5.5.1
      2. Upgrade to 5.5.1
      3. Download and install ssoadm 5.1.1.1
      4. Try running 
        ./ssoadm export-svc-cfg --adminid amadmin --password-file pwd.txt --encryptsecret changeit --outfile testfile
      Expected behaviour
      {...}
      

      Work around

      OPTIONAL - Can try using amster or doing a record through cURL but not really a good workaround if ssoadm is still broken.

      Code analysis

      OPTIONAL - If you already investigated the code, please share your finding here (remove this text)

      org.forgerock.$className.java
      ...
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jordan.kasper Jordan Kasper [X] (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: