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

Throws UnsupportedOperationException when upgrade to 7.3

    Details

      Description

      Steps to reproduce:

      1. Download data-archive-staging-unpublished-mysql.zip
      2. Import mysql.sql
      3. Upgrade to 7.3

      Expected Result:
      No exception throws

      Actual Result:
      Throws the following errors:

       [java] com.liferay.portal.verify.VerifyException: com.liferay.portal.kernel.exception.ModelListenerException: java.lang.UnsupportedOperationException
           [java] 	at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:74)
           [java] 	at com.liferay.portal.tools.DBUpgrader.verify(DBUpgrader.java:167)
           [java] 	at com.liferay.portal.tools.DBUpgrader._upgradePortal(DBUpgrader.java:367)
           [java] 	at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:151)
           [java] 	at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:143)
           [java] 	at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:123)
           [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [java] 	at java.lang.reflect.Method.invoke(Method.java:498)
           [java] 	at com.liferay.portal.tools.db.upgrade.client.DBUpgraderLauncher.main(DBUpgraderLauncher.java:54)
           [java] Caused by: com.liferay.portal.kernel.exception.ModelListenerException: java.lang.UnsupportedOperationException
           [java] 	at com.liferay.portal.security.audit.event.generators.internal.model.listener.UserGroupRoleModelListener.auditOnCreateOrRemove(UserGroupRoleModelListener.java:82)
           [java] 	at com.liferay.portal.security.audit.event.generators.internal.model.listener.UserGroupRoleModelListener.onBeforeRemove(UserGroupRoleModelListener.java:50)
           [java] 	at com.liferay.portal.security.audit.event.generators.internal.model.listener.UserGroupRoleModelListener.onBeforeRemove(UserGroupRoleModelListener.java:37)
           [java] 	at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.remove(BasePersistenceImpl.java:602)
           [java] 	at com.liferay.portal.service.persistence.impl.UserGroupRolePersistenceImpl.removeByGroupId(UserGroupRolePersistenceImpl.java:1041)
           [java] 	at com.liferay.portal.service.impl.UserGroupRoleLocalServiceImpl.deleteUserGroupRolesByGroupId(UserGroupRoleLocalServiceImpl.java:189)
           [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [java] 	at java.lang.reflect.Method.invoke(Method.java:498)
           [java] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
           [java] 	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
           [java] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
           [java] 	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
           [java] 	at com.sun.proxy.$Proxy184.deleteUserGroupRolesByGroupId(Unknown Source)
           [java] 	at com.liferay.portal.kernel.service.UserGroupRoleLocalServiceUtil.deleteUserGroupRolesByGroupId(UserGroupRoleLocalServiceUtil.java:173)
           [java] 	at com.liferay.portal.verify.VerifyGroup.verifyStagingUserGroupRolesAssignments(VerifyGroup.java:265)
           [java] 	at com.liferay.portal.verify.VerifyGroup.verifyStagedGroups(VerifyGroup.java:82)
           [java] 	at com.liferay.portal.verify.VerifyGroup.doVerify(VerifyGroup.java:53)
           [java] 	at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:71)
           [java] 	... 10 more
           [java] Caused by: java.lang.UnsupportedOperationException
           [java] 	at com.liferay.portal.security.audit.AuditRouterProxyBean.route(AuditRouterProxyBean.java:33)
           [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [java] 	at java.lang.reflect.Method.invoke(Method.java:498)
           [java] 	at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:82)
           [java] 	at com.liferay.portal.kernel.messaging.proxy.BaseProxyBean.synchronousSend(BaseProxyBean.java:53)
           [java] 	at com.liferay.portal.kernel.messaging.proxy.MessagingProxyInvocationHandler.invoke(MessagingProxyInvocationHandler.java:55)
           [java] 	at com.sun.proxy.$Proxy52.route(Unknown Source)
           [java] 	at com.liferay.portal.security.audit.event.generators.internal.model.listener.UserGroupRoleModelListener.auditOnCreateOrRemove(UserGroupRoleModelListener.java:79)
           [java] 	... 29 more
      

        Attachments

          Activity

            People

            Assignee:
            felix.zhang Felix Zhang
            Reporter:
            felix.zhang Felix Zhang
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Engineering Assignee:
            Drew Brokke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              20 weeks, 1 day ago

                Packages

                Version Package
                7.2.10 DXP FP14
                7.2.10.5 DXP SP5
                7.2.X
                7.3.7 CE GA8
                7.3.10 DXP FP2
                7.3.X
                7.4.1 CE GA2 DXP 7,4
                Master