Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1728

ClassCastException when a wizard is invoked in Eclipse plugin

    Details

    • Steps to Reproduce:
      Hide

      1) Run mvn clean verify in the org.jboss.tools.forge2.runtime project.
      2) Execute the org.jboss.tools.forge.ui.ext project as an Eclipse application
      3) Press Ctrl+5
      4) Choose "Project: New"

      Show
      1) Run mvn clean verify in the org.jboss.tools.forge2.runtime project. 2) Execute the org.jboss.tools.forge.ui.ext project as an Eclipse application 3) Press Ctrl+5 4) Choose "Project: New"

      Description

      It doesn't happen with Furnace 2.3.0.Final, so I guess it was some change introduced in 2.3.1-SNAPSHOT

      java.lang.ClassCastException: org.jboss.forge.addon.facets.AbstractFaceted_$$_javassist_8b700113-c96b-430a-9ecc-38c496ae6505 cannot be cast to org.jboss.forge.addon.ui.input.InputComponent
      at org.jboss.tools.forge.ui.ext.wizards.ForgeWizardPage.createControl(ForgeWizardPage.java:85)
      at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174)
      at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736)
      at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:608)
      at org.eclipse.jface.window.Window.create(Window.java:432)
      at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1104)
      at org.eclipse.jface.window.Window.open(Window.java:791)
      at org.jboss.tools.forge.ui.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:157)
      at org.jboss.tools.forge.ui.ext.dialog.UICommandListDialog$1$1.handleElementSelected(UICommandListDialog.java:161)
      at org.jboss.tools.forge.ui.ext.quickaccess.QuickAccessContents.handleSelection(QuickAccessContents.java:326)
      at org.jboss.tools.forge.ui.ext.quickaccess.QuickAccessContents.access$0(QuickAccessContents.java:316)
      at org.jboss.tools.forge.ui.ext.quickaccess.QuickAccessContents$6.mouseUp(QuickAccessContents.java:465)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
      at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      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:354)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lincolnthree Lincoln Baxter III
                Reporter:
                gastaldi George Gastaldi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: