java.lang.IllegalArgumentException: prevBuildResultKey and nextBuildResultKey cannot be null, either or both must be specified.

Atlassian JIRA | Martin Meinhold | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Seen in JBAC's logs after the restart: {noformat} 2013-11-19 04:35:11,087 INFO [http-bio-8085-exec-49] [AccessLogFilter] mhenderson POST http://jira-bamboo.internal.atlassian.com/build/admin/ajax/reorderBuild.action 1226465kb 2013-11-19 04:35:11,089 ERROR [http-bio-8085-exec-49] [ExceptionMappingInterceptor] prevBuildResultKey and nextBuildResultKey cannot be null, either or both must be specified. java.lang.IllegalArgumentException: prevBuildResultKey and nextBuildResultKey cannot be null, either or both must be specified. at com.atlassian.bamboo.v2.build.queue.BuildQueueManagerImpl.reorderBuildInQueue(BuildQueueManagerImpl.java:357) at com.atlassian.bamboo.ww2.actions.build.admin.ReorderBuild.doExecute(ReorderBuild.java:45) at com.atlassian.bamboo.ww2.BambooActionSupport.execute(BambooActionSupport.java:1134) at sun.reflect.GeneratedMethodAccessor701.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252) at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167) at com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor.validateWorkflow(BambooWorkflowInterceptor.java:53) at com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor.access$000(BambooWorkflowInterceptor.java:16) at com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor$1.call(BambooWorkflowInterceptor.java:33) at com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor$1.call(BambooWorkflowInterceptor.java:29) at com.atlassian.bamboo.util.BambooProfilingUtils.withUtilTimerStack(BambooProfilingUtils.java:49) at com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor.doIntercept(BambooWorkflowInterceptor.java:28) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) {noformat}

    Atlassian JIRA | 3 years ago | Martin Meinhold
    java.lang.IllegalArgumentException: prevBuildResultKey and nextBuildResultKey cannot be null, either or both must be specified.
  2. 0

    Seen in JBAC's logs after the restart: {noformat} 2013-11-19 04:35:11,087 INFO [http-bio-8085-exec-49] [AccessLogFilter] mhenderson POST http://jira-bamboo.internal.atlassian.com/build/admin/ajax/reorderBuild.action 1226465kb 2013-11-19 04:35:11,089 ERROR [http-bio-8085-exec-49] [ExceptionMappingInterceptor] prevBuildResultKey and nextBuildResultKey cannot be null, either or both must be specified. java.lang.IllegalArgumentException: prevBuildResultKey and nextBuildResultKey cannot be null, either or both must be specified. at com.atlassian.bamboo.v2.build.queue.BuildQueueManagerImpl.reorderBuildInQueue(BuildQueueManagerImpl.java:357) at com.atlassian.bamboo.ww2.actions.build.admin.ReorderBuild.doExecute(ReorderBuild.java:45) at com.atlassian.bamboo.ww2.BambooActionSupport.execute(BambooActionSupport.java:1134) at sun.reflect.GeneratedMethodAccessor701.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252) at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167) at com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor.validateWorkflow(BambooWorkflowInterceptor.java:53) at com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor.access$000(BambooWorkflowInterceptor.java:16) at com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor$1.call(BambooWorkflowInterceptor.java:33) at com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor$1.call(BambooWorkflowInterceptor.java:29) at com.atlassian.bamboo.util.BambooProfilingUtils.withUtilTimerStack(BambooProfilingUtils.java:49) at com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor.doIntercept(BambooWorkflowInterceptor.java:28) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) {noformat}

    Atlassian JIRA | 3 years ago | Martin Meinhold
    java.lang.IllegalArgumentException: prevBuildResultKey and nextBuildResultKey cannot be null, either or both must be specified.
  3. 0

    Steps to replicate: # Backup your Jenkins data, and prepare to import it into Bamboo OnDemand as per [this guide|https://confluence.atlassian.com/display/BAMBOO/Importing+data+from+Jenkins]. # Go to https://example.atlassian.net/builds/admin/jenkinsImport/configureJenkinsImport.action and select the backup you created in step 1 Result: Different things are shown in the UI depending on the browser and the level of access. If you're an administrator using Chrome it just shows a empty space between the two bars. The logs show: {noformat} 2014-03-30 00:47:17.277714500 2014-03-30 00:47:17,277 INFO [TP-Processor1] [AccessLogFilter] sysadmin POST https://example.atlassian.net/builds/admin/jenkinsImport/uploadJenkinsData.action?filename=jenkins.zip&size=117739 13857kb 2014-03-30 00:47:17.291896500 2014-03-30 00:47:17,291 WARN [TP-Processor1] [BambooXsrfTokenInterceptor] XSRF token validation failed in session:7B5C771AA0FD7B3C9669556052284B4C due to XSRF_FAILURE_NO_TOKEN_IN_PARAMS 2014-03-30 00:47:17.292939500 2014-03-30 00:47:17,291 ERROR [TP-Processor1] [ExceptionMappingInterceptor] XSRF Token Validation failed (XSRF_FAILURE_NO_TOKEN_IN_PARAMS). 2014-03-30 00:47:17.292941500 java.lang.IllegalArgumentException: XSRF Token Validation failed (XSRF_FAILURE_NO_TOKEN_IN_PARAMS). 2014-03-30 00:47:17.292941500 at com.atlassian.bamboo.ww2.interceptors.BambooXsrfTokenInterceptor.doIntercept(BambooXsrfTokenInterceptor.java:66) 2014-03-30 00:47:17.292942500 at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:34) 2014-03-30 00:47:17.292945500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.292946500 at com.atlassian.xwork.interceptors.AroundInterceptor.intercept(AroundInterceptor.java:25) 2014-03-30 00:47:17.292947500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.292947500 at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252) 2014-03-30 00:47:17.292953500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.292954500 at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) 2014-03-30 00:47:17.292963500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.292964500 at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) 2014-03-30 00:47:17.292965500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.292965500 at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171) ... 2014-03-30 00:47:17.296995500 2014-03-30 00:47:17,296 ERROR [TP-Processor1] [FiveOhOh] 500 Exception was thrown. 2014-03-30 00:47:17.296996500 java.lang.IllegalArgumentException: XSRF Token Validation failed (XSRF_FAILURE_NO_TOKEN_IN_PARAMS). 2014-03-30 00:47:17.296997500 at com.atlassian.bamboo.ww2.interceptors.BambooXsrfTokenInterceptor.doIntercept(BambooXsrfTokenInterceptor.java:66) 2014-03-30 00:47:17.296998500 at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:34) 2014-03-30 00:47:17.297004500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.297005500 at com.atlassian.xwork.interceptors.AroundInterceptor.intercept(AroundInterceptor.java:25) 2014-03-30 00:47:17.297005500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.297006500 at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252) 2014-03-30 00:47:17.297007500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.297008500 at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) 2014-03-30 00:47:17.297008500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.297011500 at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) 2014-03-30 00:47:17.297011500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.297012500 at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171) 2014-03-30 00:47:17.297013500 at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) 2014-03-30 00:47:17.297014500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ... {noformat}

    Atlassian JIRA | 3 years ago | Matthew Hunter
    java.lang.IllegalArgumentException: XSRF Token Validation failed (XSRF_FAILURE_NO_TOKEN_IN_PARAMS). 2014-03-30 00:47:17.292941500 at com.atlassian.bamboo.ww2.interceptors.BambooXsrfTokenInterceptor.doIntercept(BambooXsrfTokenInterceptor.java:66) 2014-03-30 00:47:17.292942500 at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:34) 2014-03-30 00:47:17.292945500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.292946500 at com.atlassian.xwork.interceptors.AroundInterceptor.intercept(AroundInterceptor.java:25)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Steps to replicate: # Backup your Jenkins data, and prepare to import it into Bamboo OnDemand as per [this guide|https://confluence.atlassian.com/display/BAMBOO/Importing+data+from+Jenkins]. # Go to https://example.atlassian.net/builds/admin/jenkinsImport/configureJenkinsImport.action and select the backup you created in step 1 Result: Different things are shown in the UI depending on the browser and the level of access. If you're an administrator using Chrome it just shows a empty space between the two bars. The logs show: {noformat} 2014-03-30 00:47:17.277714500 2014-03-30 00:47:17,277 INFO [TP-Processor1] [AccessLogFilter] sysadmin POST https://example.atlassian.net/builds/admin/jenkinsImport/uploadJenkinsData.action?filename=jenkins.zip&size=117739 13857kb 2014-03-30 00:47:17.291896500 2014-03-30 00:47:17,291 WARN [TP-Processor1] [BambooXsrfTokenInterceptor] XSRF token validation failed in session:7B5C771AA0FD7B3C9669556052284B4C due to XSRF_FAILURE_NO_TOKEN_IN_PARAMS 2014-03-30 00:47:17.292939500 2014-03-30 00:47:17,291 ERROR [TP-Processor1] [ExceptionMappingInterceptor] XSRF Token Validation failed (XSRF_FAILURE_NO_TOKEN_IN_PARAMS). 2014-03-30 00:47:17.292941500 java.lang.IllegalArgumentException: XSRF Token Validation failed (XSRF_FAILURE_NO_TOKEN_IN_PARAMS). 2014-03-30 00:47:17.292941500 at com.atlassian.bamboo.ww2.interceptors.BambooXsrfTokenInterceptor.doIntercept(BambooXsrfTokenInterceptor.java:66) 2014-03-30 00:47:17.292942500 at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:34) 2014-03-30 00:47:17.292945500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.292946500 at com.atlassian.xwork.interceptors.AroundInterceptor.intercept(AroundInterceptor.java:25) 2014-03-30 00:47:17.292947500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.292947500 at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252) 2014-03-30 00:47:17.292953500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.292954500 at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) 2014-03-30 00:47:17.292963500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.292964500 at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) 2014-03-30 00:47:17.292965500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.292965500 at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171) ... 2014-03-30 00:47:17.296995500 2014-03-30 00:47:17,296 ERROR [TP-Processor1] [FiveOhOh] 500 Exception was thrown. 2014-03-30 00:47:17.296996500 java.lang.IllegalArgumentException: XSRF Token Validation failed (XSRF_FAILURE_NO_TOKEN_IN_PARAMS). 2014-03-30 00:47:17.296997500 at com.atlassian.bamboo.ww2.interceptors.BambooXsrfTokenInterceptor.doIntercept(BambooXsrfTokenInterceptor.java:66) 2014-03-30 00:47:17.296998500 at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:34) 2014-03-30 00:47:17.297004500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.297005500 at com.atlassian.xwork.interceptors.AroundInterceptor.intercept(AroundInterceptor.java:25) 2014-03-30 00:47:17.297005500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.297006500 at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252) 2014-03-30 00:47:17.297007500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.297008500 at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) 2014-03-30 00:47:17.297008500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.297011500 at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) 2014-03-30 00:47:17.297011500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.297012500 at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171) 2014-03-30 00:47:17.297013500 at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) 2014-03-30 00:47:17.297014500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ... {noformat}

    Atlassian JIRA | 3 years ago | Matthew Hunter
    java.lang.IllegalArgumentException: XSRF Token Validation failed (XSRF_FAILURE_NO_TOKEN_IN_PARAMS). 2014-03-30 00:47:17.292941500 at com.atlassian.bamboo.ww2.interceptors.BambooXsrfTokenInterceptor.doIntercept(BambooXsrfTokenInterceptor.java:66) 2014-03-30 00:47:17.292942500 at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:34) 2014-03-30 00:47:17.292945500 at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 2014-03-30 00:47:17.292946500 at com.atlassian.xwork.interceptors.AroundInterceptor.intercept(AroundInterceptor.java:25)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      prevBuildResultKey and nextBuildResultKey cannot be null, either or both must be specified.

      at com.atlassian.bamboo.v2.build.queue.BuildQueueManagerImpl.reorderBuildInQueue()
    2. com.atlassian.bamboo
      BambooActionSupport.execute
      1. com.atlassian.bamboo.v2.build.queue.BuildQueueManagerImpl.reorderBuildInQueue(BuildQueueManagerImpl.java:357)
      2. com.atlassian.bamboo.ww2.actions.build.admin.ReorderBuild.doExecute(ReorderBuild.java:45)
      3. com.atlassian.bamboo.ww2.BambooActionSupport.execute(BambooActionSupport.java:1134)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor701.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    4. XWork
      DefaultWorkflowInterceptor.doIntercept
      1. com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
      2. com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
      3. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)
      4. com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
      4 frames
    5. com.atlassian.bamboo
      BambooWorkflowInterceptor.doIntercept
      1. com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor.validateWorkflow(BambooWorkflowInterceptor.java:53)
      2. com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor.access$000(BambooWorkflowInterceptor.java:16)
      3. com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor$1.call(BambooWorkflowInterceptor.java:33)
      4. com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor$1.call(BambooWorkflowInterceptor.java:29)
      5. com.atlassian.bamboo.util.BambooProfilingUtils.withUtilTimerStack(BambooProfilingUtils.java:49)
      6. com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor.doIntercept(BambooWorkflowInterceptor.java:28)
      6 frames
    6. XWork
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
      2. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
      2 frames