java.lang.ArrayIndexOutOfBoundsException: -1

Atlassian JIRA | Justin Alex [Atlassian] | 5 years ago
  1. 0

    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.

    Atlassian JIRA | 5 years ago | Justin Alex [Atlassian]
    java.lang.ArrayIndexOutOfBoundsException: -1
  2. 0

    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.

    Atlassian JIRA | 5 years ago | Justin Alex [Atlassian]
    java.lang.ArrayIndexOutOfBoundsException: -1
  3. 0

    Json Formatter in 1.1.3 giving Array Out of Bounds exception

    GitHub | 4 years ago | joshughes
    java.lang.ArrayIndexOutOfBoundsException: -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Named argument invocation fails when no arguments

    GitHub | 5 years ago | FroMage
    java.lang.ArrayIndexOutOfBoundsException: -1

  1. bmacedo 2 times, last 3 days ago
  2. filpgame 9 times, last 6 days ago
  3. rube 24 times, last 2 months ago
  4. ajinkya_w 40 times, last 2 months ago
  5. maxxi 4 times, last 2 months ago
13 more registered users
16 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ArrayIndexOutOfBoundsException

    -1

    at java.util.ArrayList.get()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.get(ArrayList.java:324)
    1 frame
  3. com.pyxis.greenhopper
    TaskBoardAction.getSelectedStepBoard
    1. com.pyxis.greenhopper.jira.boards.TaskBoard.getStepBoard(TaskBoard.java:240)
    2. com.pyxis.greenhopper.jira.actions.TaskBoardAction.getSelectedStepBoard(TaskBoardAction.java:326)
    2 frames