Assert.notNull() has thrown an IllegalArgumentException
java.lang.IllegalArgumentExceptionThrown to indicate that a method has been passed an illegal or inappropriate argument. @author unascribed @since JDK1.0at org.springframework.util.Assert.notNullIllegalArgumentException if the object is @code null
Matching stack traces (596)
- ResourceLoader must not be null
- 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
- WebApplicationContext is required
- 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
- PersistentEntity must not be null!
- WebApplicationContext is required
- WebApplicationContext is required
- Unable to find the main class to restart
- 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 IllegalArgumentExceptionjava.lang.IllegalArgumentExceptionat org.springframework.util.Assert.notNull()at org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer.<init>()
- 41 web pages - Assert.notNull() has thrown an IllegalArgumentExceptionjava.lang.IllegalArgumentExceptionat org.springframework.util.Assert.notNull()at org.springframework.util.Assert.notNull()
- 17 web pages - ProxyAsyncConfiguration.asyncAdvisor() has thrown an IllegalArgumentExceptionjava.lang.IllegalArgumentExceptionat org.springframework.util.Assert.notNull()at org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()
- 13 web pages - AbstractSecurityInterceptor.afterPropertiesSet() has thrown an IllegalArgumentExceptionjava.lang.IllegalArgumentExceptionat org.springframework.util.Assert.notNull()at org.springframework.security.access.intercept.AbstractSecurityInterceptor.afterPropertiesSet()
- 13 web pages - PersistentEntityResourceAssembler.wrap() has thrown an IllegalArgumentExceptionjava.lang.IllegalArgumentExceptionat 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 BeanCreationExceptionorg.springframework.beans.factory.BeanCreationExceptionat 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.IllegalArgumentExceptionat 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 IllegalArgumentExceptionjava.lang.IllegalArgumentExceptionat 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 IllegalArgumentExceptionjava.lang.IllegalArgumentExceptionat org.springframework.util.Assert.notNull()at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh()
- 7 web pages - AbstractBeanFactory.transformedBeanName() has thrown an IllegalArgumentExceptionjava.lang.IllegalArgumentExceptionat 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 IllegalArgumentExceptionjava.lang.IllegalArgumentExceptionat 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
- 66 crashes - A ServletContext is required to configure default servlet handling
- 46 crashes - [Assertion failed] - this argument is required; it must not be null
- 24 crashes - Cannot load an ApplicationContext with a NULL 'contextLoader'. Consider annotating your test class with @ContextConfiguration or @ContextHierarchy.
- 23 crashes - @EnableAsync annotation metadata was not injected
- 21 crashes - No SqlMapClient specified
- 19 crashes - PersistentEntity must not be null!
- 18 crashes - Class must not be null
- 16 crashes - ResourceLoader must not be null
- 16 crashes - WebApplicationContext is required
- 16 crashes - An AuthenticationManager is required