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

ssoadm sub-command set-attr-defs is failing with a Guice error

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 13.5.2
    • Fix Version/s: 13.5.2
    • Component/s: ssoadm
    • Labels:
    • Sprint:
      AM Sustaining Sprint 42
    • Story Points:
      2
    • Needs backport:
      No
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      currently installation of ssoadm on 13.5.2 M5 is failing giving below error:

      20170912 08:41:08.534 - INFO - Enable Monitoring on OpenAM
      20170912 08:41:08.534 - INFO - Run command:
      20170912 08:41:08.534 - INFO - /Users/nsaxena/pyforge/results/20170912-083548/AuthN/EmbeddedDJ/AM_embedded/ssoadmintools/openam/bin/ssoadm set-attr-defs -u amAdmin -f /Users/nsaxena/pyforge/results/20170912-083548/AuthN/EmbeddedDJ/AM_embedded/admin_pwd_file -s iPlanetAMMonitoringService -t Global -a iplanet-am-monitoring-enabled=true iplanet-am-monitoring-snmp-enabled=true iplanet-am-monitoring-snmp-port=8085
      20170912 08:41:08.534 - DEBUG - env={'PATH': '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki', 'JAVA_HOME': '/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home', 'JAVA_ARGS': '-server -Xmx1024m'}
      20170912 08:41:08.535 - WARN - ERROR:
      -- rc --
      returned 1, expected 0
      -- stdout --
      
      -- stderr --
      com.google.inject.CreationException: Guice creation errors:
      
      1) Could not find a suitable constructor in org.forgerock.util.thread.ExecutorServiceFactory. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
        at org.forgerock.util.thread.ExecutorServiceFactory.class(Unknown Source)
        at com.sun.identity.cli.CliGuiceModule.getPoliyConditionScriptEvaluator(Unknown Source)
      
      1 error
      	at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
      	at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
      	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
      	at com.google.inject.Guice.createInjector(Guice.java:95)
      	at com.google.inject.Guice.createInjector(Guice.java:72)
      	at org.forgerock.guice.core.GuiceInjectorCreator.createInjector(GuiceInjectorCreator.java:41)
      	at org.forgerock.guice.core.InjectorFactory.createInjector(InjectorFactory.java:71)
      	at org.forgerock.guice.core.InjectorHolder.<init>(InjectorHolder.java:57)
      	at org.forgerock.guice.core.InjectorHolder.<clinit>(InjectorHolder.java:45)
      	at com.sun.identity.sm.SMSObjectDB.<init>(SMSObjectDB.java:58)
      	at com.sun.identity.sm.ldap.SMSLdapObject.<init>(SMSLdapObject.java:151)
      	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 java.lang.Class.newInstance(Class.java:442)
      	at com.sun.identity.sm.SMSEntry.initSMSObject(SMSEntry.java:293)
      	at com.sun.identity.sm.SMSEntry.initializeClass(SMSEntry.java:225)
      	at com.sun.identity.sm.SMSEntry.<clinit>(SMSEntry.java:215)
      	at com.sun.identity.sm.ServiceManager.<clinit>(ServiceManager.java:78)
      	at com.sun.identity.sm.ServiceConfigManager.<init>(ServiceConfigManager.java:93)
      	at com.sun.identity.common.configuration.ConfigurationBase.getRootServerConfig(ConfigurationBase.java:215)
      	at com.sun.identity.common.configuration.ConfigurationBase.getRootServerConfigWithRetry(ConfigurationBase.java:225)
      	at com.sun.identity.common.configuration.ConfigurationBase.getServerConfig(ConfigurationBase.java:237)
      	at com.sun.identity.common.configuration.ServerConfiguration.getServerInstance(ServerConfiguration.java:434)
      	at com.sun.identity.setup.Bootstrap.getConfiguration(Bootstrap.java:206)
      	at com.sun.identity.setup.Bootstrap.load(Bootstrap.java:136)
      	at com.sun.identity.setup.Bootstrap.load(Bootstrap.java:93)
      	at com.sun.identity.cli.CommandManager.main(CommandManager.java:118)
      Exception in thread "main" java.lang.ExceptionInInitializerError
      	at com.sun.identity.sm.SMSObjectDB.<init>(SMSObjectDB.java:58)
      	at com.sun.identity.sm.ldap.SMSLdapObject.<init>(SMSLdapObject.java:151)
      	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 java.lang.Class.newInstance(Class.java:442)
      	at com.sun.identity.sm.SMSEntry.initSMSObject(SMSEntry.java:293)
      	at com.sun.identity.sm.SMSEntry.initializeClass(SMSEntry.java:225)
      	at com.sun.identity.sm.SMSEntry.<clinit>(SMSEntry.java:215)
      	at com.sun.identity.sm.ServiceManager.<clinit>(ServiceManager.java:78)
      	at com.sun.identity.sm.ServiceConfigManager.<init>(ServiceConfigManager.java:93)
      	at com.sun.identity.common.configuration.ConfigurationBase.getRootServerConfig(ConfigurationBase.java:215)
      	at com.sun.identity.common.configuration.ConfigurationBase.getRootServerConfigWithRetry(ConfigurationBase.java:225)
      	at com.sun.identity.common.configuration.ConfigurationBase.getServerConfig(ConfigurationBase.java:237)
      	at com.sun.identity.common.configuration.ServerConfiguration.getServerInstance(ServerConfiguration.java:434)
      	at com.sun.identity.setup.Bootstrap.getConfiguration(Bootstrap.java:206)
      	at com.sun.identity.setup.Bootstrap.load(Bootstrap.java:136)
      	at com.sun.identity.setup.Bootstrap.load(Bootstrap.java:93)
      	at com.sun.identity.cli.CommandManager.main(CommandManager.java:118)
      Caused by: java.lang.IllegalStateException: com.google.inject.CreationException: Guice creation errors:
      
      1) Could not find a suitable constructor in org.forgerock.util.thread.ExecutorServiceFactory. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
        at org.forgerock.util.thread.ExecutorServiceFactory.class(Unknown Source)
        at com.sun.identity.cli.CliGuiceModule.getPoliyConditionScriptEvaluator(Unknown Source)
      
      1 error
      	at org.forgerock.guice.core.InjectorHolder.<init>(InjectorHolder.java:66)
      	at org.forgerock.guice.core.InjectorHolder.<clinit>(InjectorHolder.java:45)
      	... 20 more
      Caused by: com.google.inject.CreationException: Guice creation errors:
      
      1) Could not find a suitable constructor in org.forgerock.util.thread.ExecutorServiceFactory. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
        at org.forgerock.util.thread.ExecutorServiceFactory.class(Unknown Source)
        at com.sun.identity.cli.CliGuiceModule.getPoliyConditionScriptEvaluator(Unknown Source)
      
      1 error
      	at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
      	at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
      	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
      	at com.google.inject.Guice.createInjector(Guice.java:95)
      	at com.google.inject.Guice.createInjector(Guice.java:72)
      	at org.forgerock.guice.core.GuiceInjectorCreator.createInjector(GuiceInjectorCreator.java:41)
      	at org.forgerock.guice.core.InjectorFactory.createInjector(InjectorFactory.java:71)
      	at org.forgerock.guice.core.InjectorHolder.<init>(InjectorHolder.java:57)
      	... 21 more
      20170908 08:15:59.834 - WARN - Installing product failed:
      

      This was working on 13.5.2-M4

        Attachments

          Activity

            People

            • Assignee:
              markdr Mark de Reeper
              Reporter:
              narita.saxena Narita Saxena
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: