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. A ServletContext is required to configure default servlet handling
  2. [Assertion failed] - this argument is required; it must not be null
  3. Cannot load an ApplicationContext with a NULL 'contextLoader'. Consider annotating your test class with @ContextConfiguration or @ContextHierarchy.
  4. Class must not be null
  5. WebApplicationContext is required
  6. @EnableAsync annotation metadata was not injected
  7. PersistentEntity must not be null!
  8. ResourceLoader must not be null
  9. Resource must not be null
  10. Target object must not be null

Specific cases

External results for this pattern (556)

  1. Mauro Ransolinvia Spring JIRA8 hours ago
    [Assertion failed] - this argument is required; it cannot be null
    Show stack trace
  2. Keith Donaldvia Spring JIRA8 hours ago
    The target class to convert to is required
    Show stack trace
  3. Keith Donaldvia Spring JIRA8 hours ago
  4. Geoffrey De Smetvia Spring JIRA8 hours ago
    [Assertion failed] - this argument is required; it cannot be null
    Show stack trace
  5. Andrew Toolanvia Spring JIRA8 hours ago
    The test method of the supplied TestContext must not be null
    Show stack trace
  6. Unknown authorvia icesoft.org8 hours ago
    Instance must not be null
    Show stack trace
  7. Julien Gragliavia Spring JIRA8 hours ago
    Owning type must not be null!
    Show stack trace
  8. Nomadeousvia Spring JIRA10 hours ago
    Authentication.getDetails() required
    Show stack trace
  9. Anis Moussavia Spring JIRA10 hours ago
    Could not obtain target method from JoinPoint: 'execution(void test.SecMethB())'
    Show stack trace