java.lang.IllegalArgumentException: Either name or value can be specified, but not both

Spring JIRA | ofbiz | 4 months ago
  1. 0

    Feign client broken in Boot 1.4 ?

    GitHub | 5 months ago | kdvolder
    java.lang.IllegalArgumentException: Either name or value can be specified, but not both
  2. 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
  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

    Spring Boot - Windows - Default Job 307: Job result summary - Spring CI

    spring.io | 1 year ago
    java.lang.IllegalArgumentException: Only the target location may be specified
  6. 0

    How to return JSON data from spring Controller using @ResponseBody

    Stack Overflow | 1 year ago | Zahid Khan
    java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.ArrayList

  1. batwalrus76 1 times, last 1 week ago
  2. kjhdofjosvs 1 times, last 3 weeks ago
  3. j.kienzle 1 times, last 1 month ago
  4. Luka 2 times, last 2 months ago
  5. andyglick 1 times, last 3 months ago
4 more registered users
29 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.IllegalArgumentException

    Either name or value can be specified, but not both

    at org.springframework.util.Assert.isTrue()
  2. Spring Core
    Assert.isTrue
    1. org.springframework.util.Assert.isTrue(Assert.java:68)
    1 frame
  3. org.springframework.cloud
    FeignClientsRegistrar.registerBeanDefinitions
    1. org.springframework.cloud.netflix.feign.FeignClientsRegistrar.validate(FeignClientsRegistrar.java:193)
    2. org.springframework.cloud.netflix.feign.FeignClientsRegistrar.registerFeignClient(FeignClientsRegistrar.java:173)
    3. org.springframework.cloud.netflix.feign.FeignClientsRegistrar.registerFeignClients(FeignClientsRegistrar.java:162)
    4. org.springframework.cloud.netflix.feign.FeignClientsRegistrar.registerBeanDefinitions(FeignClientsRegistrar.java:87)
    4 frames
  4. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsFromRegistrars(ConfigurationClassBeanDefinitionReader.java:352)
    2. org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:143)
    3. org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:116)
    4. org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:333)
    5. org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:243)
    6. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273)
    7. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:98)
    8. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)
    9. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523)
    9 frames