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

My Workflow Tasks page may become inaccessible if Java classloader has changed

    Details

      Description

      Description
      In LPS-78517, we added a field to the workflow context JSON object called "contextName", which stores the classloader that was used to load the class being stored by this JSON object. When we deserialize this JSON object, we always then use this classloader to try to load the class being stored by this JSON object.

      This can cause deserialization to fail if the classloader configuration has changed in such a way that the stored classloader is no longer able load this particular class.

      If the classloader is no longer deployed, we have logic to log a warning and call the superclass's method to load the class. However, if the classloader is deployed, but fails to load the class, the exception gets propagated and the entire deserialization operation fails.

      We should add a failsafe for the case where the classloader exists but can't load the class, so that the deserialization can proceed in this case just as it could if the classloader couldn't be found.

      Steps to Reproduce
      1. Extract a Liferay DXP Tomcat bundle and configure to use a relational database (e.g. MySQL)
      2. Copy support-tomcat.jar from another bundle and include it in ${catalina.home}/lib/ext
      3. Make a copy of the setenv.sh file in ${catalina.home}/bin
      4. Rename the copy of setenv.sh as setenv.sh.bak
      5. Open setenv.sh in a text editor and add the following to the end of the pre-bundled script:

      export CLASSPATH="$CLASSPATH":$CATALINA_HOME/bin/*
      export CLASSPATH="$CLASSPATH":$CATALINA_HOME/lib/*
      export CLASSPATH="$CLASSPATH":$CATALINA_BASE/lib/ext/*

      6. Save the setenv.sh file
      7. Start up Tomcat
      8. Access Liferay via browser, and sign in as [email protected]
      9. Go to Product Menu > Liferay DXP (Site) > Content & Data > Web Content
      10. Add a new folder called NewFolder
      11. Edit NewFolder, and under STRUCTURE RESTRICTIONS AND WORKFLOW change the selection to "Default Workflow for This Folder (Folder)"
      12. From the dropdown list, select Single Approver
      13. Save
      14. Go to Product Menu > Liferay DXP (Site) > Content & Data > Web Content > NewFolder and create a new Basic Web Content article
      15. Submit the content for publication
      16. As [email protected], go to your User icon > My Workflow Tasks
      17. Click on the Assigned to My Roles tab, and locate the article. Once it has been identified, click the tri-dot icon, and select "Assign to Me"
      18. Shut down the server
      19. Go to ${catalina.home}/bin and restore the original setenv.sh.bak file (remove the current setenv.sh file, and rename setenv.sh.bak)
      20. Restart the server
      21. Sign in as [email protected] and visit My Workflow Tasks again

      Expected Result: The page would load successfully
      Actual Result: The page is blank and inaccessible, and the following stacktrace appears in the logs.

      2021-09-03 08:28:54.903 WARN  [http-nio-9080-exec-7][ProxyMessageListener:86] com.liferay.portal.kernel.workflow.WorkflowException: java.lang.IllegalStateException: Unable to deserialize object
      com.liferay.portal.kernel.workflow.WorkflowException: java.lang.IllegalStateException: Unable to deserialize object
       at com.liferay.portal.workflow.kaleo.runtime.integration.internal.WorkflowTaskManagerImpl.searchWorkflowTasks(WorkflowTaskManagerImpl.java:1051)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:82)
       at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:58)
       at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
       at com.liferay.portal.messaging.internal.SynchronousDestination.send(SynchronousDestination.java:46)
       at com.liferay.portal.messaging.internal.sender.DirectSynchronousMessageSender.send(DirectSynchronousMessageSender.java:59)
       at com.liferay.portal.kernel.messaging.proxy.BaseProxyBean.synchronousSend(BaseProxyBean.java:60)
       at com.liferay.portal.kernel.messaging.proxy.MessagingProxyInvocationHandler.invoke(MessagingProxyInvocationHandler.java:55)
       at com.sun.proxy.$Proxy228.searchWorkflowTasks(Unknown Source)
       at com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil.searchWorkflowTasks(WorkflowTaskManagerUtil.java:499)
       at com.liferay.portal.workflow.task.web.internal.display.context.WorkflowTaskDisplayContext._getWorkflowModelSearchResult(WorkflowTaskDisplayContext.java:1023)
       at com.liferay.portal.workflow.task.web.internal.display.context.WorkflowTaskDisplayContext.getWorkflowTaskSearch(WorkflowTaskDisplayContext.java:643)
       at com.liferay.portal.workflow.task.web.internal.display.context.WorkflowTaskDisplayContext.getTotalItems(WorkflowTaskDisplayContext.java:509)
       at org.apache.jsp.toolbar_jsp._jspService(toolbar_jsp.java:248)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:368)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:380)
       at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
       at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
       at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
       at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
       at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
       at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:190)
       at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)
       at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
       at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:407)
       at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:383)
       at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:217)
       at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:88)
       at org.apache.jsp.view_jsp._jspService(view_jsp.java:283)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:368)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:380)
       at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
       at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
       at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
       at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
       at com.liferay.portlet.internal.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:291)
       at com.liferay.portlet.internal.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:123)
       at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:571)
       at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:587)
       at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:461)
       at com.liferay.portal.workflow.task.web.internal.portlet.MyWorkflowTaskPortlet.doDispatch(MyWorkflowTaskPortlet.java:154)
       at javax.portlet.GenericPortlet.render(GenericPortlet.java:291)
       at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.render(MVCPortlet.java:303)
       at com.liferay.portal.workflow.task.web.internal.portlet.MyWorkflowTaskPortlet.render(MyWorkflowTaskPortlet.java:117)
       at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:127)
       at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:58)
       at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:124)
       at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
       at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:115)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
       at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
       at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
       at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
       at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
       at com.liferay.portlet.internal.InvokerPortletImpl.invoke(InvokerPortletImpl.java:569)
       at com.liferay.portlet.internal.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:659)
       at com.liferay.portlet.internal.InvokerPortletImpl.render(InvokerPortletImpl.java:344)
       at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet.lambda$render$0(MonitoringInvokerPortlet.java:259)
       at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet._render(MonitoringInvokerPortlet.java:363)
       at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet.render(MonitoringInvokerPortlet.java:257)
       at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1483)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
       at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:64)
       at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:190)
       at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)
       at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
       at com.liferay.portal.servlet.TransferHeadersHelperImpl$TransferHeadersRequestDispatcher.include(TransferHeadersHelperImpl.java:162)
       at com.liferay.portlet.internal.PortletContainerImpl._render(PortletContainerImpl.java:908)
       at com.liferay.portlet.internal.PortletContainerImpl.lambda$render$2(PortletContainerImpl.java:223)
       at com.liferay.portlet.internal.PortletContainerImpl._preserveGroupIds(PortletContainerImpl.java:425)
       at com.liferay.portlet.internal.PortletContainerImpl.render(PortletContainerImpl.java:211)
       at com.liferay.portlet.SecurityPortletContainerWrapper.render(SecurityPortletContainerWrapper.java:144)
       at com.liferay.portlet.RestrictPortletContainerWrapper.lambda$render$0(RestrictPortletContainerWrapper.java:124)
       at com.liferay.portlet.RestrictPortletContainerWrapper._render(RestrictPortletContainerWrapper.java:185)
       at com.liferay.portlet.RestrictPortletContainerWrapper.render(RestrictPortletContainerWrapper.java:122)
       at com.liferay.portal.kernel.portlet.PortletContainerUtil.render(PortletContainerUtil.java:214)
       at com.liferay.portal.layoutconfiguration.util.velocity.TemplateProcessor.processMax(TemplateProcessor.java:146)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
       at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
       at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
       at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342)
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
       at org.apache.velocity.Template.merge(Template.java:328)
       at org.apache.velocity.Template.merge(Template.java:235)
       at com.liferay.portal.template.velocity.internal.VelocityTemplate.processTemplate(VelocityTemplate.java:137)
       at com.liferay.portal.template.BaseTemplate.processTemplate(BaseTemplate.java:139)
       at com.liferay.portal.layoutconfiguration.util.RuntimePageImpl.doProcessTemplate(RuntimePageImpl.java:413)
       at com.liferay.portal.layoutconfiguration.util.RuntimePageImpl.doDispatch(RuntimePageImpl.java:327)
       at com.liferay.portal.layoutconfiguration.util.RuntimePageImpl.getProcessedTemplate(RuntimePageImpl.java:78)
       at com.liferay.portal.kernel.layoutconfiguration.util.RuntimePageUtil.getProcessedTemplate(RuntimePageUtil.java:37)
       at com.liferay.application.list.taglib.display.context.logic.PanelAppContentHelper.writeContent(PanelAppContentHelper.java:86)
       at org.apache.jsp.application_005fcontent.page_jsp._jspService(page_jsp.java:161)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:368)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:380)
       at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
       at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
       at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
       at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
       at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
       at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:190)
       at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)
       at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
       at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:407)
       at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:383)
       at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:217)
       at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:88)
       at org.apache.jsp.layout.view.control_005fpanel_jsp._jspService(control_005fpanel_jsp.java:125)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:368)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:380)
       at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
       at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
       at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
       at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
       at com.liferay.portal.servlet.TransferHeadersHelperImpl$TransferHeadersRequestDispatcher.include(TransferHeadersHelperImpl.java:162)
       at com.liferay.layout.type.controller.BaseLayoutTypeControllerImpl.includeLayoutContent(BaseLayoutTypeControllerImpl.java:107)
       at com.liferay.portal.model.impl.LayoutImpl.includeLayoutContent(LayoutImpl.java:901)
       at com.liferay.portal.kernel.model.LayoutWrapper.includeLayoutContent(LayoutWrapper.java:1525)
       at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:433)
       at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:173)
       at com.liferay.portal.struts.PortalRequestProcessor._process(PortalRequestProcessor.java:408)
       at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:154)
       at com.liferay.portal.internal.servlet.MainServlet.doGet(MainServlet.java:206)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:626)
       at com.liferay.portal.internal.servlet.MainServlet.service(MainServlet.java:631)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:124)
       at com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:62)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
       at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:340)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
       at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:183)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:104)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
       at com.liferay.friendly.url.internal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:450)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
       at com.liferay.portal.servlet.ServletAdapter.service(ServletAdapter.java:99)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:124)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
       at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:368)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:62)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
       at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:340)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
       at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:87)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
       at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:265)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
       at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
       at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:248)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147)
       at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:183)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:196)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:196)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99)
       at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
       at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
       at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
       at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
       at com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
       at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:175)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:175)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:196)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99)
       at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:104)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
       at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
       at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
       at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
       at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1589)
       at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
       at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.IllegalStateException: Unable to deserialize object
       at com.liferay.portal.json.JSONFactoryImpl.deserialize(JSONFactoryImpl.java:196)
       at com.liferay.portal.kernel.json.JSONFactoryUtil.deserialize(JSONFactoryUtil.java:87)
       at com.liferay.portal.workflow.kaleo.runtime.util.WorkflowContextUtil.convert(WorkflowContextUtil.java:47)
       at com.liferay.portal.workflow.kaleo.runtime.integration.internal.WorkflowTaskManagerImpl._toWorkflowTasks(WorkflowTaskManagerImpl.java:1382)
       at com.liferay.portal.workflow.kaleo.runtime.integration.internal.WorkflowTaskManagerImpl.searchWorkflowTasks(WorkflowTaskManagerImpl.java:1047)
       ... 279 more
      Caused by: org.jabsorb.serializer.UnmarshallException: key serviceContext Unable to get class com.liferay.portal.kernel.service.ServiceContext
       at org.jabsorb.serializer.impl.MapSerializer.unmarshall(MapSerializer.java:270)
       at org.jabsorb.JSONSerializer.unmarshall(JSONSerializer.java:680)
       at org.jabsorb.JSONSerializer.fromJSON(JSONSerializer.java:262)
       at com.liferay.portal.json.JSONFactoryImpl.deserialize(JSONFactoryImpl.java:189)
       ... 283 more
      Caused by: org.jabsorb.serializer.UnmarshallException: Unable to get class com.liferay.portal.kernel.service.ServiceContext
       at com.liferay.portal.json.jabsorb.serializer.LiferayJSONSerializer.getClassFromHint(LiferayJSONSerializer.java:103)
       at org.jabsorb.JSONSerializer.unmarshall(JSONSerializer.java:660)
       at org.jabsorb.serializer.impl.MapSerializer.unmarshall(MapSerializer.java:265)
       ... 286 more
      Caused by: java.lang.ClassNotFoundException: com.liferay.portal.kernel.service.ServiceContext
       at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:348)
       at com.liferay.portal.json.jabsorb.serializer.LiferayJSONSerializer.getClassFromHint(LiferayJSONSerializer.java:91)
       ... 288 more
      2021-09-03 08:28:54.933 ERROR [http-nio-9080-exec-7][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_portal_workflow_task_web_portlet_MyWorkflowTaskPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_portal_workflow_task_web_portlet_MyWorkflowTaskPortlet_mvcPath=%2Fview.jsp&_com_liferay_portal_workflow_task_web_portlet_MyWorkflowTaskPortlet_tabs1=assigned-to-my-roles generates exception: com.liferay.portal.kernel.workflow.WorkflowException: java.lang.IllegalStateException: Unable to deserialize object
      java.lang.ClassNotFoundException: com.liferay.portal.kernel.service.ServiceContext
       at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
       at java.lang.Class.forName(Class.java:348)
       at com.liferay.portal.json.jabsorb.serializer.LiferayJSONSerializer.getClassFromHint(LiferayJSONSerializer.java:91)
       at org.jabsorb.JSONSerializer.unmarshall(JSONSerializer.java:660)
       at org.jabsorb.serializer.impl.MapSerializer.unmarshall(MapSerializer.java:265)
       at org.jabsorb.JSONSerializer.unmarshall(JSONSerializer.java:680)
       at org.jabsorb.JSONSerializer.fromJSON(JSONSerializer.java:262)
       at com.liferay.portal.json.JSONFactoryImpl.deserialize(JSONFactoryImpl.java:189)
       at com.liferay.portal.kernel.json.JSONFactoryUtil.deserialize(JSONFactoryUtil.java:87)
       at com.liferay.portal.workflow.kaleo.runtime.util.WorkflowContextUtil.convert(WorkflowContextUtil.java:47)
       at com.liferay.portal.workflow.kaleo.runtime.integration.internal.WorkflowTaskManagerImpl._toWorkflowTasks(WorkflowTaskManagerImpl.java:1382)
       at com.liferay.portal.workflow.kaleo.runtime.integration.internal.WorkflowTaskManagerImpl.searchWorkflowTasks(WorkflowTaskManagerImpl.java:1047)
       at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:82)
       at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:58)
       at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
       at com.liferay.portal.messaging.internal.SynchronousDestination.send(SynchronousDestination.java:46)
       at com.liferay.portal.messaging.internal.sender.DirectSynchronousMessageSender.send(DirectSynchronousMessageSender.java:59)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shuyang.zhou Shuyang Zhou
              Reporter:
              michael.bowerman Michael Bowerman
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Michael Bowerman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.3.X
                  7.4.13 DXP GA1
                  7.4.3.4 CE GA4
                  Master