Wednesday 17 February 2016

Ho to resolve "org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException:..."

If you find any such error as like below

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: No converter found for return value of type: class com.xxx.xxx
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:981)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:860)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:845)


then please add the below lines of code in the project specific applicationcontext.xml, the primary reason may be class may not be loaded

<context:component-scan base-package="com.xxx.xxx" />
<mvc:annotation-driven />

No comments:

Post a Comment