Stack Trace is Displayed when Updating the License
The following stack trace is displayed when trying to update the Crowd lincense:
com.atlassian.crowd.exception.PasswordEncoderNotFoundException: The PasswordEncoder 'atlassian-sha1' was not found in the Internal Encoders list by the PasswordEncoderFactory at com.atlassian.crowd.password.factory.PasswordEncoderFactoryImpl.getInternalEncoder(PasswordEncoderFactoryImpl.java:35) at com.atlassian.crowd.integration.directory.internal.InternalDirectory.authenticate(InternalDirectory.java:357) at com.atlassian.crowd.integration.directory.internal.InternalDirectory.processAuthentication(InternalDirectory.java:198) at com.atlassian.crowd.integration.directory.internal.InternalDirectory.authenticate(InternalDirectory.java:170) at com.atlassian.crowd.manager.application.ApplicationServiceGeneric.authenticateUser(ApplicationServiceGeneric.java:215) at com.atlassian.crowd.manager.application.ApplicationServiceGeneric.authenticateUser(ApplicationServiceGeneric.java:150) at com.atlassian.crowd.manager.application.ApplicationServiceGeneric.authenticateUser(ApplicationServiceGeneric.java:233)
Unfortunately, restarting Crowd does not fix the problem.
This is a Bug present in Crowd versions: 2.0.5, 2.0.6 and 2.0.7. The problem is being tracked at CWD-2030.
To resolve the problem, please take the following steps:
1. Shutdown Crowd.
2. Backup the current
<Crowd-Home-Directory>/crowd.cfg.xml file and then open it and change the license value at the
<property name="license"> tag to the new license. If you were updating the license because the maximum number of users was reached, you may want to go to http://my.atlassian.com and create an Unlimited Evaluation license for your instance.
3. Run the following SQL command in your Crowd database:
UPDATE cwd_property SET property_value = '0' WHERE property_name = 'current.license.resource.total';
4. Restart Crowd.