Crowd Stops Working after a Restart

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

Crowd fails to restart. The following error appears in atlassian-crowd.log by default. It could go to localhost.log file, depending on your configuration:


7.jun.2010 12:14:55 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.atlassian.crowd.console.listener.UpgradeListener
org.springframework.orm.hibernate3.HibernateSystemException: a different object with the same identifier value was already associated with the session: [com.atlassian.crowd.model.property.Property#com.atlassian.crowd.model.property.PropertyId@75c1b401]; nested exception is org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.atlassian.crowd.model.property.Property#com.atlassian.crowd.model.property.PropertyId@75c1b401]
	at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:661)
	at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
    ...
Caused by: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.atlassian.crowd.model.property.Property#com.atlassian.crowd.model.property.PropertyId@75c1b401]
	at org.hibernate.engine.StatefulPersistenceContext.checkUniqueness(StatefulPersistenceContext.java:590)
    ... 62 more

原因

This is a known bug for Crowd 2.0.4: Crowd Stops Working after a Restart, which caused a new plugin entry to be stored in the cwd_property table:


mysql> select * from cwd_property;
+---------------------------+--------------------------------------------------+-----------------------------------------------------------------------------------+
| property_key              | property_name                                    | property_value                                                                    |
+---------------------------+--------------------------------------------------+-----------------------------------------------------------------------------------+
| crowd                     | build.number                                     | 413                                                                               |
| crowd                     | cache.enabled                                    | true                                                                              |
| crowd                     | current.license.resource.total                   | 0                                                                                 |
| crowd                     | database.token.storage.enabled                   | true                                                                              |
| crowd                     | deployment.title                                 | Crowd                                                                             |
| crowd                     | des.encryption.key                               | Z0Ufkrp8KWE=                                                                      |
| crowd                     | gzip.enabled                                     | true                                                                              |
| crowd                     | mailserver.host                                  | 10.29.4.1                                                                         |
| crowd                     | mailserver.jndi                                  |                                                                                   |
| crowd                     | mailserver.message.template                      | Hello $firstname $lastname, Your password has .... $deploymenttitle Administrator |
| crowd                     | mailserver.password                              |                                                                                   |
| crowd                     | mailserver.port                                  | 25                                                                                |
| crowd                     | mailserver.prefix                                | [Crowd]                                                                           |
| crowd                     | mailserver.sender                                | support_gr_no@devoteam.com                                                        |
| crowd                     | mailserver.username                              |                                                                                   |
| crowd                     | notification.email                               | support_gr_no@devoteam.com                                                        |
| crowd                     | secure.cookie                                    | false                                                                             |
| crowd                     | session.time                                     | 1800000                                                                           |
| crowd                     | token.seed                                       | jAAlLviO                                                                          |
| plugin.crowd.state.store. | com.atlassian.plugins.rest.atlassian-rest-module | false                                                                             |
+---------------------------+--------------------------------------------------+-----------------------------------------------------------------------------------+
20 rows in set (0.00 sec)

The bug has been fixed in Crowd 2.0.5.

ソリューション

  1. Execute the following SQL on Crowd database:
    
    DELETE FROM cwd_property WHERE property_key = 'plugin.crowd.state.store.';
    
  2. Restart Crowd

最終更新日 2012 年 11 月 21 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.