Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

GET /etc/clientcontext/default/content/jcr:content/stores.init.js libs.cq.personalization.components.clientcontextdesigner.parsys.init$js$jsp error while including a init file /etc/clientcontext/default/content/jcr:content/stores/cart

Avatar

Level 1

Has anyone had a similar problem? Please tell me how to solve it.
AEM 6.5 *ERROR* [10.243.254.107 [1623402348266] GET /etc/clientcontext/default/content/jcr:content/stores.init.js HTTP/1.1] libs.cq.personalization.components.clientcontextdesigner.parsys.init$js$jsp error while including a init file /etc/clientcontext/default/content/jcr:content/stores/cart org.apache.sling.api.scripting.ScriptEvaluationException: javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation for class

2 Replies

Avatar

Community Advisor

Hi @ducpm196 ,

 

As per my wild guess, It happens when more then one JAR contains the same class in them. Can you please share more logs after this exception.

Avatar

Level 1
Full log: 20.06.2021 23:50:48.509 *ERROR* [10.243.254.101 [1624204248414] GET /etc/clientcontext/default/content/jcr:content/stores.init.js HTTP/1.1] libs.cq.personalization.components.clientcontextdesigner.parsys.init$js$jsp error while including a init file /etc/clientcontext/default/content/jcr:content/stores/cart org.apache.sling.api.scripting.ScriptEvaluationException: javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation for class com.elasticpath.aem.commerce.impl.ElasticPathCommerceSessionImpl: when selecting overriding method com.elasticpath.aem.commerce.impl.ElasticPathCommerceSessionImpl.getCartPriceInfo(Lorg/apache/commons/collections/Predicate;)Ljava/util/List; the class loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @48f320db (instance of org.apache.felix.framework.BundleWiringImpl$BundleClassLoader, child of org.apache.sling.launchpad.base.shared.LauncherClassLoader @1da1380b org.apache.sling.launchpad.base.shared.LauncherClassLoader) of the selected method's type com.elasticpath.aem.commerce.impl.ElasticPathCommerceSessionImpl, and the class loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @3f8a8a03 (instance of org.apache.felix.framework.BundleWiringImpl$BundleClassLoader, child of org.apache.sling.launchpad.base.shared.LauncherClassLoader @1da1380b org.apache.sling.launchpad.base.shared.LauncherClassLoader) for its super type com.adobe.cq.commerce.common.AbstractJcrCommerceSession have different Class objects for the type org.apache.commons.collections.Predicate used in the signature