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
Views
Replies
Total Likes
What AEM version are you using?
Views
Replies
Total Likes
Hi,
We are also facing the same issue with AEM 6.2.
Views
Replies
Total Likes
We are using AEM 6.2 CFP-1
Views
Replies
Total Likes
What is the exact issue ? Could you share the sample code so that we can try and let you know ?
Views
Replies
Total Likes
Sample code and issue details provided in the thread.
Views
Replies
Total Likes
There could be a bug that requires a hotfix. I recommend opening a ticket.
Also - check this Support KB - Use reverse replication
Views
Replies
Total Likes
Views
Likes
Replies