Details
-
Suggestion
-
Resolution: Answered
-
None
-
None
-
JIRA 4.3.3, GreenHopper 5.6.7
JIRA 5.1.5, GreenHopper 6.0.4 (classic Task Board)
Description
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:
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)
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:
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) ...
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.