Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Problem with Reverse Replication

Avatar

Level 9

Hi All,

We have customised OOTB reverse replication workflow by adding an extra process.This process actually pauses the actual reverse replication operation to be begun.But an exception is being thrown when creating a work item of this process.

Code of Custom Process:

<%@page session="false" %>
<%
java.lang.Thread.sleep(1000);
%>

Exception:

com.adobe.granite.workflow.WorkflowException: Script execution resulted in an error at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:176) at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:244) at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:500) at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:291) at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:58) at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:227) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.sling.api.scripting.ScriptEvaluationException: java.lang.NullPointerException at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:416) at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:184) at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:174) ... 8 more Caused by: org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper$1: java.lang.NullPointerException at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInternal(JspServletWrapper.java:655) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:608) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:533) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:284) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:102) at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:536) at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:388) ... 10 more Caused by: java.lang.NullPointerException

If anyone come across similar to this issue, please help me.

Thanks,

Kishore

6 Replies

Avatar

Level 10

What AEM version are you using? 

Avatar

Level 2

Hi,

We are also facing the same issue with AEM 6.2.

Avatar

Community Advisor

What is the exact issue ? Could you share the sample code so that we can try and let you know ?

Avatar

Level 9

Sample code and issue details provided in the thread.

Avatar

Level 10

There could be a bug that requires a hotfix. I recommend opening a ticket.

Also - check this Support KB - Use reverse replication