2017-04-25 1 views
-1

JSP로 양식을 제출하는 중에 IllegalArgumentException이 발생합니다. 이 요청을 spring mvc 컨트롤러에 전달하려고합니다. 메시지가 분명하지만, 나는 무엇을 바꿔야하는지 이해하지 못합니다. 는 여기가에 onSubmitMethod의 매개 변수를 변경 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

+0

컨트롤러의 'onSubmitAction' 메소드를 표시 할 수 있습니까? – fujy

답변

0

의 예외입니다 :

protected String onSubmitAction(HttpServletRequest request, 
     HttpServletResponse response, @ModelAttribute CRequestForm command, BindingResult errors) 
     throws Exception { 

하고 문제가 해결되었습니다.

관련 문제