I am using AEM 6.1. I tried the sample code from the below link,
https://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html
I have got the Repository Object and Session Object (ie., have successfully connected to the repository). But then, I get the below exception at session.getRootNode().
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.jackrabbit.spi.
Full Stack Trace :
Kindly help me in getting this resolved. Thanks in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
Make sure that you use the correct JAR version - as stated in the article at the beginning. For AEM 6.1 - you can use jackrabbit-standalone-2.6.5.jar. I just tested and it works - as shown here:
Views
Replies
Total Likes
Hi,
Are you sure your slf4j loggers are not creating problems? can you try to remove them all and see it works or not.
Views
Replies
Total Likes
Make sure that you use the correct JAR version - as stated in the article at the beginning. For AEM 6.1 - you can use jackrabbit-standalone-2.6.5.jar. I just tested and it works - as shown here:
Views
Replies
Total Likes
hi Scott,
I tried using 2.9 version jar with AEM 6.1 and got this exception while connecting to jcr.
javax.jcr.lock.LockException: Precondition Failed
Views
Replies
Total Likes