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

Atlassian JIRA | Martin Meinhold | 3 years ago
  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

    After migrating to Spring 4.3.2 the value attribute set in an annotation is repeated to name attribute. In earlier version each one has its own value, but now attribute name can not be more empty. I noticed using feign clients with Eureka, and FeignClientsRegistrar throws an exception saying it: {code:java} 2016-07-28 14:43:22,812 ERROR org.springframework.boot.SpringApplication - Application startup failed java.lang.IllegalArgumentException: Either name or value can be specified, but not both at org.springframework.util.Assert.isTrue(Assert.java:68) at org.springframework.cloud.netflix.feign.FeignClientsRegistrar.validate(FeignClientsRegistrar.java:193) at org.springframework.cloud.netflix.feign.FeignClientsRegistrar.registerFeignClient(FeignClientsRegistrar.java:173) at org.springframework.cloud.netflix.feign.FeignClientsRegistrar.registerFeignClients(FeignClientsRegistrar.java:162) at org.springframework.cloud.netflix.feign.FeignClientsRegistrar.registerBeanDefinitions(FeignClientsRegistrar.java:87) at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsFromRegistrars(ConfigurationClassBeanDefinitionReader.java:352) at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:143) at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:116) at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:333) at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:243) at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273) at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:98) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523) {code}

    Spring JIRA | 4 months ago | ofbiz
    java.lang.IllegalArgumentException: Either name or value can be specified, but not both
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FeignClient startup with IllegalArgumentException: Either name or value can be specified, but not both

    GitHub | 4 months ago | hetzijzo
    java.lang.IllegalArgumentException: Either name or value can be specified, but not both
  6. 0

    Feign client broken in Boot 1.4 ?

    GitHub | 4 months ago | kdvolder
    java.lang.IllegalArgumentException: Either name or value can be specified, but not both

    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.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