java.lang.IllegalArgumentException: Callable required

Spring JIRA | Peter De Wachter | 4 years ago
  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 | 4 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 | 4 years ago | Peter De Wachter
    java.lang.IllegalArgumentException: Callable required
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring file upload by ajax

    Stack Overflow | 3 years ago | kris14an
    java.lang.IllegalArgumentException: Expected MultipartHttpServletRequest: is a MultipartResolver configured?
  6. 0

    Spring websocket encounter "Ignoring message, no principal info available" error

    Stack Overflow | 2 years ago | zizibj
    java.lang.IllegalArgumentException: No 'javax.websocket.server.ServerContainer' ServletContext attribute. Are you running in a Servlet container that supports JSR-356?

  1. batwalrus76 4 times, last 2 weeks ago
  2. serious2monkeys 1 times, last 2 weeks ago
  3. tvrmsmith 1 times, last 4 weeks ago
  4. fima 1 times, last 2 months ago
  5. dafman 2 times, last 2 months ago
8 more registered users
87 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