2 Replies Latest reply on Jan 17, 2014 12:27 AM by

    [forge-dev] Command execution failures in Eclipse. Am I missing      something?

       

      Hey all,

          I just built 2.0.0.CR1 from source, and I run into this error on every UICommand execution. Have I missed something?

       

      !ENTRY org.jboss.tools.forge.ui.ext 4 1 2014-01-17 08:39:45.060

      !MESSAGE Error logged from Forge Plugin:

      !STACK 0

      java.lang.UnsupportedOperationException: getMessage() should not be called in a CompositeResult. Call getResults() instead.

           at org.jboss.forge.addon.ui.result.CompositeResult.getMessage(CompositeResult.java:35)

           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.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$1.call(ClassLoaderAdapterCallback.java:102)

           at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)

           at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:75)

           at org.jboss.forge.addon.ui.result.Result_$$_javassist_0be5729e-a8c1-4ecd-8080-fb2fdd8f76f6.getMessage(Result_$$_javassist_0be5729e-a8c1-4ecd-8080-fb2fdd8f76f6.java)

           at org.jboss.tools.forge.ui.ext.wizards.ForgeWizard$1.run(ForgeWizard.java:92)

           at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)

           at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)

           at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1028)

           at org.jboss.tools.forge.ui.ext.wizards.ForgeWizard.performFinish(ForgeWizard.java:71)

           at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)

           at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)

           at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)

           at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)

           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.jface.window.Window.runEventLoop(Window.java:826)

           at org.eclipse.jface.window.Window.open(Window.java:802)

           at org.jboss.tools.forge.ui.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:141)

           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:138)

           at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)

           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)

       

       

      Vineet

      _______________________________________________

      forge-dev mailing list

      forge-dev@lists.jboss.org

      https://lists.jboss.org/mailman/listinfo/forge-dev

       

        • 1. Re: [forge-dev] Command execution failures in Eclipse. Am I      missing     something?
          George Gastaldi Master

          Your JBT Plugin is not updated. Pull the sources from github.com/jbosstools/jbosstools-forge and try again.

           

          Em 17/01/2014, às 01:12, Vineet Reynolds Pereira <vpereira@redhat.com> escreveu:

           

           

          Hey all,

             I just built 2.0.0.CR1 from source, and I run into this error on every UICommand execution. Have I missed something?

           

          !ENTRY org.jboss.tools.forge.ui.ext 4 1 2014-01-17 08:39:45.060

          !MESSAGE Error logged from Forge Plugin:

          !STACK 0

          java.lang.UnsupportedOperationException: getMessage() should not be called in a CompositeResult. Call getResults() instead.

             at org.jboss.forge.addon.ui.result.CompositeResult.getMessage(CompositeResult.java:35)

             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.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$1.call(ClassLoaderAdapterCallback.java:102)

             at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)

             at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:75)

             at org.jboss.forge.addon.ui.result.Result_$$_javassist_0be5729e-a8c1-4ecd-8080-fb2fdd8f76f6.getMessage(Result_$$_javassist_0be5729e-a8c1-4ecd-8080-fb2fdd8f76f6.java)

             at org.jboss.tools.forge.ui.ext.wizards.ForgeWizard$1.run(ForgeWizard.java:92)

             at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)

             at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)

             at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1028)

             at org.jboss.tools.forge.ui.ext.wizards.ForgeWizard.performFinish(ForgeWizard.java:71)

             at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)

             at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)

             at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)

             at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)

             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.jface.window.Window.runEventLoop(Window.java:826)

             at org.eclipse.jface.window.Window.open(Window.java:802)

             at org.jboss.tools.forge.ui.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:141)

             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:138)

             at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)

             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)

           

           

          Vineet

          _______________________________________________

          forge-dev mailing list

          forge-dev@lists.jboss.org

          https://lists.jboss.org/mailman/listinfo/forge-dev

           

          _______________________________________________

          forge-dev mailing list

          forge-dev@lists.jboss.org

          https://lists.jboss.org/mailman/listinfo/forge-dev

           

           

          • 2. Re: [forge-dev] Command execution failures in Eclipse. Am      I     missing     something?

             

            -


            Original Message -


            From: "George Gastaldi" <ggastald@redhat.com>

            To: "forge-dev List" <forge-dev@lists.jboss.org>

            Cc: "forge-dev List" <forge-dev@lists.jboss.org>

            Sent: Friday, January 17, 2014 9:07:11 AM

            Subject: Re: Command execution failures in Eclipse. Am I     missing     something?

             

            Your JBT Plugin is not updated. Pull the sources from

            github.com/jbosstools/jbosstools-forge and try again.

             

            I've done precisely this, to no avail. This is against both the master branch and the forge-2.0.0.CR1 tag in the JBossTools repo.

             

            And the issue is similar to FORGE-1460, except it occurs when I create a new Web project.

             

            In ForgeWizard.java:84-89 (reproduced below)

             

            if (commandResult instanceof CompositeResult) {

                 results = ((CompositeResult) commandResult)

                           .getResults();

            } else {

                 results = Arrays.asList(commandResult);

            }

             

            the 'instanceof' test fails for a CompositeResult instance.

             

            Em 17/01/2014, às 01:12, Vineet Reynolds Pereira <vpereira@redhat.com>

            escreveu:

             

             

            Hey all,

               I just built 2.0.0.CR1 from source, and I run into this error on every

               UICommand execution. Have I missed something?

             

            !ENTRY org.jboss.tools.forge.ui.ext 4 1 2014-01-17 08:39:45.060

            !MESSAGE Error logged from Forge Plugin:

            !STACK 0

            java.lang.UnsupportedOperationException: getMessage() should not be called

            in a CompositeResult. Call getResults() instead.

               at

               org.jboss.forge.addon.ui.result.CompositeResult.getMessage(CompositeResult.java:35)

               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.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$1.call(ClassLoaderAdapterCallback.java:102)

               at

               org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)

               at

               org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:75)

               at

               org.jboss.forge.addon.ui.result.Result_$$_javassist_0be5729e-a8c1-4ecd-8080-fb2fdd8f76f6.getMessage(Result_$$_javassist_0be5729e-a8c1-4ecd-8080-fb2fdd8f76f6.java)

               at

               org.jboss.tools.forge.ui.ext.wizards.ForgeWizard$1.run(ForgeWizard.java:92)

               at

               org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)

               at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)

               at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1028)

               at

               org.jboss.tools.forge.ui.ext.wizards.ForgeWizard.performFinish(ForgeWizard.java:71)

               at

               org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)

               at

               org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)

               at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)

               at

               org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)

               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.jface.window.Window.runEventLoop(Window.java:826)

               at org.eclipse.jface.window.Window.open(Window.java:802)

               at

               org.jboss.tools.forge.ui.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:141)

               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:138)

               at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)

               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)

             

             

            Vineet

            _______________________________________________

            forge-dev mailing list

            forge-dev@lists.jboss.org

            https://lists.jboss.org/mailman/listinfo/forge-dev

             

            _______________________________________________

            forge-dev mailing list

            forge-dev@lists.jboss.org

            https://lists.jboss.org/mailman/listinfo/forge-dev

             

            _______________________________________________

            forge-dev mailing list

            forge-dev@lists.jboss.org

            https://lists.jboss.org/mailman/listinfo/forge-dev