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.
SOLVED

Activate Later and Deactivate Later is not working

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

radhika kush wrote...

Hi Sham,

Thanks for your reply.

AEM Version : Adobe Experience Manager, Version 5.6.1.20130606.

The hotfix "cq-5.6.1-hotfix-3544-1.0.zip" is installed in the server.

/RK

 

 

 

Hi RK,

In replication agent check "No Versioning" and verify. If it works then there is some version issue. If does not work report the issue at daycare & will do the rest. 

Thanks,

Sham

View solution in original post

10 Replies

Avatar

Level 10

Hi Radhika,

 Are you using the OOTB workflow for activate later and deavctivate later or have you created a custom workflow for the same ?

It also looks like a permission issue with the user who have scheduled it for activate later / deactivate later. Can you give more information on the group of the user who will be performing that action

 

 

thanks,

Lokesh

Avatar

Level 3

Hi Lokesh,

Yes we are using the OOTB workflow for activate later and deavctivate later.

We are trying it with admn user.

/RK

Avatar

Level 3

Hi Sham,

Thanks for your reply.

AEM Version : Adobe Experience Manager, Version 5.6.1.20130606.

The hotfix "cq-5.6.1-hotfix-3544-1.0.zip" is installed in the server.

/RK

Avatar

Level 10

Radhika,

it looks like an ACL issue, have you changed any of the permissions with the groups ??

Can you enable and give permission to everything for administrator group. restart and try again.

Avatar

Correct answer by
Level 10

radhika kush wrote...

Hi Sham,

Thanks for your reply.

AEM Version : Adobe Experience Manager, Version 5.6.1.20130606.

The hotfix "cq-5.6.1-hotfix-3544-1.0.zip" is installed in the server.

/RK

 

 

 

Hi RK,

In replication agent check "No Versioning" and verify. If it works then there is some version issue. If does not work report the issue at daycare & will do the rest. 

Thanks,

Sham

Avatar

Level 3

For information :

After 3544 we also have following hotfixes installed:
  • cq-5.6.1-hotfix-3695-1.0;day/cq561/hotfix;N
  • cq-5.6.1-hotfix-3728;day/cq561/hotfix;N

which have event jar (org.apache.sling.event) upgraded to 3.3.4 version.

/RK

Avatar

Level 10

after installing those hotfixes, is it working now ?

Avatar

Level 3

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.