java.lang.IllegalArgumentException: Callable required

Spring JIRA | Peter De Wachter | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I'm experimenting with the new async servlet support and created an AsyncHandlerInterceptor with a getAsyncCallable method that always returns null. Returning null is allowed according to the JavaDoc. Now with every request Spring logs the following exception with severity error. The interceptor and the website seem to function normally, but the logging is quite annoying. 2012-06-20 17:52:15,154 ERROR [http-bio-443-exec-22] o.s.w.s.HandlerExecutionChain [HandlerExecutionChain.java:176] HandlerInterceptor.addAsyncCallables threw exception java.lang.IllegalArgumentException: Callable required at org.springframework.util.Assert.notNull(Assert.java:112) ~[spring-core-3.2.0.M1.jar:3.2.0.M1] at org.springframework.web.context.request.async.AsyncExecutionChain.addDelegatingCallable(AsyncExecutionChain.java:130) ~[spring-web-3.2.0.M1.jar:3.2.0.M1] at org.springframework.web.servlet.HandlerExecutionChain.addDelegatingCallables(HandlerExecutionChain.java:173) ~[spring-webmvc-3.2.0.M1.jar:3.2.0.M1] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:944) [spring-webmvc-3.2.0.M1.jar:3.2.0.M1] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:859) [spring-webmvc-3.2.0.M1.jar:3.2.0.M1] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:883) [spring-webmvc-3.2.0.M1.jar:3.2.0.M1] at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:792) [spring-webmvc-3.2.0.M1.jar:3.2.0.M1] [...]

    Spring JIRA | 5 years ago | Peter De Wachter
    java.lang.IllegalArgumentException: Callable required
  2. 0

    I'm experimenting with the new async servlet support and created an AsyncHandlerInterceptor with a getAsyncCallable method that always returns null. Returning null is allowed according to the JavaDoc. Now with every request Spring logs the following exception with severity error. The interceptor and the website seem to function normally, but the logging is quite annoying. 2012-06-20 17:52:15,154 ERROR [http-bio-443-exec-22] o.s.w.s.HandlerExecutionChain [HandlerExecutionChain.java:176] HandlerInterceptor.addAsyncCallables threw exception java.lang.IllegalArgumentException: Callable required at org.springframework.util.Assert.notNull(Assert.java:112) ~[spring-core-3.2.0.M1.jar:3.2.0.M1] at org.springframework.web.context.request.async.AsyncExecutionChain.addDelegatingCallable(AsyncExecutionChain.java:130) ~[spring-web-3.2.0.M1.jar:3.2.0.M1] at org.springframework.web.servlet.HandlerExecutionChain.addDelegatingCallables(HandlerExecutionChain.java:173) ~[spring-webmvc-3.2.0.M1.jar:3.2.0.M1] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:944) [spring-webmvc-3.2.0.M1.jar:3.2.0.M1] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:859) [spring-webmvc-3.2.0.M1.jar:3.2.0.M1] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:883) [spring-webmvc-3.2.0.M1.jar:3.2.0.M1] at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:792) [spring-webmvc-3.2.0.M1.jar:3.2.0.M1] [...]

    Spring JIRA | 5 years ago | Peter De Wachter
    java.lang.IllegalArgumentException: Callable required
  3. 0

    @Autowired in @Before of spring-test is null

    Stack Overflow | 2 years ago | carcaret
    java.lang.IllegalArgumentException: Target object must not be null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bean object must not be null in Spring MVC

    Stack Overflow | 3 years ago | Sivanagaiah
    java.lang.IllegalArgumentException: Bean object must not be null
  6. 0

    mybatis + spring failed to start

    Google Groups | 5 years ago | Hain Bach
    java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

  1. Axelo 1 times, last 3 weeks ago
  2. SteVio1989 3 times, last 1 month ago
  3. tvrmsmith 2 times, last 1 month ago
  4. johnxfly 1 times, last 2 months ago
  5. tomthomas 2 times, last 3 months ago
14 more registered users
81 unregistered visitors
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

    Callable required

    at org.springframework.util.Assert.notNull()
  2. Spring Core
    Assert.notNull
    1. org.springframework.util.Assert.notNull(Assert.java:112)[spring-core-3.2.0.M1.jar:3.2.0.M1]
    1 frame
  3. Spring
    AsyncExecutionChain.addDelegatingCallable
    1. org.springframework.web.context.request.async.AsyncExecutionChain.addDelegatingCallable(AsyncExecutionChain.java:130)[spring-web-3.2.0.M1.jar:3.2.0.M1]
    1 frame
  4. Spring MVC
    FrameworkServlet.doPost
    1. org.springframework.web.servlet.HandlerExecutionChain.addDelegatingCallables(HandlerExecutionChain.java:173)[spring-webmvc-3.2.0.M1.jar:3.2.0.M1]
    2. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:944)[spring-webmvc-3.2.0.M1.jar:3.2.0.M1]
    3. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:859)[spring-webmvc-3.2.0.M1.jar:3.2.0.M1]
    4. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:883)[spring-webmvc-3.2.0.M1.jar:3.2.0.M1]
    5. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:792)[spring-webmvc-3.2.0.M1.jar:3.2.0.M1]
    5 frames