Expand my Community achievements bar.

Workflow throwing exception while executing sub steps.

Avatar

Level 3

Hi All,

We are migrating from AEM 6.1 to 6.4 and getting below exception while executing a workflow.

Its internal OOTB exception, which we are not able to debug.

Exception -->

com.adobe.granite.workflow.WorkflowException: Process execution resulted in an error

at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:204)

at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:261)

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:293)

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:229)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: com.adobe.granite.workflow.WorkflowException: java.lang.UnsupportedOperationException: No longer supported (UserManagerFactory#createUserManager(Session)).

at com.ko.cms.freestyle.workflow.UserNotification.execute(UserNotification.java:410)

at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:198)

... 8 more

Caused by: java.lang.UnsupportedOperationException: No longer supported (UserManagerFactory#createUserManager(Session)).

at com.day.cq.security.impl.CQUserManagerFactoryImpl.createUserManager(CQUserManagerFactoryImpl.java:58)

at com.ko.cms.freestyle.workflow.UserNotification.execute(UserNotification.java:114)

... 9 more

Thanks

2 Replies

Avatar

Employee

UserManagerFactory#createUserManager is deprecated. UserManagerFactory ("The Adobe AEM Quickstart and Web Application.")
Looks like you are using it in UserNotification class.

Avatar

Level 3

I changed everything to Jackrabit. But getting below error in OOTB class

com.adobe.granite.workflow.WorkflowException: java.lang.NullPointerException

at com.adobe.granite.workflow.core.advance.ParticipantNodeHandler.doTransition(ParticipantNodeHandler.java:255)

at com.adobe.granite.workflow.core.advance.ParticipantNodeHandler.doTransition(ParticipantNodeHandler.java:134)

at com.adobe.granite.workflow.core.advance.AdvanceUtil.transitionFrom(AdvanceUtil.java:143)

at com.adobe.granite.workflow.core.WorkflowSessionImpl.completeInternal(WorkflowSessionImpl.java:1067)

at com.adobe.granite.workflow.core.job.HandlerBase.complete(HandlerBase.java:516)

at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:376)

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:293)

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:229)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NullPointerException

at com.adobe.granite.workflow.core.advance.ParticipantNodeHandler.doTransition(ParticipantNodeHandler.java:191)

... 12 more