본문 바로가기
Framework & Library/Spring & Egov

[스프링/전자정부프레임워크] Unexpected EOF read on the socket 에러 (스크랩)

by 뒹굴거리는프로도 2018. 1. 19.
반응형
 
 
 
 

 

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"));



http://6developer.com/19 

 

반응형