在JSP中嘗試提交表單時出現IllegalArgumentException。我試圖將這個請求路由到一個spring mvc控制器。雖然信息很清楚,但我不明白需要改變的是什麼。 這裏是trace-嘗試在JSP中提交表單時出現IllegalArgumentException
Apr 25, 2017 9:29:29 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [EWeb] in context with path [/EWeb] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: argument type mismatch HandlerMethod details: Controller [com.test.pm.crequest.web.NewRequestController] Method [protected void com.test.pm.crequest.web.NewRequestController.onSubmitAction(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.Object,org.springframework.validation.BindException) throws java.lang.Exception] Resolved arguments: [0] [type=org.apache.catalina.connector.RequestFacade] [[email protected]] [1] [type=org.apache.catalina.connector.ResponseFacade] [[email protected]] [2] [type=java.lang.Object] [[email protected]] [3] [type=org.springframework.validation.BeanPropertyBindingResult] [value=org.springframework.validation.BeanPropertyBindingResult: 0 errors] ] with root cause
你可以顯示你的控制器'onSubmitAction'方法嗎? – fujy