AEM 6.0 to 6.3 Upgrade - Null pointer exception while invoking method AbstractAssetWorkflowProcess.getAssetFromPayload | Community
Skip to main content
Level 2
Jun 5, 2017 9:10 PM UTC
Solved

AEM 6.0 to 6.3 Upgrade - Null pointer exception while invoking method AbstractAssetWorkflowProcess.getAssetFromPayload

Hi,

We are in the process of upgrade from 6.0 to 6.3. While running the workflow, I am getting a Null Pointer Exception as below

Caused by: java.lang.NullPointerException: null        at
com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess.getResourceResolver(AbstractAssetWorkflowProcess.java:255)        at com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess.getAssetFromPayload(AbstractAssetWorkflowProcess.java:91)

        at
com.cisco.wem.author.rendition.workflow.ValidateUserProcess.execute(ValidateUserProcess.java:61)

        at
com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93)        ... 9 common frames omitted

These are the imports:

com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess;

com.day.cq.workflow.WorkflowException;

com.day.cq.workflow.WorkflowSession;

com.day.cq.workflow.exec.Route;

com.day.cq.workflow.exec.WorkItem;

com.day.cq.workflow.exec.WorkflowProcess;

com.day.cq.workflow.metadata.MetaDataMap;

And this is the code snippet

class ValidateUserProcess extends AbstractAssetWorkflowProcess implements WorkflowProcess {

void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData) throws WorkflowException {

try {

if (null != asset) {

Asset asset = getAssetFromPayload(workItem, workflowSession.getSession());

...

Appreciate any inputs

Thanks

- Atul

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
atulp44324524Accepted solution
Level 2
Jun 7, 2017 1:11 PM UTC

I was able to resolve this issue with the help of 2 other posts

https://forums.adobe.com/message/9606896#9606896

https://forums.adobe.com/thread/2336717

Thanks

- Atul

2 replies

atulp44324524AuthorAccepted solution
Level 2
Jun 7, 2017 1:11 PM UTC

I was able to resolve this issue with the help of 2 other posts

https://forums.adobe.com/message/9606896#9606896

https://forums.adobe.com/thread/2336717

Thanks

- Atul

Translate
kautuk_sahni
Employee
Jun 7, 2017 8:14 AM UTC

Opkar Gill​ Jörg Hoh​ Any help here ?

~kautuk

Translate
Kautuk Sahni