java.lang.IllegalArgumentException: Class must not be null

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

,
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 Keith Donald, 1 year ago
Class must not be null
via Spring JIRA by Keith Donald, 1 year ago
Class must not be null
via alfresco.com by Unknown author, 1 year ago
via piemonte.it by Unknown author, 1 year ago
Bean object must not be null
via Stack Overflow by AL13N
, 2 years ago
Cannot load an ApplicationContext with a NULL 'contextLoader'. Consider annotating your test class with @ContextConfiguration or @ContextHierarchy.
java.lang.IllegalArgumentException: Class must not be null
at org.springframework.util.Assert.notNull(Assert.java:113)
at org.springframework.util.ClassUtils.getQualifiedName(ClassUtils.java:330)
at org.springframework.binding.method.MethodKey.parameterTypesString(MethodKey.java:243)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at org.springframework.binding.method.InvalidMethodKeyException.(InvalidMethodKeyException.java:39)
at org.springframework.binding.method.MethodKey.resolveMethod(MethodKey.java:115)
at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseBeanInvokingAction(XmlFlowBuilder.java:747)
at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseAnnotatedBeanInvokingAction(XmlFlowBuilder.java:737)
at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseAnnotatedActions(XmlFlowBuilder.java:700)
at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseRenderActions(XmlFlowBuilder.java:637)
at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseAndAddViewState(XmlFlowBuilder.java:597)
at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseAndAddStateDefinitions(XmlFlowBuilder.java:564)
at org.springframework.webflow.engine.builder.FlowAssembler.directAssembly(FlowAssembler.java:149)
at org.springframework.webflow.engine.builder.FlowAssembler.assembleFlow(FlowAssembler.java:131)
at org.springframework.webflow.engine.builder.RefreshableFlowDefinitionHolder.assembleFlow(RefreshableFlowDefinitionHolder.java:173)
at org.springframework.webflow.engine.builder.RefreshableFlowDefinitionHolder.getFlowDefinition(RefreshableFlowDefinitionHolder.java:93)
at org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl.getFlowDefinition(FlowDefinitionRegistryImpl.java:126)
at org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:131)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:819)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:754)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at java.lang.Thread.run(Thread.java:613)

Users with the same issue

8 times, 9 hours ago
2 times, 5 days ago
Once, 1 month ago
Once, 1 month ago
3 times, 2 months ago
196 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.