Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-16032

java.lang.ArrayIndexOutOfBoundsException in Forge Runtime preferences

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.1.1.Final
    • None
    • forge
    • None

      Stacktrace:

      java.lang.ArrayIndexOutOfBoundsException: 0
      	at org.jboss.tools.forge.ui.preferences.ForgeInstallationsPreferencePage$6.run(ForgeInstallationsPreferencePage.java:293)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at org.jboss.tools.forge.ui.preferences.ForgeInstallationsPreferencePage.performOk(ForgeInstallationsPreferencePage.java:290)
      	at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:965)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
      	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      	at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:945)
      	at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:448)
      	at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.okPressed(WorkbenchPreferenceDialog.java:171)
      	at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
      	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.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215)
      	at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
      	at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      	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)
      
      

            [JBIDE-16032] java.lang.ArrayIndexOutOfBoundsException in Forge Runtime preferences

            Pavol Srna added a comment -

            Verified in jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar.

            Pavol Srna added a comment - Verified in jbdevstudio-product-eap-universal-7.1.0.GA-v20131208-0703-B592.jar.

            Koen Aers added a comment -

            Pull Request applied on the 4.1.1.x and 4.1.x branches

            Koen Aers added a comment - Pull Request applied on the 4.1.1.x and 4.1.x branches

            +1 for the fix.

            still wondering why it doesn't fail equally on all OS's though

            Max Andersen added a comment - +1 for the fix. still wondering why it doesn't fail equally on all OS's though

            Pavol Srna added a comment -

            kaers@redhat.com, there is no plan to do 4.1.1.CR1 respin-b. Will it be picked up in Final respin? If so, can you please change the fix version respectively?

            Pavol Srna added a comment - kaers@redhat.com , there is no plan to do 4.1.1.CR1 respin-b. Will it be picked up in Final respin? If so, can you please change the fix version respectively?

            Koen Aers added a comment -

            The new PR solves the problem on Linux.

            Koen Aers added a comment - The new PR solves the problem on Linux.

            Pavol Srna added a comment -

            I can reproduce only on linux. Win8 and MacOSX works well.

            Pavol Srna added a comment - I can reproduce only on linux. Win8 and MacOSX works well.

            Koen Aers added a comment -

            psrna Can you verify another time? I have downloaded the JBDS build you used and tried again with build CR1-v20131124-0629-B575 of JBT and everything is going as expected. The last step in your scenario is now impossible because at all times one runtime should remain selected.

            Koen Aers added a comment - psrna Can you verify another time? I have downloaded the JBDS build you used and tried again with build CR1-v20131124-0629-B575 of JBT and everything is going as expected. The last step in your scenario is now impossible because at all times one runtime should remain selected.

            Pavol Srna added a comment -

            Unfortunately no, I see the same issue in JBT too.

            Pavol Srna added a comment - Unfortunately no, I see the same issue in JBT too.

            Koen Aers added a comment -

            So maybe this change was included in JBT 4.1.1.CR1a but not propagated to JBDS?

            Koen Aers added a comment - So maybe this change was included in JBT 4.1.1.CR1a but not propagated to JBDS?

            Pavol Srna added a comment -

            kaers@redhat.com yes I'am sure. I tried it again on JBDS:

            Version: 7.1.0.CR1
            Build id: CR1-v20131124-0717-B560
            Build date: 20131124-0717

            Obviously something has changed because the line numbers are different. Please see the stacktrace below. But UI behaves the same and I still hit the issue.

            java.lang.ArrayIndexOutOfBoundsException: 0
            	at org.jboss.tools.forge.ui.preferences.ForgeInstallationsPreferencePage.enableButtons(ForgeInstallationsPreferencePage.java:286)
            	at org.jboss.tools.forge.ui.preferences.ForgeInstallationsPreferencePage.access$4(ForgeInstallationsPreferencePage.java:275)
            	at org.jboss.tools.forge.ui.preferences.ForgeInstallationsPreferencePage$4.selectionChanged(ForgeInstallationsPreferencePage.java:177)
            	at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)
            	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
            	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
            	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
            	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)
            	at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188)
            	at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211)
            	at org.eclipse.jface.viewers.CheckboxTableViewer.handleSelect(CheckboxTableViewer.java:301)
            	at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241)
            	at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239)
            	at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233)
            	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403)
            	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.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215)
            	at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
            	at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
            	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
            	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
            	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
            	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)
            

            Pavol Srna added a comment - kaers@redhat.com yes I'am sure. I tried it again on JBDS: Version: 7.1.0.CR1 Build id: CR1-v20131124-0717-B560 Build date: 20131124-0717 Obviously something has changed because the line numbers are different. Please see the stacktrace below. But UI behaves the same and I still hit the issue. java.lang.ArrayIndexOutOfBoundsException: 0 at org.jboss.tools.forge.ui.preferences.ForgeInstallationsPreferencePage.enableButtons(ForgeInstallationsPreferencePage.java:286) at org.jboss.tools.forge.ui.preferences.ForgeInstallationsPreferencePage.access$4(ForgeInstallationsPreferencePage.java:275) at org.jboss.tools.forge.ui.preferences.ForgeInstallationsPreferencePage$4.selectionChanged(ForgeInstallationsPreferencePage.java:177) at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162) at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188) at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211) at org.eclipse.jface.viewers.CheckboxTableViewer.handleSelect(CheckboxTableViewer.java:301) at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239) at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403) 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.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215) at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65) at org.eclipse.jface.action.Action.runWithEvent(Action.java:499) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) 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)

              kaers@redhat.com Koen Aers
              psrna Pavol Srna
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: