javax.servlet.ServletException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Whenever you try to add some kind of proxy/aspect to a controller bean (@Controller), for example, adding @Transactional to the method generates the following exception: DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Testing handler adapter org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter@151b413]> DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Testing handler adapter [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@10568cb]> DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Testing handler adapter [org.springframework.web.servlet.mvc.throwaway.ThrowawayControllerHandlerAdapter@22f963]> DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Testing handler adapter [org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter@22ef60]> 2007-10-29 18:47:02,835 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Exception thrown in getLastModified> javax.servlet.ServletException: No adapter for handler [XController@e24bd0]: Does your handler implement a supported interface like Controller? at org.springframework.web.servlet.DispatcherServlet.getHandlerAdapter(DispatcherServlet.java:1068) at org.springframework.web.servlet.DispatcherServlet.getLastModified(DispatcherServlet.java:938) at javax.servlet.http.HttpServlet.service(HttpServlet.java:714) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) It seems it cannot detect the annotations (RequestMapping, InitBinder) as present (are they visible in the JDK proxy?). It's a shame that these controllers cannot support advices. I know that extending the old class hierarchy does not allow this but, with all the work that has been done, it seemed like a good time to add this kind of support.
    via by Jose Noheda,
  • Whenever you try to add some kind of proxy/aspect to a controller bean (@Controller), for example, adding @Transactional to the method generates the following exception: DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Testing handler adapter org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter@151b413]> DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Testing handler adapter [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@10568cb]> DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Testing handler adapter [org.springframework.web.servlet.mvc.throwaway.ThrowawayControllerHandlerAdapter@22f963]> DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Testing handler adapter [org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter@22ef60]> 2007-10-29 18:47:02,835 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Exception thrown in getLastModified> javax.servlet.ServletException: No adapter for handler [XController@e24bd0]: Does your handler implement a supported interface like Controller? at org.springframework.web.servlet.DispatcherServlet.getHandlerAdapter(DispatcherServlet.java:1068) at org.springframework.web.servlet.DispatcherServlet.getLastModified(DispatcherServlet.java:938) at javax.servlet.http.HttpServlet.service(HttpServlet.java:714) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) It seems it cannot detect the annotations (RequestMapping, InitBinder) as present (are they visible in the JDK proxy?). It's a shame that these controllers cannot support advices. I know that extending the old class hierarchy does not allow this but, with all the work that has been done, it seemed like a good time to add this kind of support.
    via by Jose Noheda,
  • Issue on using Spring MVC framework on GAE.
    via by xueqiang.mi,
  • No adapter for handler in Spring MVC
    via Stack Overflow by nablik
    ,
    • javax.servlet.ServletException: No adapter for handler [XController@e24bd0]: Does your handler implement a supported interface like Controller? at org.springframework.web.servlet.DispatcherServlet.getHandlerAdapter(DispatcherServlet.java:1068) at org.springframework.web.servlet.DispatcherServlet.getLastModified(DispatcherServlet.java:938) at javax.servlet.http.HttpServlet.service(HttpServlet.java:714) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,