Assert.notNull() 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.notNull
IllegalArgumentException if the object is @code null

Matching stack traces (596)

  1. ci-joevia Stack Overflow3 days ago
    ResourceLoader must not be null
  2. Error creating bean with name 'customConcurrentSessionFilter' defined in class path resource [com/cii/config/SecurityConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: SessionRegistry required
  3. Error creating bean with name 'projectingArgumentResolverBeanPostProcessor' defined in class path resource [org/springframework/data/web/config/ProjectingArgumentResolverRegistrar.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metaDataSourceAdvisor': Cannot resolve reference to bean 'methodSecurityMetadataSource' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aclMethodSecurityConfig': Unsatisfied dependency expressed through method 'setMethodSecurityExpressionHandler' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultMethodSecurityExpressionHandler' defined in class path resource [com/xyz/timetracker/config/AclMethodSecurityConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.access.expression.method.MethodSecurityExpressionHandler]: Circular reference involving containing bean 'aclMethodSecurityConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'defaultMethodSecurityExpressionHandler' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'aclService' defined in class path resource [com/xyz/timetracker/config/AclMethodSecurityConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.acls.jdbc.JdbcMutableAclService]: Circular reference involving containing bean 'aclMethodSecurityConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'aclService' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lookupStrategy' defined in class path resource [com/xyz/timetracker/config/AclMethodSecurityConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.acls.jdbc.LookupStrategy]: Circular reference involving containing bean 'aclMethodSecurityConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'lookupStrategy' threw exception; nested exception is java.lang.IllegalArgumentException: DataSource required
  4. SFAHvia Stack Overflow2 weeks ago
    PersistentEntity must not be null!
  5. Mustafa Paksoyvia Google Groups1 month ago
  6. DSManuelvia Stack Overflow1 month ago
    Error creating bean with name 'methodSecurityInterceptor' defined in class path resource [org/springframework/security/config/annotation/method/configuration/GlobalMethodSecurityConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: An AuthenticationManager is required

See Also

Children

  • 54 web pages  - DefaultServletHandlerConfigurer.<init>() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notNull()
        at org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer.<init>()
  • 41 web pages  - Assert.notNull() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notNull()
        at org.springframework.util.Assert.notNull()
  • 17 web pages  - ProxyAsyncConfiguration.asyncAdvisor() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notNull()
        at org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()
  • 13 web pages  - AbstractSecurityInterceptor.afterPropertiesSet() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notNull()
        at org.springframework.security.access.intercept.AbstractSecurityInterceptor.afterPropertiesSet()
  • 13 web pages  - PersistentEntityResourceAssembler.wrap() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notNull()
        at org.springframework.data.rest.webmvc.PersistentEntityResource$Builder.<init>()
        at org.springframework.data.rest.webmvc.PersistentEntityResource$Builder.<init>()
        at org.springframework.data.rest.webmvc.PersistentEntityResource.build()
        at org.springframework.data.rest.webmvc.PersistentEntityResourceAssembler.wrap()
  • 8 web pages  - AbstractApplicationContext.refresh() has thrown a BeanCreationException
    org.springframework.beans.factory.BeanCreationException
        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean()
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean()
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject()
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton()
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean()
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean()
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons()
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization()
        at org.springframework.context.support.AbstractApplicationContext.refresh()
    Caused by: java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notNull()
        at org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration.checkTemplateLocationExists()
        at sun.reflect.NativeMethodAccessorImpl.invoke0()
        at sun.reflect.NativeMethodAccessorImpl.invoke()
        at sun.reflect.DelegatingMethodAccessorImpl.invoke()
        at java.lang.reflect.Method.invoke()
        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke()
        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods()
        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization()
  • 8 web pages  - CacheAwareContextLoaderDelegate.loadContext() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notNull()
        at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal()
        at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext()
  • 7 web pages  - AbstractDelegatedExecutionApplicationContext.normalRefresh() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notNull()
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh()
  • 7 web pages  - AbstractBeanFactory.transformedBeanName() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notNull()
        at org.springframework.beans.factory.BeanFactoryUtils.transformedBeanName()
        at org.springframework.beans.factory.support.AbstractBeanFactory.transformedBeanName()
  • 7 web pages  - MockMvcBuilders.webAppContextSetup() has thrown an IllegalArgumentException
    java.lang.IllegalArgumentException
        at org.springframework.util.Assert.notNull()
        at org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder.<init>()
        at org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppContextSetup()

Typical exception messages

  1. 66 crashes - A ServletContext is required to configure default servlet handling
  2. 46 crashes - [Assertion failed] - this argument is required; it must not be null
  3. 24 crashes - Cannot load an ApplicationContext with a NULL 'contextLoader'. Consider annotating your test class with @ContextConfiguration or @ContextHierarchy.
  4. 23 crashes - @EnableAsync annotation metadata was not injected
  5. 21 crashes - No SqlMapClient specified
  6. 19 crashes - PersistentEntity must not be null!
  7. 18 crashes - Class must not be null
  8. 16 crashes - ResourceLoader must not be null
  9. 16 crashes - WebApplicationContext is required
  10. 16 crashes - An AuthenticationManager is required