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)

Typical Exception Messages

  1. Failed to load ApplicationContext
  2. Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.
  3. [Assertion failed] - this argument is required; it must not be null
  4. WebApplicationContext is required
  5. Error creating bean with name 'defaultServletHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.HandlerMapping]: Factory method 'defaultServletHandlerMapping' threw exception; nested exception is java.lang.IllegalArgumentException: A ServletContext is required to configure default servlet handling
  6. Bean object must not be null
  7. Resource must not be null
  8. ResourceLoader must not be null
  9. URI must not be null
  10. PersistentEntity must not be null!

Specific cases

External results for this pattern (475)

  1. Hajer Oualhavia Google Groups1 week ago
    bundle context should be set before refreshing the application context
    Show stack trace
  2. Pavel Kuzinvia Google Groups1 week ago
    bundle context should be set before refreshing the application context
    Show stack trace
  3. dirk....@googlemail.comvia Google Groups1 week ago
    bundle context should be set before refreshing the application context
    Show stack trace
  4. evaleto...@gmail.comvia Google Groups1 week ago
    bundle context should be set before refreshing the application context
    Show stack trace
  5. siddhantsorannvia GitHub2 weeks ago
    Failed to start bean 'taskLifecycleListener'; nested exception is java.lang.IllegalArgumentException: Invalid TaskExecution, ID 1 not found
    Show stack trace
  6. kigkrazyvia GitHub2 weeks ago
    Error creating bean with name 'loginController': Unsatisfied dependency expressed through field 'sysUserDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysUserDao' defined in file [F:\work_proc\ares-admin\admin\target\classes\com\reizx\ares\admin\modules\sys\dao\SysUserDao.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    Show stack trace
  7. sophiasovia GitHub3 weeks ago
    Failed to start bean 'topicMessageChannelAdapter'; nested exception is java.lang.IllegalArgumentException: Service bus topic 'topic' not existed
    Show stack trace
  8. spencergibbvia GitHub4 weeks ago
    Channel [hystrixStreamOutput] was not bound by class org.springframework.cloud.stream.test.binder.TestSupportBinder
    Show stack trace
  9. Dav1ddevia GitHub1 month ago
    Disposable bean must not be null
    Show stack trace
  10. Dav1ddevia GitHub1 month ago
    Disposable bean must not be null
    Show stack trace