java.lang.IllegalArgumentException: Class must not be null

Spring JIRA | Keith Donald | 10 years ago
  1. 0

    If a method key's class property is null (when a bean-action method can't be resolved): 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.util.ClassUtils.getShortName(ClassUtils.java:296) at org.springframework.binding.method.MethodKey.parameterTypesString(MethodKey.java:243) at org.springframework.binding.method.MethodKey.toString(MethodKey.java:233) at java.lang.String.valueOf(String.java:2615) at java.lang.StringBuffer.append(StringBuffer.java:220) at org.springframework.binding.method.InvalidMethodKeyException.<init>(InvalidMethodKeyException.java:39) at org.springframework.binding.method.MethodKey.resolveMethod(MethodKey.java:115) at org.springframework.binding.method.MethodKey.getMethod(MethodKey.java:95) at org.springframework.webflow.action.BeanInvokingActionFactory.createBeanInvokingAction(BeanInvokingActionFactory.java:88) 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.xml.XmlFlowBuilder.buildStates(XmlFlowBuilder.java:354) 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.FlowExecutorImpl.launch(FlowExecutorImpl.java:204) at org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:131) at org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:170) 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 org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:354) 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.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 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 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:613) If a bean action throws an exception: SEVERE: Servlet.service() for servlet accounts threw exception java.lang.reflect.InvocationTargetException 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.springframework.binding.method.MethodInvoker.invoke(MethodInvoker.java:96) at org.springframework.webflow.action.AbstractBeanInvokingAction.doExecute(AbstractBeanInvokingAction.java:132) at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:203) at org.springframework.webflow.engine.AnnotatedAction.execute(AnnotatedAction.java:142) at org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:61) at org.springframework.webflow.engine.ActionList.execute(ActionList.java:160) at org.springframework.webflow.engine.ViewState.refresh(ViewState.java:114) at org.springframework.webflow.engine.impl.FlowExecutionImpl.refresh(FlowExecutionImpl.java:241) at org.springframework.webflow.executor.FlowExecutorImpl.refresh(FlowExecutorImpl.java:273) at org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:122) at org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:170) 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 org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:354) 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.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 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 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:613)

    Spring JIRA | 10 years ago | Keith Donald
    java.lang.IllegalArgumentException: Class must not be null
  2. 0

    If a method key's class property is null (when a bean-action method can't be resolved): 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.util.ClassUtils.getShortName(ClassUtils.java:296) at org.springframework.binding.method.MethodKey.parameterTypesString(MethodKey.java:243) at org.springframework.binding.method.MethodKey.toString(MethodKey.java:233) at java.lang.String.valueOf(String.java:2615) at java.lang.StringBuffer.append(StringBuffer.java:220) at org.springframework.binding.method.InvalidMethodKeyException.<init>(InvalidMethodKeyException.java:39) at org.springframework.binding.method.MethodKey.resolveMethod(MethodKey.java:115) at org.springframework.binding.method.MethodKey.getMethod(MethodKey.java:95) at org.springframework.webflow.action.BeanInvokingActionFactory.createBeanInvokingAction(BeanInvokingActionFactory.java:88) 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.xml.XmlFlowBuilder.buildStates(XmlFlowBuilder.java:354) 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.FlowExecutorImpl.launch(FlowExecutorImpl.java:204) at org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:131) at org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:170) 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 org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:354) 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.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 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 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:613) If a bean action throws an exception: SEVERE: Servlet.service() for servlet accounts threw exception java.lang.reflect.InvocationTargetException 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.springframework.binding.method.MethodInvoker.invoke(MethodInvoker.java:96) at org.springframework.webflow.action.AbstractBeanInvokingAction.doExecute(AbstractBeanInvokingAction.java:132) at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:203) at org.springframework.webflow.engine.AnnotatedAction.execute(AnnotatedAction.java:142) at org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:61) at org.springframework.webflow.engine.ActionList.execute(ActionList.java:160) at org.springframework.webflow.engine.ViewState.refresh(ViewState.java:114) at org.springframework.webflow.engine.impl.FlowExecutionImpl.refresh(FlowExecutionImpl.java:241) at org.springframework.webflow.executor.FlowExecutorImpl.refresh(FlowExecutorImpl.java:273) at org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:122) at org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:170) 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 org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:354) 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.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 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 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:613)

    Spring JIRA | 10 years ago | Keith Donald
    java.lang.IllegalArgumentException: Class must not be null
  3. 0

    Cannot setup lightadmin with Spring 4

    GitHub | 2 years ago | cikorka
    java.lang.IllegalArgumentException: Class must not be null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.io.FileNotFoundException: class path resource [org/springsource/restbucks/config/app/ApplicationConfig12345.class] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:157) at org.springframework.ide.eclipse.core.type.asm.SimpleClassReaderFactory.getClassReader(SimpleClassReaderFactory.java:67) at org.springframework.ide.eclipse.core.type.asm.CachingClassReaderFactory.getClassReader(CachingClassReaderFactory.java:61) at org.springframework.ide.eclipse.core.type.asm.SimpleClassReaderFactory.getClassReader(SimpleClassReaderFactory.java:63) at org.springframework.ide.eclipse.core.java.classreading.JdtConnectedMetadataReader.<init>(JdtConnectedMetadataReader.java:41) at org.springframework.ide.eclipse.core.java.classreading.JdtMetadataReaderFactory.getMetadataReader(JdtMetadataReaderFactory.java:56) at org.springframework.ide.eclipse.core.java.classreading.CachingJdtMetadataReaderFactory.getMetadataReader(CachingJdtMetadataReaderFactory.java:38) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig.registerBean(BeansJavaConfig.java:279) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig$1.call(BeansJavaConfig.java:148) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig$1.call(BeansJavaConfig.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) !ENTRY org.springframework.ide.eclipse.beans.core 1 0 2013-04-16 14:43:54.920 !MESSAGE Error occured processing 'org.springsource.restbucks.config.app.ApplicationConfig12345' !STACK 0 java.lang.IllegalArgumentException: Class name must not be empty at org.springframework.util.Assert.hasLength(Assert.java:136) at org.springframework.util.ClassUtils.getShortName(ClassUtils.java:417) at org.springframework.context.annotation.AnnotationBeanNameGenerator.buildDefaultBeanName(AnnotationBeanNameGenerator.java:144) at org.springframework.context.annotation.AnnotationBeanNameGenerator.buildDefaultBeanName(AnnotationBeanNameGenerator.java:130) at org.springframework.context.annotation.AnnotationBeanNameGenerator.generateBeanName(AnnotationBeanNameGenerator.java:76) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig.registerBean(BeansJavaConfig.java:295) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig$1.call(BeansJavaConfig.java:148) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig$1.call(BeansJavaConfig.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722)

    SpringSource Issue Tracker | 4 years ago | Martin Lippert (c)
    java.lang.IllegalArgumentException: Class name must not be empty
  6. 0

    java.io.FileNotFoundException: class path resource [org/springsource/restbucks/config/app/ApplicationConfig12345.class] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:157) at org.springframework.ide.eclipse.core.type.asm.SimpleClassReaderFactory.getClassReader(SimpleClassReaderFactory.java:67) at org.springframework.ide.eclipse.core.type.asm.CachingClassReaderFactory.getClassReader(CachingClassReaderFactory.java:61) at org.springframework.ide.eclipse.core.type.asm.SimpleClassReaderFactory.getClassReader(SimpleClassReaderFactory.java:63) at org.springframework.ide.eclipse.core.java.classreading.JdtConnectedMetadataReader.<init>(JdtConnectedMetadataReader.java:41) at org.springframework.ide.eclipse.core.java.classreading.JdtMetadataReaderFactory.getMetadataReader(JdtMetadataReaderFactory.java:56) at org.springframework.ide.eclipse.core.java.classreading.CachingJdtMetadataReaderFactory.getMetadataReader(CachingJdtMetadataReaderFactory.java:38) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig.registerBean(BeansJavaConfig.java:279) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig$1.call(BeansJavaConfig.java:148) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig$1.call(BeansJavaConfig.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) !ENTRY org.springframework.ide.eclipse.beans.core 1 0 2013-04-16 14:43:54.920 !MESSAGE Error occured processing 'org.springsource.restbucks.config.app.ApplicationConfig12345' !STACK 0 java.lang.IllegalArgumentException: Class name must not be empty at org.springframework.util.Assert.hasLength(Assert.java:136) at org.springframework.util.ClassUtils.getShortName(ClassUtils.java:417) at org.springframework.context.annotation.AnnotationBeanNameGenerator.buildDefaultBeanName(AnnotationBeanNameGenerator.java:144) at org.springframework.context.annotation.AnnotationBeanNameGenerator.buildDefaultBeanName(AnnotationBeanNameGenerator.java:130) at org.springframework.context.annotation.AnnotationBeanNameGenerator.generateBeanName(AnnotationBeanNameGenerator.java:76) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig.registerBean(BeansJavaConfig.java:295) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig$1.call(BeansJavaConfig.java:148) at org.springframework.ide.eclipse.beans.core.internal.model.BeansJavaConfig$1.call(BeansJavaConfig.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722)

    SpringSource Issue Tracker | 4 years ago | Martin Lippert
    java.lang.IllegalArgumentException: Class name must not be empty

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Class must not be null

      at org.springframework.util.Assert.notNull()
    2. Spring Core
      ClassUtils.getShortName
      1. org.springframework.util.Assert.notNull(Assert.java:113)
      2. org.springframework.util.ClassUtils.getQualifiedName(ClassUtils.java:330)
      3. org.springframework.util.ClassUtils.getShortName(ClassUtils.java:296)
      3 frames
    3. Spring Binding
      MethodKey.toString
      1. org.springframework.binding.method.MethodKey.parameterTypesString(MethodKey.java:243)
      2. org.springframework.binding.method.MethodKey.toString(MethodKey.java:233)
      2 frames
    4. Java RT
      StringBuffer.append
      1. java.lang.String.valueOf(String.java:2615)
      2. java.lang.StringBuffer.append(StringBuffer.java:220)
      2 frames
    5. Spring Binding
      MethodKey.getMethod
      1. org.springframework.binding.method.InvalidMethodKeyException.<init>(InvalidMethodKeyException.java:39)
      2. org.springframework.binding.method.MethodKey.resolveMethod(MethodKey.java:115)
      3. org.springframework.binding.method.MethodKey.getMethod(MethodKey.java:95)
      3 frames
    6. Spring Web Flow
      BeanInvokingActionFactory.createBeanInvokingAction
      1. org.springframework.webflow.action.BeanInvokingActionFactory.createBeanInvokingAction(BeanInvokingActionFactory.java:88)
      1 frame
    7. Spring Web Flow
      XmlFlowBuilder.buildStates
      1. org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseBeanInvokingAction(XmlFlowBuilder.java:747)
      2. org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseAnnotatedBeanInvokingAction(XmlFlowBuilder.java:737)
      3. org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseAnnotatedActions(XmlFlowBuilder.java:700)
      4. org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseRenderActions(XmlFlowBuilder.java:637)
      5. org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseAndAddViewState(XmlFlowBuilder.java:597)
      6. org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseAndAddStateDefinitions(XmlFlowBuilder.java:564)
      7. org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.buildStates(XmlFlowBuilder.java:354)
      7 frames
    8. Spring Web Flow
      FlowExecutorImpl.launch
      1. org.springframework.webflow.engine.builder.FlowAssembler.directAssembly(FlowAssembler.java:149)
      2. org.springframework.webflow.engine.builder.FlowAssembler.assembleFlow(FlowAssembler.java:131)
      3. org.springframework.webflow.engine.builder.RefreshableFlowDefinitionHolder.assembleFlow(RefreshableFlowDefinitionHolder.java:173)
      4. org.springframework.webflow.engine.builder.RefreshableFlowDefinitionHolder.getFlowDefinition(RefreshableFlowDefinitionHolder.java:93)
      5. org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl.getFlowDefinition(FlowDefinitionRegistryImpl.java:126)
      6. org.springframework.webflow.executor.FlowExecutorImpl.launch(FlowExecutorImpl.java:204)
      6 frames
    9. Spring Web Flow
      FlowController.handleRequestInternal
      1. org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:131)
      2. org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:170)
      2 frames
    10. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
      2. org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
      3. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:819)
      4. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:754)
      5. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:399)
      6. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:354)
      6 frames
    11. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      2 frames
    12. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      8 frames
    13. Grizzly HTTP
      LeaderFollowerWorkerThread.runIt
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      2. org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      4. org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      4 frames
    14. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      1 frame
    15. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:613)
      1 frame