Skip to main content
rawvarun
Community Advisor
Community Advisor
Jan 27, 2019 6:32 PM UTC
Solved

AEM 6.3.3 | Error while saving using session.save()

Hi All,

I'm using Service User Mapper configuration as well as using the corresponding code for the same.

Also, provided the full permission to my system user.

Still i'm getting Access Denied.

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 com.adobe.granite.repository.impl.CRX3SessionImpl.save(CRX3SessionImpl.java:208)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Feb 3, 2019 5:49 PM UTC

Looks like your serviceUser does not have permissions to create users; make sure that the service user has permissions to create and modify nodes below /home/users.

13 replies

smacdonald2008
Level 10
Feb 4, 2019 7:21 PM UTC

Exactly - try that call and you will see it working. It looks like a permission issue as Joerg mentions

Translate
smacdonald2008
Level 10
Feb 5, 2019 3:54 PM UTC

Here is a Persist use case in 6.4 with a video. As you can see, when we submit a new employee - the data is persisted.

Scott's Digital Community: Persisting Adobe Experience Manager 6.4 JCR data using a Custom Form Action

Translate
smacdonald2008
Level 10
Feb 5, 2019 3:56 PM UTC

You can use similar logic for AEM 6.3.3. Just use Maven Arch 12 for a 6.3 project.

Translate