Community
Participate
Working Groups
AJDT Version: 1.5.0.200705230420 AspectJ version: 1.5.4.200705211336 SDK Version: 3.3.0 (ie 3.3RC4) Build id: I20070608-1718 PDE Version: 3.3.0.v20070607-7N7M-DUUEF6Ez0FD6JXCD Build id: I20070608-1718 Step to reproduce: 1. Create a eclipse rcp project 2. Add AspectJ nature 3. Create a *.product file 4. Right click -> export -> "Eclipse product with AspectJ support" 5. "Finish" Expected Result: - product with aspectj support exported Result: java.lang.ClassCastException: org.eclipse.pde.internal.ui.wizards.exports.CrossPlatformExportPage cannot be cast to org.eclipse.ajdt.internal.ui.wizards.exports.AbstractExportWizardPage at org.eclipse.ajdt.internal.ui.wizards.exports.BaseExportWizard.saveSettings(BaseExportWizard.java:82) at org.eclipse.ajdt.internal.ui.wizards.exports.BaseExportWizard.performFinish(BaseExportWizard.java:64) at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.eclipse.ui.actions.ExportResourcesAction.run(ExportResourcesAction.java:180) at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) 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:504) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443) at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
I haven't been able to reproduce this. Please could you include your .product file here, or even better attach a complete example rcp project which shows the problem.
This problem goes away after I have create a new workspace and import the old projects. I can't give you my workspace, as it contain something I can't release at current stage.
ok, closing for now. please reopen if/when it happens again, and you can provide exact steps to reproduce or a testcase
Hi, I'm having the same problem with the exact same stacktrace. Is it possible that this bug only occurs when you have installed the delta pack. Otherwise there would be no need for the CrossPlatformExportPage. I'm using Eclipse 3.3.1 and AJDT 1.5. Creating a new workspace didn't do the trick for me. Could this bug please be reopened?
Hi again, I've verified my assumption by doing a clean eclipse install without the delta-pack. Without the delta-pack, the export runs fine. With it installed, it stops with the above mentioned exception. So IMO this is a bug. Dominik
what is this delta-pack you refer to?
The delta-pack is a download from the Eclipse Platform project. You could get one for Eclipse 3.3.1.1 at this page: http://download.eclipse.org/eclipse/downloads/drops/R-3.3.1.1-200710231652/index.php There it is located in the RCP SDK category at the last position. It contains launchers, SWT, and possibly more plugins to enable a developer to create a eclipse product for another platform. I use it regularly as I develop Win32 applications on a Linux workstation. After you've installed the delta-pack, an additional page appears in the product export wizard asking you for which target platforms you want to export the product. It appears as if this dialog page does not extend the ajdt AbstractExportWizardPage and this causes the Exception. Somehow Eclipse omits this page from the wizard if the delta pack is not installed. So this bug does not occur then. I hope this information helps you :)
thanks for the info. reopening the bug.
is this still a problem for people?
This bug is fixed now.