Assert.notNull() 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.notNull
(source)
at org.springframework.util.Assert.notNull
(source)

Typical Exception Messages

  1. [Assertion failed] - this argument is required; it must not be null
  2. [Assertion failed] - this argument is required; it cannot be null
  3. Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping]: Factory method 'requestMappingHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcConversionService' defined in class path resource [org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method 'mvcConversionService' threw exception; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
  4. Execution exception[[IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null]]
  5. Error creating bean with name 'personRepository': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
  6. Error creating bean with name 'shopController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.jpa.service.ShopServiceImpl org.jpa.controller.ShopController.shopService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shopServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.jpa.repository.ShopRepository org.jpa.service.ShopServiceImpl.shopRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shopRepository': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
  7. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'preTVADataExtractReader' defined in com.tms.ttms.outbound.batch.PreTVABatchConfiguration: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
  8. Error creating bean with name 'sessionDao' defined in class com.echostar.sage.management.config.SageSessionMongoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.echostar.sage.dao.SessionDao]: Factory method 'sessionDao' threw exception; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
  9. nested exception is java.lang.reflect.InvocationTargetException
  10. Error creating bean with name 'reader' defined in class path resource [com/chrisbeech/batch/JobConfig.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null

Origin

Assert.notNull() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.notNull
475Web pages

Similar

Specific cases

External results for this pattern (30)

  1. khotynvia GitHub3 months ago
    Error creating bean with name 'demoApplication': Unsatisfied dependency expressed through field 'registry'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'registry' defined in class path resource [com/alipay/lookout/starter/autoConfiguration/LookoutAutoConfiguration.class]: Unsatisfied dependency expressed through method 'registry' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lookoutConfig' defined in class path resource [com/alipay/lookout/starter/autoConfiguration/LookoutAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.lookout.core.config.LookoutConfig]: Factory method 'lookoutConfig' threw exception; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
    Show stack trace
  2. naveenhirebeelvia GitHub3 months ago
    Error creating bean with name 'contractVerifierMessageExchange' defined in class path resource [org/springframework/cloud/contract/verifier/messaging/amqp/ContractVerifierAmqpAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.contract.verifier.messaging.MessageVerifier]: Factory method 'contractVerifierMessageExchange' threw exception; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
    Show stack trace
  3. Unknown authorvia hatenablog.com4 months ago
    [Assertion failed] - this argument is required; it must not be null
    Show stack trace
  4. Unknown authorvia oschina.net4 months ago
    [Assertion failed] - this argument is required; it must not be null
    Show stack trace
  5. bicstervia Stack Overflow4 months ago
    Error creating bean with name 'reader' defined in class path resource [com/chrisbeech/batch/JobConfig.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
    Show stack trace
  6. Mauro Ransolinvia Spring JIRA4 months ago
    [Assertion failed] - this argument is required; it cannot be null
    Show stack trace
  7. Geoffrey De Smetvia Spring JIRA4 months ago
    [Assertion failed] - this argument is required; it cannot be null
    Show stack trace
  8. Gary Russellvia Spring JIRA4 months ago
    [Assertion failed] - this argument is required; it must not be null
    Show stack trace
  9. Oliver Gierkevia Spring JIRA4 months ago
    nested exception is java.lang.reflect.InvocationTargetException
    Show stack trace
  10. Jennifer Boureyvia Apereo Issues4 months ago
    [Assertion failed] - this argument is required; it must not be null
    Show stack trace