Hi,
I have written 2 plugins – one for integrating a
toolchain and another for adding a custom page in new project creation wizard.
My toolchain integration plugin works fine when run through eclipse
sdk as well as through platform.
The project generation custom page plugin works fine when
run through eclipse sdk->run as eclipse application, but it does not work when
I run it through platform.
It seems that my plugin class is not getting loaded because
of org.osgi.framework.BundleException. The activator is invalid.
I am not understanding the root cause of this problem.
Please share your thoughts.
Thanks & Regards,
Aparna
I get following log-
!SESSION 2005-12-02 13:03:36.358
-----------------------------------------------
eclipse.buildId=M20050929-0840
java.version=1.4.2_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.osgi 2005-12-02 13:03:52.654
!MESSAGE An error occurred while automatically activating
bundle org.kpit.cdt.abc.projectgeneration (115).
!STACK 0
org.osgi.framework.BundleException: The activator
org.kpit.cdt.abc.projectgeneration.ProjectgenerationPlugin for bundle
org.kpit.cdt.abc.projectgeneration is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:149)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:965)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:313)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:264)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
at
java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1248)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
at
org.eclipse.cdt.managedbuilder.ui.wizards.MBSCustomPageManager.loadWizardPage(MBSCustomPageManager.java:191)
at
org.eclipse.cdt.managedbuilder.ui.wizards.MBSCustomPageManager.loadExtensionsSynchronized(MBSCustomPageManager.java:156)
at
org.eclipse.cdt.managedbuilder.ui.wizards.MBSCustomPageManager.loadExtensions(MBSCustomPageManager.java:120)
at
org.eclipse.cdt.managedbuilder.ui.wizards.NewManagedCProjectWizard.addPages(NewManagedCProjectWizard.java:48)
at
org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:110)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:99)
at
org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:747)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:345)
at
org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at
org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
at
org.eclipse.jface.window.Window.open(Window.java:787)
at
org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:114)
at
org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at
java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at
org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at
org.eclipse.core.launcher.Main.run(Main.java:973)
at
org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: java.lang.ClassNotFoundException:
org.kpit.cdt.abc.projectgeneration.ProjectgenerationPlugin
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
at
java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:142)
...
57 more
Root exception:
java.lang.ClassNotFoundException:
org.kpit.cdt.abc.projectgeneration.ProjectgenerationPlugin
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
at
java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:142)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:965)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:313)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:264)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
at
java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1248)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
at
org.eclipse.cdt.managedbuilder.ui.wizards.MBSCustomPageManager.loadWizardPage(MBSCustomPageManager.java:191)
at
org.eclipse.cdt.managedbuilder.ui.wizards.MBSCustomPageManager.loadExtensionsSynchronized(MBSCustomPageManager.java:156)
at
org.eclipse.cdt.managedbuilder.ui.wizards.MBSCustomPageManager.loadExtensions(MBSCustomPageManager.java:120)
at
org.eclipse.cdt.managedbuilder.ui.wizards.NewManagedCProjectWizard.addPages(NewManagedCProjectWizard.java:48)
at
org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:110)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:99)
at
org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:747)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:345)
at
org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at
org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
at
org.eclipse.jface.window.Window.open(Window.java:787)
at
org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:114)
at
org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at
java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at
org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at
org.eclipse.core.launcher.Main.run(Main.java:973)
at
org.eclipse.core.launcher.Main.main(Main.java:948)