javax.jcr.AccessDeniedException: OakAccess0000: Access denied

Avatar

Avatar

deana66659071

Avatar

deana66659071

deana66659071

06-02-2017

Here is an example of what I'm seeing in the logs:

06.02.2017 12:44:06.231 *ERROR* [10.1.51.108 [1486410246131] GET /content/business/enterprise/assets/gartner-magic-quadrant-for-cloud-infrastructure-as-service-2015.html HTTP/1.1] com.adobe.cq.sightly.WCMUsePojo Failed to activate Use class
javax.jcr.AccessDeniedException: OakAccess0000: Access denied
        at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:231)
        at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:212)
        at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.newRepositoryException(SessionDelegate.java:670)
        at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.save(SessionDelegate.java:496)
        at org.apache.jackrabbit.oak.jcr.session.SessionImpl$8.performVoid(SessionImpl.java:419)
        at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.performVoid(SessionDelegate.java:274)
        at org.apache.jackrabbit.oak.jcr.session.SessionImpl.save(SessionImpl.java:416)
        at ewcm.sightly.components.ColumnControl.activate(ColumnControl.java:112)
        at com.adobe.cq.sightly.WCMUsePojo.init(WCMUsePojo.java:84)

Any thoughts is greatly appreciated.

 

Thanks,

 

-Dean

View Entire Topic

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

07-02-2017

Excellent post Greg - @Reference cannot be used in class that extends WCMUsePojo  - see the article i referenced that shows How TO get an instance of an AEM service from WCMUsePojo.