인프런 커뮤니티 질문&답변

oksky2957님의 프로필 이미지
oksky2957

작성한 질문수

3. 웹개발 코스 [스프링 프레임워크+전자정부 표준프레임워크]

오류낫는데요 멘붕이네요 파하~~~~~~~~~~~~~~~~~>...................

작성

·

4.9K

0

- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요!
- 먼저 유사한 질문이 있었는지 검색해보세요.
- 서로 예의를 지키며 존중하는 문화를 만들어가요.
- 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
 
 

HTTP Status 500 - Request processing failed; nested exception is org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors

 

type Exception report

message Request processing failed; nested exception is org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
Field error in object 'pageVo' on field 'pageNo': rejected value []; codes [typeMismatch.pageVo.pageNo,typeMismatch.pageNo,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [pageVo.pageNo,pageNo]; arguments []; default message [pageNo]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'pageNo'; nested exception is java.lang.NumberFormatException: For input string: ""]
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

root cause

org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
Field error in object 'pageVo' on field 'pageNo': rejected value []; codes [typeMismatch.pageVo.pageNo,typeMismatch.pageNo,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [pageVo.pageNo,pageNo]; arguments []; default message [pageNo]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'pageNo'; nested exception is java.lang.NumberFormatException: For input string: ""]
	org.springframework.web.method.annotation.ModelAttributeMethodProcessor.resolveArgument(ModelAttributeMethodProcessor.java:111)
	org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:75)
	org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:156)
	org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:117)
	org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
	org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

note The full stack trace of the root cause is available in the Apache Tomcat/8.0.32 logs.


Apache Tomcat/8.0.32

답변 1

0

개발자Park님의 프로필 이미지
개발자Park
지식공유자

안녕하세요.개발자Park입니다.

파악한내용은 제강의하고 무관한 질문내용으로 보입니다.

Field error in object 'pageVo' on field 'pageNo': rejected value []; 
codes [typeMismatch.pageVo.pageNo,typeMismatch.pageNo,typeMismatch.int,typeMismatch];
arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [pageVo.pageNo,pageNo]; arguments []; default message [pageNo]]; default message [Failed to convert property value of type
'java.lang.String' to required type 'int' for property 'pageNo';
nested exception is java.lang.NumberFormatException: For input string: ""]
ModelAttributeMethodProcessor

PageNo가 int타입이 요구되는데 string으로 넘기시는 걸로 보입니다.

Controller쪽을 확인해보심을 권장드립니다.

감사합니다.

oksky2957님의 프로필 이미지
oksky2957
질문자

확인해보겟습니다 !!!!!!!! 0_0!/

덕분에 오류 해결했네요 ㅋㅋㅋ

oksky2957님의 프로필 이미지
oksky2957

작성한 질문수

질문하기