Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-3272

ClassCastException on creating password storage scheme via command line

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0, 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: tools
    • Labels:
    • Environment:
      Mac OS X, JDK 1.8, OpenDJ 3.5

      Description

      Steps to reproduce:

      Try to create a new password-storage-scheme through command line (e.g., any existing or new custom one)
      [PATH/TO/OPENDJ]/bin/dsconfig -p [port] -h [hostname] -D "cn=Directory Manager" -w [password] create-password-storage-scheme --scheme-name 'BcryptTest' --set enabled:true --type custom --set java-class:org.opends.server.extensions.BcryptPasswordStorageScheme --trustAll --no-prompt

      Expected:
      Create a new password storage scheme "BcryptTest".

      Actual:
      Adds the BcryptTest Password Storage scheme but gives a class cast exception.

      Error Message:

      The Password Storage Scheme could not be created due to a communications
      problem: Other: The attempt to apply the configuration add failed. The
      preliminary checks were all successful and the entry was added to the server
      configuration, but at least one of the configuration add listeners reported an
      error when attempting to apply the change: An error occurred while trying to
      initialize an instance of class
      org.opends.server.extensions.BcryptPasswordStorageScheme as a password storage
      scheme as defined in configuration entry cn=BcryptTest,cn=Password Storage
      Schemes,cn=config: ClassCastException:
      org.forgerock.opendj.server.config.meta.PasswordStorageSchemeCfgDefn$PasswordStorageSchemeCfgServerImpl
      cannot be cast to
      org.forgerock.opendj.server.config.server.BcryptPasswordStorageSchemeCfg
      (BcryptPasswordStorageScheme.java:44
      PasswordStorageSchemeConfigManager.java:353
      PasswordStorageSchemeConfigManager.java:310
      PasswordStorageSchemeConfigManager.java:252
      PasswordStorageSchemeConfigManager.java:47
      ServerManagedObjectAddListenerAdaptor.java:50
      ConfigAddListenerAdaptor.java:158 ConfigurationHandler.java:486
      ConfigurationBackend.java:404 LocalBackendAddOperation.java:460
      LocalBackendAddOperation.java:161 LocalBackendWorkflowElement.java:736
      LocalBackendWorkflowElement.java:1051 LocalBackendWorkflowElement.java:894
      AddOperationBasis.java:506 SynchronousStrategy.java:39
      LDAPClientConnection.java:1173 LDAPClientConnection.java:1685
      LDAPClientConnection.java:1543 LDAPRequestHandler.java:164)
      

        Attachments

          Activity

            People

            Assignee:
            ludo Ludovic Poitou
            Reporter:
            rkumari Rashmi Kumari [X] (Inactive)
            Dev Assignee:
            Ludovic Poitou Ludovic Poitou
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: