반응형
Unexpected EOF read on the socket
1. 서론
- Android 앱을 개발 중이며 Spring 기반의 서버로 Multipart 파일을 전송하다가 발생했다
- 모든 경우에 발생하는 것은 아니었고 특정 파일을 올렸을 때 에러가 출력
2. 원인
- 특정 파일이 손상된 파일이었다.
13: <%@page import="org.apache.commons.fileupload.FileItem" %>
14: <%@include file="/inc/common/common.jsp" %>
15: <%
16: FileUploadRequestWrapper req = new FileUploadRequestWrapper(request);
17:
18: int boardNo = NumberUtil.toInt(req.getParameter("boardNo"));
19: String oldAttachFile = StringUtil.toString(req.getParameter("oldAttachFile"));
반응형
'Framework & Library > Spring & Egov' 카테고리의 다른 글
mybatis, mysql 사용시 pom.xml 설정 (0) | 2018.04.20 |
---|---|
[스프링/전자정부] 전자정부 프레임워크 / 파일 업로드 용량 설정 (0) | 2018.04.10 |
[Spring Boot] (스크랩) log4j2, RollingFileAppender 튜토리얼 (0) | 2018.01.17 |
(스크랩)Spring에서 REST방식 이용하기 (0) | 2018.01.17 |
(스크랩)쿠키와 세션을 이용한 자동 로그인 처리 (0) | 2018.01.09 |