Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-46174

com.liferay.portal.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: a different object with the same identifier value was already associated with the session:

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Inactive
    • Affects Version/s: 5.2.X EE
    • Fix Version/s: 7.0.0 M3
    • Component/s: Legacy
    • Labels:
      None

      Description

      We are getting the below issue whenever a new user is trying to login to application for first time.
      Caused by: com.liferay.portal.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: a different object with the same identifier value was already associated with the session: com.liferay.portal.model.impl.PortletPreferencesImpl#327614
      at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:91)
      at com.liferay.portal.service.persistence.PortletPreferencesPersistenceImpl.updateImpl(PortletPreferencesPersistenceImpl.java:353)
      at com.liferay.portal.service.persistence.PortletPreferencesPersistenceImpl.update(PortletPreferencesPersistenceImpl.java:322)
      at com.liferay.portal.service.impl.PortletPreferencesLocalServiceImpl.updatePreferences(PortletPreferencesLocalServiceImpl.java:275)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy52.updatePreferences(Unknown Source)
      at com.liferay.portal.service.PortletPreferencesLocalServiceUtil.updatePreferences(PortletPreferencesLocalServiceUtil.java:206)
      at com.liferay.portal.lar.PortletImporter.importPortletPreferences(PortletImporter.java:588)
      at com.liferay.portal.lar.LayoutImporter.importLayouts(LayoutImporter.java:607)
      at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:625)
      at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:596)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy25.importLayouts(Unknown Source)
      at com.liferay.portal.service.LayoutLocalServiceUtil.importLayouts(LayoutLocalServiceUtil.java:335)
      at com.liferay.portal.events.ServicePreAction.addDefaultLayoutsByLAR(ServicePreAction.java:178)
      at com.liferay.portal.events.ServicePreAction.addDefaultUserPublicLayouts(ServicePreAction.java:362)
      at com.liferay.portal.events.ServicePreAction.updateUserLayouts(ServicePreAction.java:1738)
      at com.liferay.portal.events.ServicePreAction.servicePre(ServicePreAction.java:1073)
      at com.liferay.portal.events.ServicePreAction.run(ServicePreAction.java:145)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 17 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 M3