AEM 6.3.3 | Error while saving using session.save() | Community
Skip to main content
rawvarun
Community Advisor
Community Advisor
January 27, 2019
Solved

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

  • January 27, 2019
  • 13 replies
  • 5192 views

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.
Best answer by joerghoh

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
February 4, 2019

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

smacdonald2008
Level 10
February 5, 2019

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

smacdonald2008
Level 10
February 5, 2019

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