Eclipse Plugin Development - Tutorial for Eclipse 3.4

13 views
Skip to first unread message

Igor_G

unread,
May 11, 2009, 8:42:47 PM5/11/09
to vogella
When I run your htmlconverter example in section 4.3 of this article,
I get a runtime error:

Failed to execute item de.vogella.plugin.htmlconverter.convert

org.eclipse.core.runtime.CoreException: Plug-in
de.vogella.plugin.htmlconverter was unable to load class
de.vogella.plugin.htmlconverter.handler.Convert.
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException
(RegistryStrategyOSGI.java:180)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension
(RegistryStrategyOSGI.java:162)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension
(ExtensionRegistry.java:874)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension
(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension
(ConfigurationElementHandle.java:51)
at org.eclipse.ui.internal.handlers.HandlerProxy.loadHandler
(HandlerProxy.java:351)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute
(HandlerProxy.java:287)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:
476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks
(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand
(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand
(SlaveHandlerService.java:241)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand
(SlaveHandlerService.java:241)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection
(CommandContributionItem.java:743)
at org.eclipse.ui.menus.CommandContributionItem.access$10
(CommandContributionItem.java:729)
at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent
(CommandContributionItem.java:719)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault
(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1287)
at org.eclipse.equinox.launcher.Main.main(Main.java:1263)
Caused by: java.lang.ClassNotFoundException:
de.vogella.plugin.htmlconverter.handler.Convert
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal
(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass
(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass
(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass
(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass
(BundleLoader.java:321)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass
(BundleHost.java:231)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass
(AbstractBundle.java:1193)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension
(RegistryStrategyOSGI.java:160)
... 38 more


There is something wrong in the plugin.xml, but I want your opinion
before I start changing it.
Reply all
Reply to author
Forward
0 new messages