Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Issue with Service Pack 2 (CQ 5.6), CugSupportImpl in Unsatisfied state

Avatar

Former Community Member

Hi,

After installing SP2 we are facing several issues. One of the issue is:

On Publish, CugSupportImpl is in unsatisfied state. I can also see error in logs; Please help. Its urgent.

11.09.2015 09:14:52.166 *ERROR* [FelixStartLevel] com.day.cq.cq-authhandler [com.day.cq.auth.impl.cug.CugSupportImpl] The activate method has thrown an exception (org.apache.sling.api.SlingException)
org.apache.sling.api.SlingException: null
    at com.day.cq.auth.impl.cug.CugSupportImpl.syncACLs(CugSupportImpl.java:627)
    at com.day.cq.auth.impl.cug.CugSupportImpl.enable(CugSupportImpl.java:565)
    at com.day.cq.auth.impl.cug.CugSupportImpl.findInitialSet(CugSupportImpl.java:495)
    at com.day.cq.auth.impl.cug.CugSupportImpl.configure(CugSupportImpl.java:191)
    at com.day.cq.auth.impl.cug.CugSupportImpl.activate(CugSupportImpl.java:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:236)
    at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)
    at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:613)
    at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:496)
    at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:149)
    at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:251)
    at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:119)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:1518)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:550)
    at org.apache.felix.scr.impl.manager.DependencyManager.serviceAdded(DependencyManager.java:333)
    at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java:159)
    at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
    at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
    at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
    at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4401)
    at org.apache.felix.framework.Felix.registerService(Felix.java:3411)
    at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
    at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:320)
    at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryActivator.registerFactory(ResourceResolverFactoryActivator.java:444)
    at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryActivator.checkFactoryPreconditions(ResourceResolverFactoryActivator.java:467)
    at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryActivator.activate(ResourceResolverFactoryActivator.java:381)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:236)
    at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)
    at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:613)
    at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:496)
    at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:149)
    at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:251)
    at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:119)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:1518)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:550)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:261)
    at org.apache.felix.scr.impl.config.ImmediateComponentHolder.enableComponents(ImmediateComponentHolder.java:328)
    at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:158)
    at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:113)
    at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:261)
    at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:179)
    at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:868)
    at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:789)
    at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:514)
    at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4385)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2080)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1279)
    at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: null
    at com.day.cq.auth.impl.cug.CugSupportImpl.installCUG(CugSupportImpl.java:665)
    at com.day.cq.auth.impl.cug.CugSupportImpl.syncACLs(CugSupportImpl.java:620)
    ... 56 common frames omitted
11.09.2015 09:14:52.166 *ERROR* [FelixStartLevel] com.day.cq.cq-authhandler [com.day.cq.auth.impl.cug.CugSupportImpl] Component instance could not be created, activation failed

1 Accepted Solution

Avatar

Correct answer by
Level 10

File an official support request with below information

*)   Is it cluster setup

*)   Complete log files

*)   Output of /system/console/bundles/.json

View solution in original post

8 Replies

Avatar

Level 10

I sent this question to our support team to see if there is a known issue here. 

Now what effects are you seeing here. Is there something in AEM that is not working - if so - can you please describe the behavior. 

Avatar

Former Community Member
        Hi, Due to this issue, when CUGs are added on Author, rep:policy nodes are not created on Publish. -Punit

Avatar

Correct answer by
Level 10

File an official support request with below information

*)   Is it cluster setup

*)   Complete log files

*)   Output of /system/console/bundles/.json

Avatar

Level 2

We are experiencing the same problem.  What is the solution?

Avatar

Employee Advisor

Have you assigned groups to all of your CUGs?

Jörg

Avatar

Level 2

I'm not sure what you mean by this.  Do you mean that if we have Enabled checked then we have supplied at least one group?

Avatar

Employee Advisor

Yes, have you assigned at least a single group to the CUG? And is this group available on publish?

kind regards,
Jörg

Avatar

Level 2

I found 6 pages where cug is enabled but no groups are specified.  And this error is occurring when any of these pages get activated.  Thank you for your help on this.  

Mary