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

ArrayIndexOutOfBoundsException when trying to edit value of input ptoperty in properties window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.1.1
    • 3.1.x
    • common, struts/shale
    • None

    Description

      eclipse.buildId=M20100211-1343
      java.version=1.6.0_18
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
      Command-line arguments: -os linux -ws gtk -arch x86 -debug

      Struts Tools - Version: 3.1.0.v201004221334N-H154-GA

      Following Struts tools tutorial and ArrayIndexOutOfBoundsException during steps in chapter 6.6 (http://www.redhat.com/docs/en-US/JBoss_Developer_Studio/3.0/html/Struts_Tools_Tutorial/EditingTheAction.html) appears

      Steps to Reproduce :
      have some struts web project (struts version 1.2, servlet version 2.4) with at least one action/action-mapping defined

      • In the Web Projects view, expand the node under the StrutsHello > Configuration > default > struts-config.xml > action-mappings node, right-click the /greeting action, and then select Properties...from the context menu
      • In the Edit Properties window, insert the cursor into the value column for the input property and click on the ... button

      Expected: dialog appears

      Actual:
      java.lang.ArrayIndexOutOfBoundsException: 0
      at org.jboss.tools.common.meta.action.impl.SpecialWizardSupport.getSubtitle(SpecialWizardSupport.java:104)
      at org.jboss.tools.common.model.ui.wizards.special.DefaultSpecialWizard.setStep(DefaultSpecialWizard.java:131)
      at org.jboss.tools.common.model.ui.wizards.special.DefaultSpecialWizard.open(DefaultSpecialWizard.java:81)
      at org.jboss.tools.common.model.ui.wizards.special.DefaultSpecialWizard.execute(DefaultSpecialWizard.java:64)
      at org.jboss.tools.common.meta.action.impl.handlers.DefaultSpecialHandler.executeHandler(DefaultSpecialHandler.java:61)
      at org.jboss.tools.common.meta.action.impl.XActionImpl.executeHandler(XActionImpl.java:65)
      at org.jboss.tools.common.model.ui.action.XModelObjectAction.actionPerformed(XModelObjectAction.java:96)
      at org.jboss.tools.common.model.ui.action.XModelObjectActionInvoker.execute(XModelObjectActionInvoker.java:36)
      at org.jboss.tools.common.meta.action.XActionInvoker.invoke(XActionInvoker.java:53)
      at org.jboss.tools.common.meta.action.XActionInvoker.invoke(XActionInvoker.java:33)
      at org.jboss.tools.struts.ui.wizard.selectpath.PathEditorAdapter.invoke0(PathEditorAdapter.java:124)
      at org.jboss.tools.struts.ui.wizard.selectpath.PathEditorAdapter.invoke(PathEditorAdapter.java:99)
      at org.jboss.tools.common.model.ui.attribute.editor.ActiveCellEditor.callExternal(ActiveCellEditor.java:24)
      at org.jboss.tools.common.model.ui.attribute.editor.ActiveEditor.callExternal(ActiveEditor.java:58)
      at org.jboss.tools.common.model.ui.attribute.editor.DialogCellEditorEx.openDialogBox(DialogCellEditorEx.java:117)
      at org.eclipse.jface.viewers.DialogCellEditor$2.widgetSelected(DialogCellEditor.java:244)
      ...

      Attachments

        Issue Links

          Activity

            People

              scabanovich Viacheslav Kabanovich (Inactive)
              lukas.jungmann@gmail.com Lukas Jungmann (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: