java.lang.ArrayIndexOutOfBoundsException: -1 @40000000540e255d399c40bc at java.util.ArrayList.get(ArrayList.java:324) @40000000540e255d399c40bc at com.atlassian.confluence.pages.actions.ViewBlogPostsByDateAction.calculateViewingBlogs(ViewBlogPostsByDateAction.java:321) @40000000540e255d399c63e4 at com.atlassian.confluence.pages.actions.ViewBlogPostsByDateAction.execute(ViewBlogPostsByDateAction.java:52) @40000000540e255d399c67cc at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) @40000000540e255d399c67cc at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)

Atlassian JIRA | Jaime Silveira [Atlassian] | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    An error happens when viewing the recent blog posts history (not tested with pages), when going to older history page to a previous month in a user’s personal space (not tested in other spaces, but probably the error should happen too). The history of recent blog posts can be found in the following link: {noformat} <Confluence URL>/display/~<user>/<year>/<month> {noformat} Where: * <Confluence URL> The URL for Confluence * <user> is the username * <year> is the year * <month> is the numeric month with 2 digits When seeing the history of blog posts, we can navigate by pressing ‘older’ to see the older posts. If doing this until the last post in the current month, the ‘older’ button should make a transition to the previous month, but, instead, this error is shown: !older_error.png! The following stacktrace for the error is present in the Confluence logs: {noformat} @40000000540e255d399c3504 2014-09-08 17:53:23,962 ERROR [TP-Processor7] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action @40000000540e255d399c3cd4 -- url: /wiki/display/~—/2012/04/ | userName: — | referer: https://thinkwrap.jira.com/wiki/display/~--/2012/04/?currentPage=2 @40000000540e255d399c40bc java.lang.ArrayIndexOutOfBoundsException: -1 @40000000540e255d399c40bc at java.util.ArrayList.get(ArrayList.java:324) @40000000540e255d399c40bc at com.atlassian.confluence.pages.actions.ViewBlogPostsByDateAction.calculateViewingBlogs(ViewBlogPostsByDateAction.java:321) @40000000540e255d399c63e4 at com.atlassian.confluence.pages.actions.ViewBlogPostsByDateAction.execute(ViewBlogPostsByDateAction.java:52) @40000000540e255d399c67cc at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) @40000000540e255d399c67cc at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) @40000000540e255d399c7384 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) @40000000540e255d399c7384 at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:65) @40000000540e255d399c776c at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) @40000000540e255d399c8af4 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) @40000000540e255d399c8af4 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) … {noformat} *Steps to Reproduce* * Have a Confluence installed * Create personal space for a user and use the Documentation Theme (not tested with other theme) * Create 2 blog posts in this space with the creation dates in two different months (for instance, one in April, 2014 and the other in May, 2014) ** Either wait until a month passes to create the second one :( ** Or change the ‘creationdate’ in the database (as well as the ‘lastmoddate’, if required to not have a last modification date before the creation). First find the blogpost (content) id, and then: {code:sql} update content set creationdate = ‘<newcreationdate>’ where contentid = <id>; update content set lastmoddate = ‘<newlastmoddate>’ where contentid = <id>; {code} * Go go: {noformat} <Confluence URL>/display/~<user>/<year>/<month> {noformat} ** Using the date of the oldest one. * There should be 1 blog post here, the oldest one. Click ‘older’ * The error occurs. *Workaround* * In the URL, replace the month by the previous one to have access to it.

    Atlassian JIRA | 2 years ago | Jaime Silveira [Atlassian]
    java.lang.ArrayIndexOutOfBoundsException: -1 @40000000540e255d399c40bc at java.util.ArrayList.get(ArrayList.java:324) @40000000540e255d399c40bc at com.atlassian.confluence.pages.actions.ViewBlogPostsByDateAction.calculateViewingBlogs(ViewBlogPostsByDateAction.java:321) @40000000540e255d399c63e4 at com.atlassian.confluence.pages.actions.ViewBlogPostsByDateAction.execute(ViewBlogPostsByDateAction.java:52) @40000000540e255d399c67cc at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) @40000000540e255d399c67cc at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
  2. 0

    An error happens when viewing the recent blog posts history (not tested with pages), when going to older history page to a previous month in a user’s personal space (not tested in other spaces, but probably the error should happen too). The history of recent blog posts can be found in the following link: {noformat} <Confluence URL>/display/~<user>/<year>/<month> {noformat} Where: * <Confluence URL> The URL for Confluence * <user> is the username * <year> is the year * <month> is the numeric month with 2 digits When seeing the history of blog posts, we can navigate by pressing ‘older’ to see the older posts. If doing this until the last post in the current month, the ‘older’ button should make a transition to the previous month, but, instead, this error is shown: !older_error.png! The following stacktrace for the error is present in the Confluence logs: {noformat} @40000000540e255d399c3504 2014-09-08 17:53:23,962 ERROR [TP-Processor7] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action @40000000540e255d399c3cd4 -- url: /wiki/display/~—/2012/04/ | userName: — | referer: https://thinkwrap.jira.com/wiki/display/~--/2012/04/?currentPage=2 @40000000540e255d399c40bc java.lang.ArrayIndexOutOfBoundsException: -1 @40000000540e255d399c40bc at java.util.ArrayList.get(ArrayList.java:324) @40000000540e255d399c40bc at com.atlassian.confluence.pages.actions.ViewBlogPostsByDateAction.calculateViewingBlogs(ViewBlogPostsByDateAction.java:321) @40000000540e255d399c63e4 at com.atlassian.confluence.pages.actions.ViewBlogPostsByDateAction.execute(ViewBlogPostsByDateAction.java:52) @40000000540e255d399c67cc at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) @40000000540e255d399c67cc at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) @40000000540e255d399c7384 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) @40000000540e255d399c7384 at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:65) @40000000540e255d399c776c at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) @40000000540e255d399c8af4 at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) @40000000540e255d399c8af4 at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) … {noformat} *Steps to Reproduce* * Have a Confluence installed * Create personal space for a user and use the Documentation Theme (not tested with other theme) * Create 2 blog posts in this space with the creation dates in two different months (for instance, one in April, 2014 and the other in May, 2014) ** Either wait until a month passes to create the second one :( ** Or change the ‘creationdate’ in the database (as well as the ‘lastmoddate’, if required to not have a last modification date before the creation). First find the blogpost (content) id, and then: {code:sql} update content set creationdate = ‘<newcreationdate>’ where contentid = <id>; update content set lastmoddate = ‘<newlastmoddate>’ where contentid = <id>; {code} * Go go: {noformat} <Confluence URL>/display/~<user>/<year>/<month> {noformat} ** Using the date of the oldest one. * There should be 1 blog post here, the oldest one. Click ‘older’ * The error occurs. *Workaround* * In the URL, replace the month by the previous one to have access to it.

    Atlassian JIRA | 2 years ago | Jaime Silveira [Atlassian]
    java.lang.ArrayIndexOutOfBoundsException: -1 @40000000540e255d399c40bc at java.util.ArrayList.get(ArrayList.java:324) @40000000540e255d399c40bc at com.atlassian.confluence.pages.actions.ViewBlogPostsByDateAction.calculateViewingBlogs(ViewBlogPostsByDateAction.java:321) @40000000540e255d399c63e4 at com.atlassian.confluence.pages.actions.ViewBlogPostsByDateAction.execute(ViewBlogPostsByDateAction.java:52) @40000000540e255d399c67cc at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) @40000000540e255d399c67cc at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      -1 @40000000540e255d399c40bc at java.util.ArrayList.get(ArrayList.java:324) @40000000540e255d399c40bc at com.atlassian.confluence.pages.actions.ViewBlogPostsByDateAction.calculateViewingBlogs(ViewBlogPostsByDateAction.java:321) @40000000540e255d399c63e4 at com.atlassian.confluence.pages.actions.ViewBlogPostsByDateAction.execute(ViewBlogPostsByDateAction.java:52) @40000000540e255d399c67cc at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) @40000000540e255d399c67cc at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)

      at com.opensymphony.xwork.DefaultActionInvocation.invoke()
    2. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
      1 frame
    3. com.atlassian.confluence
      ConfluenceWorkflowInterceptor.intercept
      1. com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:65)
      1 frame