Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-1929

org.hibernate.NonUniqueObjectException error during startup

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • None
    • None

      I have occasionally seen this error when starting Crowd in Studio. It prevents Crowd, and therefore everything else in Studio, from coming up. Restarting it seems to fix the problem:

      @400000004c0c735b044210a4 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.cro
      wd.model.property.PropertyId@535dd450]; 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@535dd450]
      @400000004c0c735b044262ac       at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:661)
      @400000004c0c735b04426694       at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
      @400000004c0c735b04426a7c       at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:379)
      @400000004c0c735b0442995c       at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:699)
      @400000004c0c735b04429d44       at com.atlassian.crowd.util.persistence.hibernate.HibernateDao.update(HibernateDao.java:59)
      @400000004c0c735b0442a12c       at com.atlassian.crowd.model.property.PropertyDAOHibernate.update(PropertyDAOHibernate.java:59)
      @400000004c0c735b0442a8fc       at com.atlassian.crowd.manager.property.PluginPropertyManagerGeneric.setProperty(PluginPropertyManagerGeneric.java:62)
      @400000004c0c735b0442d7dc       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      @400000004c0c735b0442dbc4       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      @400000004c0c735b0442dfac       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      @400000004c0c735b0442e394       at java.lang.reflect.Method.invoke(Method.java:592)
      @400000004c0c735b0442fb04       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
      @400000004c0c735b0442feec       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      @400000004c0c735b044302d4       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      @400000004c0c735b044329e4       at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20)
      @400000004c0c735b04432dcc       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      @400000004c0c735b044331b4       at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      @400000004c0c735b04434d0c       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      @400000004c0c735b044350f4       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      @400000004c0c735b044354dc       at $Proxy5.setProperty(Unknown Source)
      @400000004c0c735b044358c4       at com.atlassian.crowd.plugin.CrowdPluginPersistentStateStore.save(CrowdPluginPersistentStateStore.java:46)
      @400000004c0c735b04437034       at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:171)
      @400000004c0c735b0443741c       at com.atlassian.crowd.plugin.CrowdPluginManager.init(CrowdPluginManager.java:67)
      @400000004c0c735b04437804       at com.atlassian.crowd.plugin.CrowdPluginManager.onApplicationEvent(CrowdPluginManager.java:82)
      @400000004c0c735b04437bec       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      @400000004c0c735b04439f14       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      @400000004c0c735b0443a2fc       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      @400000004c0c735b0443a6e4       at java.lang.reflect.Method.invoke(Method.java:592)
      @400000004c0c735b0443aacc       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
      @400000004c0c735b0443fcd4       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      @400000004c0c735b044400bc       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      @400000004c0c735b044404a4       at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      @400000004c0c735b04441ffc       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      @400000004c0c735b044423e4       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      @400000004c0c735b044427cc       at $Proxy9.onApplicationEvent(Unknown Source)
      @400000004c0c735b04442bb4       at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
      @400000004c0c735b044456ac       at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
      @400000004c0c735b04445a94       at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
      @400000004c0c735b04445e7c       at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:275)
      @400000004c0c735b044479d4       at com.atlassian.event.DefaultEventManager.publishEvent(DefaultEventManager.java:70)
      @400000004c0c735b04447dbc       at com.atlassian.crowd.console.listener.UpgradeListener.contextInitialized(UpgradeListener.java:92)
      @400000004c0c735b044481a4       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
      @400000004c0c735b0444858c       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
      @400000004c0c735b04449cfc       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
      @400000004c0c735b0444a0e4       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
      @400000004c0c735b0444a4cc       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
      @400000004c0c735b0444a8b4       at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
      @400000004c0c735b0444c024       at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
      @400000004c0c735b0444e34c       at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
      @400000004c0c735b0444e734       at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
      @400000004c0c735b0444eb1c       at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
      @400000004c0c735b0444ef04       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
      @400000004c0c735b04450674       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
      @400000004c0c735b04450a5c       at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
      @400000004c0c735b04450e44       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
      @400000004c0c735b0445122c       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      @400000004c0c735b0445299c       at org.apache.catalina.core.StandardService.start(StandardService.java:448)
      @400000004c0c735b04452d84       at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
      @400000004c0c735b0445316c       at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
      @400000004c0c735b0445316c       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      @400000004c0c735b04453554       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      @400000004c0c735b0445587c       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      @400000004c0c735b04455c64       at java.lang.reflect.Method.invoke(Method.java:592)
      @400000004c0c735b0445604c       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
      

      The full log is attached as "current"

        1. current
          295 kB
          Tim Moore [Atlassian]

            [CWD-1929] org.hibernate.NonUniqueObjectException error during startup

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 1509060 ] New: JAC Bug Workflow v3 [ 3364394 ]
            Owen made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 [ 1390626 ] New: Simplified Crowd Development Workflow v2 - restricted [ 1509060 ]
            Owen made changes -
            Workflow Original: Crowd Development Workflow v2 [ 273485 ] New: Simplified Crowd Development Workflow v2 [ 1390626 ]
            jawong.adm made changes -
            Workflow Original: JIRA Bug Workflow v2 [ 211638 ] New: Crowd Development Workflow v2 [ 273485 ]
            Tim Moore [Atlassian] made changes -
            Labels New: jirastudio
            Justin Koke made changes -
            Resolution New: Duplicate [ 3 ]
            Status Original: Open [ 1 ] New: Closed [ 6 ]

            Sorry guys, didn't realise this issue was created.

            Resolving as a duplicate since I created another issue for the fix.

            Justin Koke added a comment - Sorry guys, didn't realise this issue was created. Resolving as a duplicate since I created another issue for the fix.
            Justin Koke made changes -
            Link New: This issue duplicates CWD-1931 [ CWD-1931 ]

            Phil Cole added a comment -

            I'm getting the same error during installation of Crowd. Haven't knowingly installed any plugins with errors... do you know which is causing the problem?
            Don't have that row in my database:
            mysql> select * from cwd_property;
            ----------------------------------------------------------

            property_key property_name property_value

            ----------------------------------------------------------

            crowd database.token.storage.enabled true

            ----------------------------------------------------------

            Phil Cole added a comment - I'm getting the same error during installation of Crowd. Haven't knowingly installed any plugins with errors... do you know which is causing the problem? Don't have that row in my database: mysql> select * from cwd_property; ------------- ------------------------------ --------------- property_key property_name property_value ------------- ------------------------------ --------------- crowd database.token.storage.enabled true ------------- ------------------------------ ---------------

            I got this same error. I had installed a plugin which had errors during startup. This resulted in a row in the database (table cwd_property)
            ---------------------------------------------------------------------

            property_key property_name property_value

            ---------------------------------------------------------------------

            plugin.crowd.state.store. plugin.key false

            ---------------------------------------------------------------------

            after deleting this row and restarting (without the offending plugin) Crowd started up again

            Juha Leppälä added a comment - I got this same error. I had installed a plugin which had errors during startup. This resulted in a row in the database (table cwd_property) -------------------------- ---------------------------- --------------- property_key property_name property_value -------------------------- ---------------------------- --------------- plugin.crowd.state.store. plugin.key false -------------------------- ---------------------------- --------------- after deleting this row and restarting (without the offending plugin) Crowd started up again

              Unassigned Unassigned
              tmoore Tim Moore [Atlassian]
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: