Optional dependencies not resolved for some plugins [message #1763488] |
Tue, 16 May 2017 16:08 |
Abel Hegedus Messages: 197 Registered: September 2015 |
Senior Member |
|
|
Did anything change related to the handling of optional Required plug-ins in Oxygen?
We have some plugins, that have a certain (common) optional dependency that is not wired/resolved/bound to them at runtime even though the dependency itself is available, loaded and active. Instead, we get NoClassDefFoundError and ClassNotFoundException when the code that uses the optional dependency is loaded (ironically from code in the optional plugin).
This occurs in M6 and M7 versions of Oxygen, while the same plugins seem to work correctly in Neon.
Running "packages org.eclipse.viatra.query.patternlanguage.annotations" doesn't show the problematic bundles.
Interestingly, the issue only occurs after installing Mylyn (Nightly), which is completely unrelated but does introduce Guava 21 to the list of plugins. Uninstalling Mylyn doesn't resolve the issue, until Eclipse is started with "-clean". So I guess this is some wiring issues that we run into.
Do you have any ideas how we should go about debugging this? OSGi console commands, remote debugging, anything that might help.
org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.viatra.addon.viewers.runtime was unable to load class org.eclipse.viatra.addon.viewers.runtime.validators.EdgeValidator.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:178)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.viatra.query.patternlanguage.annotations.ExtensionBasedAnnotationValidatorLoader.getKnownValidators(ExtensionBasedAnnotationValidatorLoader.java:89)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/viatra/query/patternlanguage/annotations/IPatternAnnotationAdditionalValidator
at java.lang.ClassLoader.defineClass1(Native Method)
Caused by: java.lang.ClassNotFoundException: org.eclipse.viatra.query.patternlanguage.annotations.IPatternAnnotationAdditionalValidator cannot be found by org.eclipse.viatra.addon.viewers.runtime_0.16.0.201705152100
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484)
|
|
|
Powered by
FUDForum. Page generated in 0.03262 seconds