-
Type: Bug
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Workflow
-
Tags:
-
Sprint:nxplatform next
The following error has been reported
java.lang.RuntimeException: java.io.InvalidObjectException: Cannot refetch 100bc76b-bf39-4841-9115-650affb32025 from default at org.nuxeo.ecm.core.work.WorkComputation.deserialize(WorkComputation.java:158) ~[nuxeo-core-event-2021.54.6.jar:?] at org.nuxeo.ecm.core.work.WorkComputation.processRecord(WorkComputation.java:87) ~[nuxeo-core-event-2021.54.6.jar:?] ... Caused by: java.io.InvalidObjectException: Cannot refetch 100bc76b-bf39-4841-9115-650affb32025 from default at org.nuxeo.ecm.core.api.InstanceRef.readResolve(InstanceRef.java:75) ~[nuxeo-core-api-2021.54.6.jar:?] at jdk.internal.reflect.GeneratedMethodAccessor206.invoke(Unknown Source) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] ... Caused by: java.io.InvalidObjectException: Cannot refetch 100bc76b-bf39-4841-9115-650affb32025 from default at org.nuxeo.ecm.core.api.InstanceRef.readResolve(InstanceRef.java:75) ~[nuxeo-core-api-2021.54.6.jar:?] at jdk.internal.reflect.GeneratedMethodAccessor206.invoke(Unknown Source) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
It shows a Work deserialization that is failing because it tries to load a document that doesn't exist anymore, the Work is skipped.
The work is an AsyncEventExecutor#ListenerWork that contains a ReconnectedEventBundle, this bundle contains routing events that contains a DocumentModelList.
Serialized events should not contains document or principal, but reference or ShallowDocumentModel.
{ "type": "record", "stream": "work/common", "partition": 3, "offset": 100627991, "watermark": "2024-06-26 02:32:01.646", "key": "006a6313-6be4-4842-b3ad-54865b7a894e", "length": 64084, "message": "....sr.=org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$ListenerWork...........I..retryCountL..bundlet.1Lorg/nuxeo/ecm/core/event/ReconnectedEventBundle;L..listenerNamet..Ljava/lang/String;L..titleq.~..xr.$org.nuxeo.ecm.core.work.AbstractWork...........J..completionTimeZ..isTreeJ..schedulingTimeJ..startTimeL..callerThreadq.~..L..docIdq.~..L..docIdst..Ljava/util/List;L..idq.~..L..originatingUsernameq.~..L..progresst.+Lorg/nuxeo/ecm/core/work/api/Work$Progress;L..repositoryNameq.~..L..schedulePatht..Lorg/nuxeo/ecm/core/work/api/WorkSchedulePath;L..statet.(Lorg/nuxeo/ecm/core/work/api/Work$State;L..statusq.~..[..traceContextt..[Bxp.............Rb.e........t..work/defaultPool-01,in:1509434,inCheckpoint:1509434,out:0,lastRead:1719369121270,lastTimer:0,wm:225361149461397505,loop:3731087,checkpoint:330431245416954.177285441psr..java.util.ArrayListx.....a....I..sizexp....w.....t.$006a6313-6be4-4842-b3ad-54865b7a894eq.~..q.~..q.~..q.~..t.$fd2899bd-105a-4e28-a014-880de7e1f5d7q.~..q.~..q.~..q.~..t.$04af2715-02a2-4717-bbc4-4aeca6b71085q.~..q.~..q.~..q.~..q.~..t.$a3c1fc04-7eca-4b2a-8ba6-599c105aa0aaq.~..q.~..t.$edb66d92-6197-41b7-a562-f73d5b71bdecq.~..q.~..q.~..xt..330431611791107.1227846025psr.)org.nuxeo.ecm.core.work.api.Work$Progress...........J..currentF..percentJ..totalxp....................t..defaultsr.,org.nuxeo.ecm.core.work.api.WorkSchedulePath...........L..nameq.~..L..parentPathq.~..xpt./notificationListener:330431611791107.1227846025t..ppur..[B......T....xp....../LX._-Qb.F9R.J........R.......sr.8org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl...........L..listenerNameq.~..L..sourceEventBundlet.&Lorg/nuxeo/ecm/core/event/EventBundle;xpt..notificationListenersr.-org.nuxeo.ecm.core.event.impl.EventBundleImpl...........L..eventNamest..Ljava/util/Set;L..eventsq.~..L..vmidt..Ljava/rmi/dgc/VMID;xpsr..java.util.HashSet.D.....4...xpw.....?@......t..documentCreatedt..documentModifiedt..workflowTaskAssignedxsq.~......w.....sr.*org.nuxeo.ecm.core.event.impl.ShallowEvent...........xr..org.nuxeo.ecm.core.event.impl.EventImpl...........I..flagsJ..timeL..ctxt..Lorg/nuxeo/ecm/core/event/EventContext;L..nameq.~..L..rollbackExceptiont..Ljava/lang/Exception;L..rollbackMessageq.~..xp........Rb.xsr.2org.nuxeo.ecm.core.event.impl.DocumentEventContext...........xr..org.nuxeo.ecm.core.event.impl.EventContextImpl...........L..principalt..Lorg/nuxeo/ecm/core/api/NuxeoPrincipal;xr.2org.nuxeo.ecm.core.event.impl.AbstractEventContext...........[..argst..[Ljava/lang/Object;L..propertiest..Ljava/util/Map;L..repositoryNameq.~..xpur..[Ljava.lang.Object;..X..s)l...xp....sr.2org.nuxeo.ecm.core.event.impl.ShallowDocumentModel...........Z..isFolderZ..isImmutableZ..isProxyZ..isVersionL..contextDataq.~.4L..facetsq.~.!L..idq.~..L..lifecycleStateq.~..L..nameq.~..L..patht..Lorg/nuxeo/common/utils/Path;L..repoNameq.~..L..typeq.~..xp....sr..java.util.HashMap......`....F..loadFactorI..thresholdxp?@......w.........xsr.%java.util.Collections$UnmodifiableSet......U...xr.,java.util.Collections$UnmodifiableCollection.B...^.....L..ct..Ljava/util/Collection;xpsq.~.$w.....?@......t..SystemDocumentt..Folderisht..ForceAuditt..NXTagt..HiddenInNavigationt..Orderablet.!facet-var_Classification_Workflowt..DocumentRoutet..StepFolderxq.~..t..validatedt.%Classification_Workflow.1719369121351sr..org.nuxeo.common.utils.Path..Ku..o...I..separators[..segmentst..[Ljava/lang/String;xps...ur..[Ljava.lang.String;..V...{G...xp....t..document-route-instances-roott..2024t..06t..26q.~.Lq.~..t..DocumentRoutepsq.~.;?@......w.........t..documentIsDirtysr..java.lang.Boolean. r.......Z..valuexp.t..destinationNamet.% ... .documentssr.1org.nuxeo.ecm.core.api.impl.DocumentModelListImpl:|..R.5....J..totalSizexq.~......w.....sr.-org.nuxeo.ecm.core.api.impl.DocumentModelImpl..........%J..flagsZ..hasLegalHoldZ..isCheckedOutZ..isFlexibleRecordZ..isLatestMajorVersionZ..isLatestVersionZ..isMajorVersionZ..isRecordZ..isStateLoadedZ..isTrashedZ..isVersionSeriesCheckedOutL..changeTokenq.~..L..checkinCommentq.~..L..checkinDatet..Ljava/util/Calendar;L..contextDataq.~.4L..currentLifeCycleStateq.~..L..dataModelsq.~.4L..detachedVersionLabelq.~..L..facetsq.~.!L..idq.~..L..instanceFacetsq.~.!L..instanceFacetsOrigq.~.!L..lifeCyclePolicyq.~..L..lockt..Lorg/nuxeo/ecm/core/api/Lock;L..parentReft.$Lorg/nuxeo/ecm/core/api/DocumentRef;L..pathq.~.9L..post..Ljava/lang/Long;L..refq.~..L..repositoryNameq.~..L..retainUntilq.~..L..retainedPropertiesq.~..L..schemasq.~.!L..schemasOrigq.~.!L..sourceIdq.~..L..typet.(Lorg/nuxeo/ecm/core/schema/DocumentType;L..typeNameq.~..L..versionSeriesIdq.~..xp..................t..3-0ppsq.~.;?@......w.........xq.~.rsq.~.;?@......w.........t..uidsr.)org.nuxeo.ecm.core.api.impl.DataModelImpl...........L..dpt.+Lorg/nuxeo/ecm/core/api/model/DocumentPart;xpsr.2org.nuxeo.ecm.core.api.model.impl.DocumentPartImpl...........Z..clearComplexPropertyBeforeSetL..schemat.(Lorg/nuxeo/ecm/core/schema/types/