


Hello All,
We have got a critical bug and the error says as below logs -
Scenario is :
We have a custom workflow as emergency publishing WF which has step "Initiator Notification To Review in Preview Server" which should send the mail and it is indeed happening, mail is being sent and received as well. But when checked in the WF inbox for that particular step, I could see "Cannot add workitem to xxx's inbox.
Please if somebody can give me an idea about this to resolve or help on this issue??
Thanks in advance..!!
Step - Initiator Notification To Review in Preview Server
com.adobe.granite.workflow.WorkflowException: Cannot add WorkItem to abcd@xxxxx.com's inbox
at com.adobe.granite.workflow.core.jcr.WorkItemManager.addWorkItem(WorkItemManager.java:263)
at com.adobe.granite.workflow.core.advance.ParticipantNodeHandler.doTransition(ParticipantNodeHandler.java:318)
at com.adobe.granite.workflow.core.advance.ParticipantNodeHandler.doTransition(ParticipantNodeHandler.java:201)
at com.adobe.granite.workflow.core.advance.ParticipantNodeHandler.doTransition(ParticipantNodeHandler.java:186)
at com.adobe.granite.workflow.core.advance.AdvanceUtil.transitionFrom(AdvanceUtil.java:138)
at com.adobe.granite.workflow.core.WorkflowSessionImpl.completeInternal(WorkflowSessionImpl.java:1157)
at com.adobe.granite.workflow.core.job.HandlerBase.complete(HandlerBase.java:531)
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:416)
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: javax.jcr.ItemExistsException: node15_var_workflow_instances_server1502_2022-10-17_cbf-emergency-publishing_2
at org.apache.jackrabbit.oak.jcr.session.NodeImpl$5.perform(NodeImpl.java:303)
at org.apache.jackrabbit.oak.jcr.session.NodeImpl$5.perform(NodeImpl.java:280)
at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:210)
at org.apache.jackrabbit.oak.jcr.session.ItemImpl.perform(ItemImpl.java:112)
at org.apache.jackrabbit.oak.jcr.session.NodeImpl.addNode(NodeImpl.java:280)
at com.adobe.granite.workflow.core.jcr.WorkItemManager.addWorkItem(WorkItemManager.java:138)
... 14 more
Regards,
Prasad A B
Solved! Go to Solution.
Views
Replies
Sign in to like this content
Total Likes
This looks like a user group permission problem. To ensure that the workflow is working at all, change the participant step to your own user account via "edit workflow" capability in AEM; next, if the workflow is working as expected you can figure out if that original participant or group is valid. Good luck.
This looks like a user group permission problem. To ensure that the workflow is working at all, change the participant step to your own user account via "edit workflow" capability in AEM; next, if the workflow is working as expected you can figure out if that original participant or group is valid. Good luck.