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

Reject task cause exception in SPI kaleo-web

    Details

      Description

      1. Start server with clean database.
      2. Deploy marketplace-portlet-6.2.0.1, portal-resiliency-console-portlet-6.2.0.1, spi-provider-tomcat-web-6.2.10.1, Kaleo-Web.
      3. Add Portal Resiliency Console to new page.
      4. Create new SPI named "SPI 1" there contain Kaleo-Web.
      5. Go to Admin/Site Administration/Content/Dynamic Data Lists.
      6. Create new data list with definition "eg: To Do" and active workflow.
      7. Click the data lists and create new To Do.
      8. Go to My Account/My Workflow Tasks.
      9. Assign to me.
      10. Reject.

      Expected result:
      The workflow task is able to reject.

      Actual result:
      Throw exception

      05:37:41,171 ERROR [MessageDatagramReceiveHandler-1][BaseAsyncDatagramReceiveHandler:92] Unable to dispatch
      java.lang.RuntimeException: Unable to write ordinary serializable object {destinationName=liferay/scripting, response={exception=null, result={workflo
      [email protected]}}, responseDestinationName=null, responseId=null, payload={arguments=[null, {entryClassName=
      com.liferay.portlet.dynamicdatalists.model.DDLRecord, [email protected], workflowContext={serviceContext
      [email protected], entryClassName=com.liferay.portlet.dynamicdatalists.model.DDLRecord, groupId=10184, entryType=Dynam
      ic Data Lists Record, userId=10201, taskComments=, companyId=10157, entryClassPK=10610, transitionName=reject}, groupId=10184, entryType=Dynamic Data
      Lists Record, userId=10201, taskComments=, companyId=10157, entryClassPK=10610, taskName=update, transitionName=reject, workflowTaskAssignees=[com.lif
      [email protected]]}, [workflowContext], javascript, _                           _
                      Packages.com.liferay.portal.kernel.workflow.WorkflowStatusManagerUtil.updateStatus(Packages.com.liferay.portal.kernel.workflow.Workflo
      wConstants.toStatus("denied"), workflowContext);_                                               Packages.com.liferay.portal.kernel.workflow.WorkflowSt
      atusManagerUtil.updateStatus(Packages.com.liferay.portal.kernel.workflow.WorkflowConstants.toStatus("pending"), workflowContext);_
                      _                               , [Ljava.lang.String;@485d5dc9], hasReturnValue=true, method=public abstract java.util.Map com.liferay
      .portal.kernel.scripting.Scripting.eval(java.util.Set,java.util.Map,java.util.Set,java.lang.String,java.lang.String,java.lang.String[]) throws com.lif
      eray.portal.kernel.scripting.ScriptingException, synchronoustrue}, values={}} [Sanitized]
              at com.liferay.portal.kernel.io.Serializer.writeObject(Serializer.java:244)
              at com.liferay.portal.kernel.messaging.Message.toByteArray(Message.java:253)
              at com.liferay.portal.kernel.nio.intraband.messaging.MessageRoutingBag.getMessageData(MessageRoutingBag.java:87)
              at com.liferay.portal.kernel.nio.intraband.messaging.MessageRoutingBag.toByteArray(MessageRoutingBag.java:135)
              at com.liferay.portal.kernel.nio.intraband.messaging.MessageDatagramReceiveHandler.doReceive(MessageDatagramReceiveHandler.java:91)
              at com.liferay.portal.kernel.nio.intraband.BaseAsyncDatagramReceiveHandler$DispatchJob.run(BaseAsyncDatagramReceiveHandler.java:64)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: java.io.NotSerializableException: java.lang.Object
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
              at org.mozilla.javascript.ScriptableObject.writeObject(ScriptableObject.java:2361)
              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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:940)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
              at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:422)
              at org.mozilla.javascript.NativeJavaObject.writeObject(NativeJavaObject.java:905)
              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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:940)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
              at java.util.HashMap.writeObject(HashMap.java:1001)
              at sun.reflect.GeneratedMethodAccessor832.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:940)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
              at com.liferay.portal.kernel.io.Serializer.writeObject(Serializer.java:239)
              ... 8 more
      

        Attachments

          Activity

            People

            Assignee:
            mark.jin Mark Jin (Inactive)
            Reporter:
            mark.jin Mark Jin (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 7 weeks, 6 days ago

                Packages

                Version Package
                6.2.0 CE RC5