Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Some kind of start level issue?(Client does not startup after removing optional plugin)
Some kind of start level issue? [message #1524089] Tue, 23 December 2014 08:05 Go to next message
Karl Puperze is currently offline Karl PuperzeFriend
Messages: 36
Registered: August 2011
Member
When I remove an optional plugin of our Eclipse 4 RCP application, the client does not startup anymore and the logs show the following error:
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in de.xxx.rcp.query was unable to load class de.xxx.rcp.product.internal.FirstApplication.
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
	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.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
Caused by: java.lang.ClassNotFoundException: de.xxx.rcp.product.internal.FirstApplication cannot be found by de.xxx.rcp.query_1.0.0
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:568)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
	... 15 more

FirstApplication is our implementation of org.eclipse.equinox.app.IApplication and de.xxx.rcp.query_1.0.0 is some random plugin. This can be fixed by removing the workspace directory, but this cannot be the solution, because the composition of our client changes from time to time and depends on a license.
Re: Some kind of start level issue? [message #1524701 is a reply to message #1524089] Tue, 23 December 2014 16:09 Go to previous messageGo to next message
Karl Puperze is currently offline Karl PuperzeFriend
Messages: 36
Registered: August 2011
Member
What I know so far:
When I start the RCP application with a clean workspace, the plugin de.xxx.rcp.product starts with ID 41. This information is persisted in the workspace via the plugin org.eclipse.core.runtime. Then I remove the optional plugin and try to start the RCP application again. Eclipse recovers the persisted information and attaches the ID 41 to the plugin de.xxx.rcp.product, although it does not have this ID anymore. When the system tries to resolve the bundle, it finds de.xxx.rcp.query instead and therefore tries to resolve the class with the wrong bundle class loader.

What should I do? By the way, I don't use the SimpleConfigurator!
Re: Some kind of start level issue? [message #1549306 is a reply to message #1524701] Tue, 06 January 2015 12:52 Go to previous messageGo to next message
Karl Puperze is currently offline Karl PuperzeFriend
Messages: 36
Registered: August 2011
Member
Still need help!
Re: Some kind of start level issue? [message #1553260 is a reply to message #1549306] Thu, 08 January 2015 15:50 Go to previous message
Karl Puperze is currently offline Karl PuperzeFriend
Messages: 36
Registered: August 2011
Member
eclipse.noRegistryCache=true
Previous Topic:SQL Server Datatables not showing in Data Set Dialog
Next Topic:NPE in StackRenderer.createTab when using Java 7 but Java 8 works
Goto Forum:
  


Current Time: Tue Mar 19 11:14:25 GMT 2024

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

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

Back to the top