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. No authentication providers were found in the application context
  5. loadCaches must not return an empty Collection
  6. Unable to find JPA packages to scan, please define a @ComponentScan annotation or disable JpaAutoConfiguration
  7. [Assertion failed] - this collection must not be empty: it must contain at least 1 element
  8. headerWriters cannot be null or empty
  9. Failed to find any valid Message-handling methods named 'accept' on target class [class org.springframework.integration.file.PatternMatchingFileListFilter].
  10. getServletConfigClasses() did not return any configuration classes

Specific cases

We have seen this error pattern in the following webpages (54)

  1. bachrvia Stack Overflow6 days ago
    Failed to process import candidates for configuration class [el.dorado.App]; nested exception is java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.
  2. uxdsbjavavia GitHub1 week ago
    Failed to load ApplicationContext
  3. Error creating bean with name 'jpaMappingContext': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: At least one JPA metamodel must be present!
  4. Error creating bean with name 'jpaMappingContext': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: At least one JPA metamodel must be present!
  5. Error creating bean with name 'jpaMappingContext': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: At least one JPA metamodel must be present!
  6. zhaidervia Stack Overflow2 months ago
    Error creating bean with name 'jpaMappingContext': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: At least one JPA metamodel must be present!
  7. user610985via Stack Overflow2 months ago
    An array of topicPartitions must be provided
  8. Defozovia Stack Overflow2 months ago
    Failed to process import candidates for configuration class [pl.mypackage.Main]; nested exception is java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.
  9. zhangbovia Stack Overflow3 months ago
    Failed to process import candidates for configuration class [cn.ennwifi.storm.Application]; nested exception is java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.
  10. RoboFlaxvia Stack Overflow3 months ago
    Error creating bean with name 'jpaMappingContext': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: At least one JPA metamodel must be present!