Hi Guys,
I am getting below error while doing cloud migration, in my unit test cases
20:07:17,294 [ThreadedStreamConsumer] [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.394 s <<< FAILURE! - in com.abcd.core.services.LocaliseLinksActionFactoryTest
20:07:17,341 [ThreadedStreamConsumer] [ERROR] com.abcd.core.services.LocaliseLinksActionFactoryTest Time elapsed: 1.392 s <<< ERROR!
java.lang.RuntimeException: Unable to initialize JCR_MOCK resource resolver factory: Unable to invoke method 'activate' for class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
Caused by: java.lang.RuntimeException: Unable to invoke method 'activate' for class org.apache.sling.testing.mock.sling.MockJcrSlingRepository
Caused by: java.lang.UnsupportedClassVersionError: org/apache/jackrabbit/api/observation/JackrabbitObservationManager has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
below is my maven compiler plugin dependency and other important dependencies.
Views
Replies
Total Likes
Unfortunately you don't mention if you get this exception locally or as part of a AEM CS pipeline. In case of a local build, switch to Java 11.
yes that was in CS pipeline. we have upgraded the dependencies and it resolved the issue. Most were pom fixes.
Views
Replies
Total Likes
Hello we have the same problem from 2023.3.11382+ , have you fixed it ?
Hello we've fixed the issue forcing to use Java 11 on Cloud
Hi , we upgraded the dependencies and fixed the pom with correct entries in main and /core poms that fixed it.
Views
Replies
Total Likes
we are also facing same issue is AEM CS pipeline.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies