Bug 193966 - [export] Export as "Eclipse product with AspectJ support" doesn't work
Summary: [export] Export as "Eclipse product with AspectJ support" doesn't work
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 1.5   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 2.0.1   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-22 08:02 EDT by CHENG Yuk Pong CLA
Modified: 2009-10-07 00:04 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description CHENG Yuk Pong CLA 2007-06-22 08:02:06 EDT
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)
Comment 1 Matt Chapman CLA 2007-06-25 06:08:52 EDT
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.
Comment 2 CHENG Yuk Pong CLA 2007-06-26 04:32:36 EDT
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. 
Comment 3 Matt Chapman CLA 2007-06-26 12:20:27 EDT
ok, closing for now. please reopen if/when it happens again, and you can provide exact steps to reproduce or a testcase
Comment 4 Dominik Maehl CLA 2007-11-12 09:03:32 EST
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?
Comment 5 Dominik Maehl CLA 2007-11-12 10:37:47 EST
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
Comment 6 Matt Chapman CLA 2007-11-13 07:01:07 EST
what is this delta-pack you refer to?
Comment 7 Dominik Maehl CLA 2007-11-13 10:14:36 EST
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 :)
Comment 8 Matt Chapman CLA 2007-11-13 10:40:55 EST
thanks for the info. reopening the bug.
Comment 9 Andrew Clement CLA 2008-08-29 12:46:09 EDT
is this still a problem for people?
Comment 10 Andrew Eisenberg CLA 2009-10-07 00:04:40 EDT
This bug is fixed now.