[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Plugin loading fails in 3.3/3.4

This is a post I put up in the newbie section, but got no response.  I
subsequently saw several posts about invalid activators on this list (though
none were entirely relevant to my case).  The odd thing about this is that
it is absolutely due to some change in classloaders from 3.2 to 3.3.  I'm
still working on it, but if anyone can make any suggestions, I would be
appreciative.

TIA, Ric

--------------------------------------------------
I've gotten a little farther. I turned on the debugging in the launch tab
and I found:

!ENTRY org.eclipse.osgi 2 0 2009-02-06 16:28:48.779
!MESSAGE The activator
com.geofx.opengl.view.Activator for bundle com.geofx.opengl.view is
invalid
!STACK 0
org.osgi.framework.BundleException: The activator
com.geofx.opengl.view.Activator for bundle com.geofx.opengl.view is invalid

at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(
AbstractBundle.java:146)
    at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleConte
xtImpl.java:980)
    at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.j
ava:346)

Not clear what change between 3.2 and 3.3 would have produced this error.
Some spelunking suggests it might have something to do with the third party
jars
(e.g. Jogl) that I use but no further clues.  But a JOGL view works fine
only plugins fail.  Any suggestions or tips welcome.

TIA, Ric

On 2/6/09 2:43 PM, in article C5B1FCFF.161BC%riwright@xxxxxxxxx, "Ric
Wright" <riwright@xxxxxxxxx> wrote:

> I have a plugin that I wrote a while ago.  It's a normal Eclipse plugin.
> It's main class is com.geofx.opengl.OpenGLView.  The plugin loads and runs
> without problems in Eclipse 3.2 but fails in 3.3 and 3.4  with the message
> 
> "Could not create the view: Plug-in com.geofx.opengl.view was unable to load
> class com.geofx.opengl.view.OpenGLView."
> 
> At a guess, classloading changed in some way from 3.2 to 3.3 and 3.4.  To be
> honest, classloaders are a black art to me (and wouldn't mind keeping it
> that way). I don't really know how to start figuring this out.
> 
> I posted a question here once before about this but didn't get any pointers.
> I am happy (or at least resigned) to dig into this, but frankly not sure
> where to start.  Any pointers would be appreciated.
> 
> Thanks,
> Ric
> 
> 


java.lang.ClassNotFoundException: com.geofx.opengl.view.OpenGLView
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1274)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)
	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.WorkbenchPlugin$1.run(WorkbenchPlugin.java:267)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:263)
	at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:63)
	at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:328)
	at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:230)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
	at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2127)
	at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1062)
	at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3773)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3770)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3746)
	at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:165)
	at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:109)
	at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:77)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:281)
	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:247)
	at org.eclipse.ui.internal.ShowViewMenu$3.run(ShowViewMenu.java:134)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3482)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3068)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
	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:193)
	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:386)
	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:585)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Attachment: plugin.xml
Description: Binary data

Attachment: build.properties
Description: Binary data

Attachment: MANIFEST.MF
Description: Binary data