java.lang.IllegalArgumentException

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.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • "Long" (with a big 'L') is not a vaid alias... this is what was thrown: java.lang.IllegalArgumentException: The target class to convert to is required at org.springframework.util.Assert.notNull(Assert.java:113) at org.springframework.binding.convert.support.GenericConversionService.getConversionExecutor(GenericConversionService.java:139) at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseTypeConverter(XmlFlowBuilder.java:1003) at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseMappings(XmlFlowBuilder.java:964) at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseInputMapper(XmlFlowBuilder.java:927) at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.buildInputMapper(XmlFlowBuilder.java:342) at org.springframework.webflow.engine.builder.FlowAssembler.directAssembly(FlowAssembler.java:146) 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.refreshIfChanged(RefreshableFlowDefinitionHolder.java:128) at org.springframework.webflow.engine.builder.RefreshableFlowDefinitionHolder.getFlowDefinition(RefreshableFlowDefinitionHolder.java:96) at org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl.getFlowDefinition(FlowDefinitionRegistryImpl.java:126) at org.springframework.webflow.engine.impl.FlowExecutionImplStateRestorer.restoreState(FlowExecutionImplStateRestorer.java:101) at org.springframework.webflow.execution.repository.continuation.ContinuationFlowExecutionRepository.getFlowExecution(ContinuationFlowExecutionRepository.java:166) at org.springframework.webflow.executor.FlowExecutorImpl.refresh(FlowExecutorImpl.java:272) 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)
    via by Keith Donald,
  • "Long" (with a big 'L') is not a vaid alias... this is what was thrown: java.lang.IllegalArgumentException: The target class to convert to is required at org.springframework.util.Assert.notNull(Assert.java:113) at org.springframework.binding.convert.support.GenericConversionService.getConversionExecutor(GenericConversionService.java:139) at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseTypeConverter(XmlFlowBuilder.java:1003) at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseMappings(XmlFlowBuilder.java:964) at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseInputMapper(XmlFlowBuilder.java:927) at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.buildInputMapper(XmlFlowBuilder.java:342) at org.springframework.webflow.engine.builder.FlowAssembler.directAssembly(FlowAssembler.java:146) 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.refreshIfChanged(RefreshableFlowDefinitionHolder.java:128) at org.springframework.webflow.engine.builder.RefreshableFlowDefinitionHolder.getFlowDefinition(RefreshableFlowDefinitionHolder.java:96) at org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl.getFlowDefinition(FlowDefinitionRegistryImpl.java:126) at org.springframework.webflow.engine.impl.FlowExecutionImplStateRestorer.restoreState(FlowExecutionImplStateRestorer.java:101) at org.springframework.webflow.execution.repository.continuation.ContinuationFlowExecutionRepository.getFlowExecution(ContinuationFlowExecutionRepository.java:166) at org.springframework.webflow.executor.FlowExecutorImpl.refresh(FlowExecutorImpl.java:272) 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)
    via by Keith Donald,
  • iBatis SQL Maps
    via by Unknown author,
    • java.lang.IllegalArgumentException: The target class to convert to is required at org.springframework.util.Assert.notNull(Assert.java:113) at org.springframework.binding.convert.support.GenericConversionService.getConversionExecutor(GenericConversionService.java:139) at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseTypeConverter(XmlFlowBuilder.java:1003) at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseMappings(XmlFlowBuilder.java:964) at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.parseInputMapper(XmlFlowBuilder.java:927) at org.springframework.webflow.engine.builder.xml.XmlFlowBuilder.buildInputMapper(XmlFlowBuilder.java:342) at org.springframework.webflow.engine.builder.FlowAssembler.directAssembly(FlowAssembler.java:146) 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.refreshIfChanged(RefreshableFlowDefinitionHolder.java:128) at org.springframework.webflow.engine.builder.RefreshableFlowDefinitionHolder.getFlowDefinition(RefreshableFlowDefinitionHolder.java:96) at org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl.getFlowDefinition(FlowDefinitionRegistryImpl.java:126) at org.springframework.webflow.engine.impl.FlowExecutionImplStateRestorer.restoreState(FlowExecutionImplStateRestorer.java:101) at org.springframework.webflow.execution.repository.continuation.ContinuationFlowExecutionRepository.getFlowExecution(ContinuationFlowExecutionRepository.java:166) at org.springframework.webflow.executor.FlowExecutorImpl.refresh(FlowExecutorImpl.java:272) 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)

    Users with the same issue

    derprogger
    2 times, last one,
    tomthomas
    121 times, last one,
    tvrmsmith
    1 times, last one,
    osvzs
    2 times, last one,
    Unknown visitor1 times, last one,
    189 more bugmates