Assert.notEmpty() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
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
IllegalArgumentException if the object array is @code null or contains no elements

Matching stack traces (54)

  1. bachrvia Stack Overflow5 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 GitHub6 days ago
  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!

See Also

Children

  • 15 web pages  - AbstractAutowireCapableBeanFactory.initializeBean() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notEmpty()
        at org.springframework.data.jpa.mapping.JpaMetamodelMappingContext.<init>()
        at org.springframework.data.jpa.repository.config.JpaMetamodelMappingContextFactoryBean.createInstance()
        at org.springframework.data.jpa.repository.config.JpaMetamodelMappingContextFactoryBean.createInstance()
        at org.springframework.beans.factory.config.AbstractFactoryBean.afterPropertiesSet()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean()
  • 6 web pages  - SpringApplication.run() has thrown a BeanDefinitionStoreException
    org.springframework.beans.factory.BeanDefinitionStoreException
        at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors()
        at org.springframework.context.annotation.ConfigurationClassParser.parse()
        at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions()
        at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry()
        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors()
        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors()
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors()
        at org.springframework.context.support.AbstractApplicationContext.refresh()
        at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh()
        at org.springframework.boot.SpringApplication.refresh()
        at org.springframework.boot.SpringApplication.refreshContext()
        at org.springframework.boot.SpringApplication.run()
        at org.springframework.boot.SpringApplication.run()
        at org.springframework.boot.SpringApplication.run()
    Caused by: java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notEmpty()
        at org.springframework.boot.autoconfigure.AutoConfigurationImportSelector.getCandidateConfigurations()
        at org.springframework.boot.autoconfigure.AutoConfigurationImportSelector.selectImports()
        at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors()
  • 5 web pages  - Assert.notEmpty() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notEmpty()
        at org.springframework.util.Assert.notEmpty()
  • 3 web pages  - AbstractApplicationContext.refresh() has thrown a BeanDefinitionStoreException
    org.springframework.beans.factory.BeanDefinitionStoreException
        at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors()
        at org.springframework.context.annotation.ConfigurationClassParser.parse()
        at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions()
        at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry()
        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors()
        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors()
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors()
        at org.springframework.context.support.AbstractApplicationContext.refresh()
    Caused by: java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notEmpty()
        at org.springframework.boot.autoconfigure.EnableAutoConfigurationImportSelector.getCandidateConfigurations()
        at org.springframework.boot.autoconfigure.EnableAutoConfigurationImportSelector.selectImports()
        at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors()
  • 2 web pages  - MockHttpServletRequestBuilder.addToMultiValueMap() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notEmpty()
        at org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder.addToMultiValueMap()
  • 2 web pages  - AbstractCacheManager.afterPropertiesSet() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notEmpty()
        at org.springframework.cache.support.AbstractCacheManager.afterPropertiesSet()
  • 2 web pages  - AbstractAutowireCapableBeanFactory.initializeBean() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notEmpty()
        at org.springframework.security.config.NamespaceAuthenticationManager.afterPropertiesSet()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean()
  • 2 web pages  - JpaBaseConfiguration.entityManagerFactory() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notEmpty()
        at org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.getPackagesToScan()
        at org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.entityManagerFactory()
  • 1 web pages  - SpringApplication.run() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notEmpty()
        at org.springframework.boot.SpringApplication.prepareContext()
        at org.springframework.boot.SpringApplication.run()
  • 1 web pages  - MessagingMethodInvokerHelper.findHandlerMethodsForTarget() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notEmpty()
        at org.springframework.integration.util.MessagingMethodInvokerHelper.findHandlerMethodsForTarget()

Typical exception messages

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