Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Optional dependencies not resolved for some plugins
Optional dependencies not resolved for some plugins [message #1763488] Tue, 16 May 2017 16:08
Abel Hegedus is currently offline Abel HegedusFriend
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(
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(
	at org.eclipse.viatra.query.patternlanguage.annotations.ExtensionBasedAnnotationValidatorLoader.getKnownValidators(
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(

Previous Topic:Timeout from ds.SCRManager
Next Topic:Wrong bundle loaded after update on macosx
Goto Forum:

Current Time: Thu Oct 06 15:26:59 GMT 2022

Powered by FUDForum. Page generated in 0.01302 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top