java.lang.IllegalArgumentException: name must not be empty nor null

GitHub | ericbottard | 3 months ago
  1. 0

    Error when invoking completion

    GitHub | 3 months ago | ericbottard
    java.lang.IllegalArgumentException: name must not be empty nor null
  2. 0

    Add support for @GetMapping, @PostMapping etc. introduced in Spring 4.3 in ControllerLinkBuilder

    GitHub | 4 months ago | xak2000
    java.lang.IllegalArgumentException: 'uriTemplate' must not be null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Spring Boot setting up MongoDB repository

    Stack Overflow | 4 months ago | Em Ae
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bookService': Unsatisfied dependency expressed through field 'bookRepository': Error creating bean with name 'bookRepository': Cannot resolve reference to bean 'mongoTemplate' while setting bean property 'mongoOperations'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoTemplate' defined in class path resource [com/project/path/to/config/DbConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.mongodb.core.MongoTemplate]: Factory method 'mongoTemplate' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoDbFactory' defined in class path resource [com/project/path/to/config/DbConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.mongodb.MongoDbFactory]: Factory method 'mongoDbFactory' threw exception; nested exception is java.lang.IllegalArgumentException: Database name must not be empty; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookRepository': Cannot resolve reference to bean 'mongoTemplate' while setting bean property 'mongoOperations'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoTemplate' defined in class path resource [com/project/path/to/config/DbConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.mongodb.core.MongoTemplate]: Factory method 'mongoTemplate' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoDbFactory' defined in class path resource [com/project/path/to/config/DbConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.mongodb.MongoDbFactory]: Factory method 'mongoDbFactory' threw exception; nested exception is java.lang.IllegalArgumentException: Database name must not be empty
  5. 0

    mongoProperties properties are null

    Stack Overflow | 3 months ago | user3034559
    java.lang.IllegalArgumentException: Database name must not be empty

  1. tvrmsmith 1 times, last 1 month ago
  2. Luka 2 times, last 2 months ago
  3. tvrmsmith 1 times, last 4 months ago
  4. andyglick 4 times, last 5 months ago
7 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

    name must not be empty nor null

    at org.springframework.util.Assert.hasText()
  2. Spring Core
    Assert.hasText
    1. org.springframework.util.Assert.hasText(Assert.java:168)[spring-core-4.2.6.RELEASE.jar!/:4.2.6.RELEASE]
    1 frame
  3. org.springframework.cloud
    AbstractRdbmsKeyValueRepository$$FastClassBySpringCGLIB$$2d5a2a81.invoke
    1. org.springframework.cloud.dataflow.server.repository.AbstractRdbmsKeyValueRepository.findOne(AbstractRdbmsKeyValueRepository.java:157)[spring-cloud-dataflow-server-core-1.0.1.BUILD-SNAPSHOT.jar!/:1.0.1.BUILD-SNAPSHOT]
    2. org.springframework.cloud.dataflow.server.repository.AbstractRdbmsKeyValueRepository.findOne(AbstractRdbmsKeyValueRepository.java:50)[spring-cloud-dataflow-server-core-1.0.1.BUILD-SNAPSHOT.jar!/:1.0.1.BUILD-SNAPSHOT]
    3. org.springframework.cloud.dataflow.server.repository.AbstractRdbmsKeyValueRepository$$FastClassBySpringCGLIB$$2d5a2a81.invoke(<generated>)[spring-cloud-dataflow-server-core-1.0.1.BUILD-SNAPSHOT.jar!/:1.0.1.BUILD-SNAPSHOT]
    3 frames