Assistance Needed: Unmarshalling Error After Redeploying Kogito Workflow

168 views
Skip to first unread message

Rizqi

unread,
Aug 6, 2024, 11:04:16 PM8/6/24
to Kogito development mailing list

Dear Kogito Community,

I am encountering an issue after redeploying a Kogito workflow, and I would appreciate any insights or assistance.

Context:

  • I made a minor change to the code (specifically, adding a space in the README file) and redeployed the workflow.
  • Upon resuming the existing case, I encountered an unmarshalling error. But if i submit new case, the new case run smoothly.
I'm using postgre to as workflow persistence mechanism and already check in db, the existing process intance id still exist

Error Details: Here is the error stack trace that I am seeing:

2024-08-06 14:22:22,912 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-0) HTTP Request to /reinstatement_individual/ccfb617b-6f8c-4c81-bdc1-323f94e1df96?groups=user&user=cm failed, error id: 29bc2a1a-3f36-4c12-88ca-8bf8e6721f68-1: org.jboss.resteasy.spi.UnhandledException: org.kie.kogito.serialization.process.ProcessInstanceMarshallerException: Error while unmarshalling process instance
at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:105)
at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:359)
at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:218)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:519)
at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:261)
at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:161)
at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:164)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:247)
at io.quarkus.resteasy.runtime.standalone.RequestDispatcher.service(RequestDispatcher.java:182)
at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:93)
at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler$1.run(VertxRequestHandler.java:147)
at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:576)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2499)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: org.kie.kogito.serialization.process.ProcessInstanceMarshallerException: Error while unmarshalling process instance
at org.kie.kogito.serialization.process.ProcessInstanceMarshallerService.unmarshallProcessInstance(ProcessInstanceMarshallerService.java:126)
at org.kie.kogito.serialization.process.ProcessInstanceMarshallerService.unmarshallProcessInstance(ProcessInstanceMarshallerService.java:162)
at org.kie.kogito.persistence.jdbc.JDBCProcessInstances.unmarshall(JDBCProcessInstances.java:109)
at org.kie.kogito.persistence.jdbc.JDBCProcessInstances.lambda$findById$0(JDBCProcessInstances.java:98)
at java.base/java.util.Optional.map(Optional.java:260)
at org.kie.kogito.persistence.jdbc.JDBCProcessInstances.findById(JDBCProcessInstances.java:98)
at org.kie.kogito.process.impl.ProcessServiceImpl.getTasks(ProcessServiceImpl.java:155)
at org.ifgl.policy.Reinstatement_individualResource.getTasks_reinstatement_individual(Reinstatement_individualResource.java:134)
at org.ifgl.policy.Reinstatement_individualResource_ClientProxy.getTasks_reinstatement_individual(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)


Any guidance or suggestions on how to resolve this issue would be greatly appreciated.

Thank you for your assistance.

Rizqi

Rizki Ristanto Pratama

unread,
Aug 8, 2024, 6:38:06 AM8/8/24
to Kogito development mailing list
Hi Mas Rizqi, I think this Unmarshalling error is usually because there is a line of code has an error in the task operation method, whether because of NullPointerException (NPE) or something else, I suggest adding a try-catch block to specifically catch the error. You can also see it the error in kogito management console.

Trung Nguyễn Thành

unread,
Aug 22, 2024, 5:38:14 AM8/22/24
to Kogito development mailing list
The same issue with u.
I tried to keep the previous version and clone a new version. Not sure problems is, but sometimes I see this issue when the previous version of the process ends.


Vào lúc 10:04:16 UTC+7 ngày Thứ Tư, 7 tháng 8, 2024, rizq...@gmail.com đã viết:

Enrique

unread,
Aug 29, 2024, 6:21:58 AM8/29/24
to Kogito development mailing list
What exactly are you doing ? are you migrating the processs or just running the same process instance ?
Reply all
Reply to author
Forward
0 new messages