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

Tasks assigned to my roles are not displayed after upgrade

    Details

    • Fix Priority:
      5

      Description

       Summary:
      Tasks assigned to my roles are not displayed after upgrade

       Steps to Reproduce:

      1. Run the portal on an older release (e.g.: 7.0.10)
      2. Go to Control Panel > Workflow Configuration
      3. Assign 'Single Approver' to 'Blogs Entry'
      4. Go to Site Administration > Web content
      5. Configure Single Approver for Web Content
      6. Submit a Blog for publication
      7. Submit a Web Content for publication
      8. Upgrade to master
      9. Go to Personal Menu > My Workflow Tasks > Assigned to My Roles

       Expected Result:
      Web Content and Blogs tasks are displayed

       Actual Result:
      Empty screen is displayed

      Logs error:

       2021-04-08 21:22:39.428 WARN  [default-15][ModelIndexerWriterDocumentHelperImpl:45] Unable to index com.liferay.portal.workflow.kaleo.model.KaleoInstance with primary key 10561
           [exec] java.lang.IllegalStateException: Unable to deserialize object
           [exec] 	at com.liferay.portal.json.JSONFactoryImpl.deserialize(JSONFactoryImpl.java:202) ~[portal-impl.jar:?]
           [exec] 	at com.liferay.portal.kernel.json.JSONFactoryUtil.deserialize(JSONFactoryUtil.java:92) ~[portal-kernel.jar:?]
           [exec] 	at com.liferay.portal.workflow.kaleo.runtime.util.WorkflowContextUtil.convert(WorkflowContextUtil.java:47) ~[?:?]
           [exec] 	at com.liferay.portal.workflow.kaleo.internal.search.spi.model.index.contributor.KaleoInstanceModelDocumentContributor.contribute(KaleoInstanceModelDocumentContributor.java:60) ~[?:?]
           [exec] 	at com.liferay.portal.workflow.kaleo.internal.search.spi.model.index.contributor.KaleoInstanceModelDocumentContributor.contribute(KaleoInstanceModelDocumentContributor.java:38) ~[?:?]
           [exec] 	at com.liferay.portal.search.internal.indexer.IndexerDocumentBuilderImpl.lambda$getDocument$1(IndexerDocumentBuilderImpl.java:60) ~[?:?]
           [exec] 	at java.lang.Iterable.forEach(Iterable.java:75) ~[?:1.8.0_121]
           [exec] 	at com.liferay.portal.search.internal.indexer.IndexerDocumentBuilderImpl.getDocument(IndexerDocumentBuilderImpl.java:58) ~[?:?]
           [exec] 	at com.liferay.portal.search.internal.index.contributor.helper.ModelIndexerWriterDocumentHelperImpl.getDocument(ModelIndexerWriterDocumentHelperImpl.java:41) ~[?:?]
           [exec] 	at com.liferay.portal.workflow.kaleo.internal.search.spi.model.index.contributor.KaleoInstanceModelIndexerWriterContributor.lambda$customize$0(KaleoInstanceModelIndexerWriterContributor.java:46) ~[?:?]
           [exec] 	at com.liferay.portal.search.internal.batch.DynamicQueryBatchIndexingActionableAdapter.lambda$setPerformActionMethod$0(DynamicQueryBatchIndexingActionableAdapter.java:75) ~[?:?]
           [exec] 	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performAction(DefaultActionableDynamicQuery.java:394) [portal-kernel.jar:?]
           [exec] 	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:306) [portal-kernel.jar:?]
           [exec] 	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:268) [portal-kernel.jar:?]
           [exec] 	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.doPerformActions(DefaultActionableDynamicQuery.java:326) [portal-kernel.jar:?]
           [exec] 	at com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery.doPerformActions(IndexableActionableDynamicQuery.java:107) [portal-kernel.jar:?]
           [exec] 	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:86) [portal-kernel.jar:?]
           [exec] 	at com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery.performActions(IndexableActionableDynamicQuery.java:65) [portal-kernel.jar:?]
           [exec] 	at com.liferay.portal.search.internal.batch.DynamicQueryBatchIndexingActionableAdapter.performActions(DynamicQueryBatchIndexingActionableAdapter.java:50) [bundleFile:?]
           [exec] 	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.reindex(IndexerWriterImpl.java:199) [bundleFile:?]
           [exec] 	at com.liferay.portal.search.internal.indexer.DefaultIndexer.reindex(DefaultIndexer.java:267) [bundleFile:?]
           [exec] 	at com.liferay.portal.search.internal.SearchEngineInitializer.reindex(SearchEngineInitializer.java:192) [bundleFile:?]
           [exec] 	at com.liferay.portal.search.internal.SearchEngineInitializer$1.call(SearchEngineInitializer.java:145) [bundleFile:?]
           [exec] 	at com.liferay.portal.search.internal.SearchEngineInitializer$1.call(SearchEngineInitializer.java:136) [bundleFile:?]
           [exec] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_121]
           [exec] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_121]
           [exec] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_121]
           [exec] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_121]
           [exec] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_121]
           [exec] 	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
           [exec] Caused by: org.jabsorb.serializer.UnmarshallException: key serviceContext Unable to get class com.liferay.portal.kernel.service.ServiceContext
           [exec] 	at org.jabsorb.serializer.impl.MapSerializer.unmarshall(MapSerializer.java:270) ~[jabsorb.jar:?]
           [exec] 	at org.jabsorb.JSONSerializer.unmarshall(JSONSerializer.java:680) ~[jabsorb.jar:?]
           [exec] 	at org.jabsorb.JSONSerializer.fromJSON(JSONSerializer.java:262) ~[jabsorb.jar:?]
           [exec] 	at com.liferay.portal.json.JSONFactoryImpl.deserialize(JSONFactoryImpl.java:195) ~[portal-impl.jar:?]
           [exec] 	... 29 more
           [exec] Caused by: org.jabsorb.serializer.UnmarshallException: Unable to get class com.liferay.portal.kernel.service.ServiceContext
           [exec] 	at com.liferay.portal.json.jabsorb.serializer.LiferayJSONSerializer.getClassFromHint(LiferayJSONSerializer.java:103) ~[portal-impl.jar:?]
           [exec] 	at org.jabsorb.JSONSerializer.unmarshall(JSONSerializer.java:660) ~[jabsorb.jar:?]
           [exec] 	at org.jabsorb.serializer.impl.MapSerializer.unmarshall(MapSerializer.java:265) ~[jabsorb.jar:?]
           [exec] 	at org.jabsorb.JSONSerializer.unmarshall(JSONSerializer.java:680) ~[jabsorb.jar:?]
           [exec] 	at org.jabsorb.JSONSerializer.fromJSON(JSONSerializer.java:262) ~[jabsorb.jar:?]
           [exec] 	at com.liferay.portal.json.JSONFactoryImpl.deserialize(JSONFactoryImpl.java:195) ~[portal-impl.jar:?]
           [exec] 	... 29 more
           [exec] Caused by: java.lang.ClassNotFoundException: com.liferay.portal.kernel.service.ServiceContext
           [exec] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_121]
           [exec] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_121]
           [exec] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_121]
           [exec] 	at java.lang.Class.forName0(Native Method) ~[?:1.8.0_121]
           [exec] 	at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_121]
           [exec] 	at com.liferay.portal.json.jabsorb.serializer.LiferayJSONSerializer.getClassFromHint(LiferayJSONSerializer.java:91) ~[portal-impl.jar:?]
           [exec] 	at org.jabsorb.JSONSerializer.unmarshall(JSONSerializer.java:660) ~[jabsorb.jar:?]
           [exec] 	at org.jabsorb.serializer.impl.MapSerializer.unmarshall(MapSerializer.java:265) ~[jabsorb.jar:?]
           [exec] 	at org.jabsorb.JSONSerializer.unmarshall(JSONSerializer.java:680) ~[jabsorb.jar:?]
           [exec] 	at org.jabsorb.JSONSerializer.fromJSON(JSONSerializer.java:262) ~[jabsorb.jar:?]
           [exec] 	at com.liferay.portal.json.JSONFactoryImpl.deserialize(JSONFactoryImpl.java:195) ~[portal-impl.jar:?]
           [exec] 	... 29 more
      

      Verified on master DXP: d955d235d7dd5948362d9a6ab852a100fed57c7e

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rodrigo.cunha Rodrigo Cunha
              Reporter:
              rodrigo.cunha Rodrigo Cunha
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.4.0 CE GA1 DXP 7,4
                  7.4.13 DXP GA1
                  Master