java.lang.ArrayIndexOutOfBoundsException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Two known way to reproduce this: *When there are no issues for a particular project in Agile and the grey bar in the Task Board is clicked*, the stack trace below is thrown: {noformat} java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.get(ArrayList.java:324) at com.pyxis.greenhopper.jira.boards.TaskBoard.getStepBoard(TaskBoard.java:240) at com.pyxis.greenhopper.jira.actions.TaskBoardAction.getSelectedStepBoard(TaskBoardAction.java:326) at com.pyxis.greenhopper.jira.actions.TaskBoardAction.doNavigator(TaskBoardAction.java:269) 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 webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:433) at webwork.action.ActionSupport.execute(ActionSupport.java:157) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:74) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:205) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:143) {noformat} *When subtask is moved to Done and clicking on the cog icon for the parent task*, it will throws the same exception. Steps to reproduce: # create a issue and subtask for the issue # in the Classic Task Board, click on the "Hide Done Issue" . Refer to screenshot HideDoneIssue1.png # move the subtask to "Done". # click on the Cog icon for the parent task. Refer to screenshot HideDoneIssue2.png # exception thrown as in the HideDoneIssue3.png and stack trace in JIRA logs: {code} 2012-11-29 22:47:14,474 http-8283-3 ERROR admin 1367x663x1 bxjv5c 127.0.0.1 /secure/GetTBCardMenu.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.ArrayIndexOutOfBoundsException: -1 java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.get(ArrayList.java:324) at com.pyxis.greenhopper.jira.boards.TaskBoard.getStepBoard(TaskBoard.java:240) at com.pyxis.greenhopper.jira.actions.TaskBoardAction.getSelectedStepBoard(TaskBoardAction.java:326) ... {code} (i) to fix this, in GreenHopper 6.0.x, click on the "Hide Done Issues" again. I believe that this error page should be handled gracefully to let users know that this is not a bug, but an error that no issues are created in the project yet.
    via by Justin Alex [Atlassian],
  • Two known way to reproduce this: *When there are no issues for a particular project in Agile and the grey bar in the Task Board is clicked*, the stack trace below is thrown: {noformat} java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.get(ArrayList.java:324) at com.pyxis.greenhopper.jira.boards.TaskBoard.getStepBoard(TaskBoard.java:240) at com.pyxis.greenhopper.jira.actions.TaskBoardAction.getSelectedStepBoard(TaskBoardAction.java:326) at com.pyxis.greenhopper.jira.actions.TaskBoardAction.doNavigator(TaskBoardAction.java:269) 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 webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:433) at webwork.action.ActionSupport.execute(ActionSupport.java:157) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:74) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:205) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:143) {noformat} *When subtask is moved to Done and clicking on the cog icon for the parent task*, it will throws the same exception. Steps to reproduce: # create a issue and subtask for the issue # in the Classic Task Board, click on the "Hide Done Issue" . Refer to screenshot HideDoneIssue1.png # move the subtask to "Done". # click on the Cog icon for the parent task. Refer to screenshot HideDoneIssue2.png # exception thrown as in the HideDoneIssue3.png and stack trace in JIRA logs: {code} 2012-11-29 22:47:14,474 http-8283-3 ERROR admin 1367x663x1 bxjv5c 127.0.0.1 /secure/GetTBCardMenu.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.ArrayIndexOutOfBoundsException: -1 java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.get(ArrayList.java:324) at com.pyxis.greenhopper.jira.boards.TaskBoard.getStepBoard(TaskBoard.java:240) at com.pyxis.greenhopper.jira.actions.TaskBoardAction.getSelectedStepBoard(TaskBoardAction.java:326) ... {code} (i) to fix this, in GreenHopper 6.0.x, click on the "Hide Done Issues" again. I believe that this error page should be handled gracefully to let users know that this is not a bug, but an error that no issues are created in the project yet.
    via by Justin Alex [Atlassian],
  • Jersey: list of JSON objects
    via Stack Overflow by Dejel
    ,
  • Setting ListModels to JList
    via Stack Overflow by lochi
    ,
    • java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.get(ArrayList.java:324) at com.pyxis.greenhopper.jira.boards.TaskBoard.getStepBoard(TaskBoard.java:240) at com.pyxis.greenhopper.jira.actions.TaskBoardAction.getSelectedStepBoard(TaskBoardAction.java:326) at com.pyxis.greenhopper.jira.actions.TaskBoardAction.doNavigator(TaskBoardAction.java:269) 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 webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:433) at webwork.action.ActionSupport.execute(ActionSupport.java:157) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:74) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:205) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:143)

    Users with the same issue

    slash
    1 times, last one,
    David
    2 times, last one,
    Andreas Häber
    2 times, last one,
    aldrinleal
    1 times, last one,
    Hronom
    49 times, last one,
    35 more bugmates