Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssoadm policy-* subcommands ends with Guice error #107

Open
fyrbach opened this issue May 17, 2023 · 0 comments
Open

ssoadm policy-* subcommands ends with Guice error #107

fyrbach opened this issue May 17, 2023 · 0 comments
Labels

Comments

@fyrbach
Copy link
Member

fyrbach commented May 17, 2023

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 32ec5c2.

@fyrbach fyrbach added the bug label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant