Activate Later and Deactivate Later is not working

radhikak8817019

15-10-2015

Hi All,

We are getting exception in "Activate Later" and "Deactivate Later" functionality of CQ5.

Steps to schedule Actiavte/Deactivate Later :

1. Schedule Activate later or Deactivate Later on any page for some time.

2. Check the status of page after scheduled time.

Actual Result :

Page is not published after scheduled time and also the symbol for Activate Later and Deactivate Later is still displayed.

Expected Result :

Page should be published or unpublished after scheduled time.

Error Stack Trace from logs :

2014-07-09 07:17:14.659 INFO [com.day.cq.wcm.core.impl.PageManagerImpl] Created new version 1.123.61 for /content/en/About
2014-07-09 07:17:14.675 ERROR [com.adobe.granite.workflow.core.job.JobHandler] Could not advance workflow. com.adobe.granite.workflow.WorkflowException: Cannot add WorkItem to admin's inbox
                at com.adobe.granite.workflow.core.jcr.WorkItemManager.addWorkItem(WorkItemManager.java:124)
                at com.adobe.granite.workflow.core.jcr.WorkItemManager.addWorkItem(WorkItemManager.java:97)
                at com.adobe.granite.workflow.core.advance.ParticipantNodeHandler.doTransition(ParticipantNodeHandler.java:152)
                at com.adobe.granite.workflow.core.advance.AdvanceUtil.transitionFrom(AdvanceUtil.java:143)
                at com.adobe.granite.workflow.core.WorkflowSessionImpl.complete(WorkflowSessionImpl.java:633)
                at com.adobe.granite.workflow.core.job.HandlerBase.complete(HandlerBase.java:498)
                at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:183)
                at org.apache.sling.event.jobs.JobUtil$1.run(JobUtil.java:365)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
                at java.lang.Thread.run(Thread.java:722)
Caused by: javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for {}status
                at org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicablePropertyDef(EffectiveNodeType.java:782)
                at org.apache.jackrabbit.core.NodeImpl.getApplicablePropertyDefinition(NodeImpl.java:851)
                at org.apache.jackrabbit.core.NodeImpl.getOrCreateProperty(NodeImpl.java:399)
                at org.apache.jackrabbit.core.NodeImpl$SetPropertyOperation.perform(NodeImpl.java:2051)
                at org.apache.jackrabbit.core.NodeImpl$SetPropertyOperation.perform(NodeImpl.java:1998)
                at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
                at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1920)
                at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1890)
                at com.adobe.granite.workflow.core.jcr.WorkItemManager.addWorkItem(WorkItemManager.java:117)
                ... 10 more
2014-07-09 07:17:14.675 ERROR [com.adobe.granite.workflow.core.job.JobHandler] Could not add recovery work item com.adobe.granite.workflow.WorkflowException: Cannot add WorkItem to admin's inbox
                at com.adobe.granite.workflow.core.jcr.WorkItemManager.addWorkItem(WorkItemManager.java:124)
                at com.adobe.granite.workflow.core.job.HandlerBase.completeInbox(HandlerBase.java:547)
                at com.adobe.granite.workflow.core.job.HandlerBase.complete(HandlerBase.java:502)
                at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:183)
                at org.apache.sling.event.jobs.JobUtil$1.run(JobUtil.java:365)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
                at java.lang.Thread.run(Thread.java:722)
Caused by: javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for {}subType
                at org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicablePropertyDef(EffectiveNodeType.java:782)
                at org.apache.jackrabbit.core.NodeImpl.getApplicablePropertyDefinition(NodeImpl.java:851)
                at org.apache.jackrabbit.core.NodeImpl.getOrCreateProperty(NodeImpl.java:399)
                at org.apache.jackrabbit.core.NodeImpl$SetPropertyOperation.perform(NodeImpl.java:2051)
                at org.apache.jackrabbit.core.NodeImpl$SetPropertyOperation.perform(NodeImpl.java:1998)
                at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
                at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1920)
                at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1890)
                at com.adobe.granite.workflow.core.jcr.WorkItemManager.addWorkItem(WorkItemManager.java:112)
                ... 7 more

 

Does anyone know any solution for the same?

 

Thanks in Advance,

Radhika Kush

View Entire Topic

benjamin776

14-12-2015

I am on AEM 5.6.1.20130606 and also have hotfix 3544 installed and also cannot use Activate Later.  It is only happening in our prod environment though.  In our dev environment, it is working fine.