The ssoadm subcommands policy-export and policy-import fail with following error:
$ ./auth/bin/ssoadm policy-export -u amAdmin -f /tmp/pwd.txt -e / -s "http://wrenam.ids.local:8080/auth" -J /tmp/policies.json
Exception in thread "main" com.google.inject.ConfigurationException: Guice configuration errors:
1) Could not find a suitable constructor in org.forgerock.http.Client. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
at org.forgerock.http.Client.class(Unknown Source)
while locating org.forgerock.http.Client
for parameter 0 at org.forgerock.openam.cli.entitlement.PolicyExport.<init>(Unknown Source)
while locating org.forgerock.openam.cli.entitlement.PolicyExport
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:84)
at com.sun.identity.cli.SubCommand.execute(SubCommand.java:295)
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:581)
at com.sun.identity.cli.CommandManager.<init>(CommandManager.java:178)
at com.sun.identity.cli.CommandManager.main(CommandManager.java:155)
The issue probably comes from the commit 32ec5c2a1231c63ecd83bd172e465b581c954c4d.
The ssoadm subcommands
policy-export
andpolicy-import
fail with following error:The issue probably comes from the commit 32ec5c2a1231c63ecd83bd172e465b581c954c4d.