Assert.notEmpty() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
Javadoc
Thrown to indicate that a method has been passed an illegal or inappropriate argument. @author unascribed @since JDK1.0
at org.springframework.util.Assert.notEmpty
(source)

Typical Exception Messages

  1. At least one JPA metamodel must be present!
  2. No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.
  3. The flow id array is required
  4. Sources must not be empty
  5. No authentication providers were found in the application context
  6. 'values' must not be empty
  7. Unable to find JPA packages to scan, please define a @ComponentScan annotation or disable JpaAutoConfiguration
  8. [Assertion failed] - this collection must not be empty: it must contain at least 1 element
  9. loadCaches must not return an empty Collection
  10. Failed to find any valid Message-handling methods named 'accept' on target class [class org.springframework.integration.file.PatternMatchingFileListFilter].

Specific cases

External results for this pattern (54)

  1. getServletConfigClasses() did not return any configuration classes
    Show stack trace
  2. At least one JPA metamodel must be present!
    Show stack trace
  3. MOHAK Rvia Google Groups3 days ago
    [Assertion failed] - this collection must not be empty: it must contain at least 1 element
    Show stack trace
  4. MOHAK Rvia Google Groups3 days ago
    [Assertion failed] - this collection must not be empty: it must contain at least 1 element
    Show stack trace
  5. [Assertion failed] - this collection must not be empty: it must contain at least 1 element
    Show stack trace
  6. Tommolovia Stack Overflow6 days ago
    'values' must not be empty
    Show stack trace
  7. Defozovia Stack Overflow1 week ago
    No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.
    Show stack trace
  8. No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.
    Show stack trace
  9. At least one JPA metamodel must be present!
    Show stack trace