Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    If you're unit testing, you should instantiate only the service and mock the dependencies. If you're testing integration, you should add all the mocking to the configurations file.

Solutions on the web

via Spring JIRA by Morten Holm, 2 years ago
[Assertion failed] - this argument is required; it must not be null
via Spring JIRA by Morten Holm, 1 year ago
[Assertion failed] - this argument is required; it must not be null
via Pentaho BI Platform Tracking by Emanuel Teixeira, 1 year ago
[Assertion failed] - this argument is required; it must not be null
via Pentaho BI Platform Tracking by Emanuel Teixeira, 2 years ago
[Assertion failed] - this argument is required; it must not be null
via Google Groups by Kendall, Elliot, 8 months ago
Resource must not be null
java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null	at org.springframework.util.Assert.notNull(Assert.java:112)	at org.springframework.util.Assert.notNull(Assert.java:123)	at org.springframework.config.java.internal.enhancement.ThreadLocalReader.accept(ThreadLocalReader.java:49)	at org.springframework.config.java.internal.enhancement.ThreadLocalReader.accept(ThreadLocalReader.java:62)	at org.springframework.config.java.internal.enhancement.ThreadLocalReader.accept(ThreadLocalReader.java:62)	at org.springframework.config.java.internal.enhancement.ThreadLocalReader.accept(ThreadLocalReader.java:62)	at org.springframework.config.java.internal.enhancement.ThreadLocalReader.accept(ThreadLocalReader.java:44)	at org.springframework.config.java.internal.enhancement.CglibCallbackThreadLocalJanitor.destroy(CglibCallbackThreadLocalJanitor.java:29)	at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:151)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:456)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:434)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:407)	at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:854)	at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:832)	at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:795)	at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:361)	at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:70)	at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3893)	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4525)	at org.apache.catalina.core.ContainerBase.destroy(ContainerBase.java:1134)	at org.apache.catalina.core.StandardContext.destroy(StandardContext.java:4615)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:585)	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)	at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)	at org.jboss.web.tomcat.service.TomcatDeployer.performUndeployInternal(TomcatDeployer.java:454)	at org.jboss.web.tomcat.service.TomcatDeployer.performUndeploy(TomcatDeployer.java:425)	at org.jboss.web.AbstractWebDeployer.stop(AbstractWebDeployer.java:422)	at org.jboss.web.WebModule.stopModule(WebModule.java:100)	at org.jboss.web.WebModule.stopService(WebModule.java:66)	at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:315)	at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:247)	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:585)	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)	at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)	at $Proxy0.stop(Unknown Source)	at org.jboss.system.ServiceController.stop(ServiceController.java:508)	at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:585)	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)	at $Proxy45.stop(Unknown Source)	at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:498)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:585)	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)	at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)	at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)	at org.jboss.ws.integration.jboss42.DeployerInterceptor.stop(DeployerInterceptor.java:111)	at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.stop(SubDeployerInterceptorSupport.java:196)	at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:99)	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)	at $Proxy46.stop(Unknown Source)	at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:667)	at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:638)	at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:516)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:585)	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)	at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:1058)	at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:1033)	at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:996)