Expand my Community achievements bar.

Error on AEM 6.2 Author Instance Loading Pages

Avatar

Level 3
Hello Team, We have started getting the following error on all the AEM pages (including Geometrrix sites) java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) previously initiated loading for a different type with name "org/apache/sling/api/resource/ResourceResolver"

 

Any known cause for the issue?

 

Thanks.

1 Reply

Avatar

Administrator

Hi 

Java.lang.LinkageError occurs when there is a problem in ClassLoading. Actually, this happens when same class is loaded by multiple class loader. As you know, in OSGI, Each bundle has their own class loader. Below post could guide you more on this. Also, check all your POM.xml and make sure, there are no circular dependencies between bundles.

Link:- http://stackoverflow.com/questions/244482/how-to-deal-with-linkageerrors-in-java

You should check that the import statements of the bundle are changed and that the correct bundle providing these imports is bound. Make sure that the correct versions of the bundles are actually deployed.

Reference Post:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

// It talks about exposing the boot classpath in OSGI. Add the following property in sling.properties to resolver class linkage error for the javax.activation errors.

~kautuk



Kautuk Sahni