-
Suggestion
-
Resolution: Unresolved
-
None
-
None
There has been many scenarios where one or more plugin could not be enabled due to specific class loading issues or linkages since they all have some dependency to it as a part of their workflow. Based on the application logs, it is not apparent which plugins might be in play here and would be causing this issue. As a result of this, we have a follow an iterative approach to understand the real culprit and figure out the issue which is really time consuming. So, this feature request to add more logging under application logs that should at least point the name of the plugin which are using those libraries as part of their workflow. This will surely help to quickly get to the root cause of the issue.
Below are the quick examples of the issue around plugin -
java.lang.RuntimeException: loader constraint violation: when resolving method 'void com.atlassian.plugin.internal.module.Dom4jDelegatingElement.<init>(org.dom4j.Element)' the class loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @41aeabcb of the current class, com/atlassian/pocketknife/internal/lifecycle/modules/PluginDescriptorReader, and the class loader org.apache.catalina.loader.ParallelWebappClassLoader @6313b441 for the method's defining class, com/atlassian/plugin/internal/module/Dom4jDelegatingElement, have different Class objects for the type org/dom4j/Element used in the signature (com.atlassian.pocketknife.internal.lifecycle.modules.PluginDescriptorReader is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @41aeabcb, parent loader org.apache.catalina.loader.ParallelWebappClassLoader @6313b441; com.atlassian.plugin.internal.module.Dom4jDelegatingElement is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @6313b441, parent loader java.net.URLClassLoader @4ceff87d). Listener: com.atlassian.confluence.plugins.questions.license.QuestionsLicenseEventListener event: com.atlassian.confluence.plugins.questions.license.LicenseUpdatedEvent
OR
Caused by: java.lang.LinkageError: loader constraint violation: when resolving method 'org.joda.time.DateTime org.joda.time.format.DateTimeFormatter.parseDateTime(java.lang.String)' the class loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @687b64aa of the current class, com/atlassian/confluence/extra/calendar3/util/AbstractBuildInformationManager, and the class loader org.apache.catalina.loader.ParallelWebappClassLoader @32fab3fa for the method's defining class, org/joda/time/format/DateTimeFormatter, have different Class objects for the type org/joda/time/DateTime used in the signature (com.atlassian.confluence.extra.calendar3.util.AbstractBuildInformationManager is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @687b64aa, parent loader org.apache.catalina.loader.ParallelWebappClassLoader @32fab3fa; org.joda.time.format.DateTimeFormatter is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @32fab3fa, parent loader java.net.URLClassLoader @6d7b4f4c)