10:04:08 DEBUG [org.springframework.web.servlet.DispatcherServlet] Handler execution resulted in exception - forwarding to resolved error view: ModelAndView: reference to view with name 'cmmn/egovError'; model is {exception=org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail to save: an error occurs while saving the package : The part /docProps/core.xml failed to be saved in the stream with marshaller org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@186ab677}
org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail to save: an error occurs while saving the package : The part /docProps/core.xml failed to be saved in the stream with marshaller org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@186ab677
위의 버그 발생시
엑셀 저장시에 발생하는 에러이다.
필자의 경우에는 프로그램 소스에서 발생한 사항이 아니라(예외처리를 제대로 하지못함의 발생을 제외),
서버 설정에 의해 발생하였다.
서버는 apache + tomcat 으로 proxy 로 설정되어있다.
아파치에서 tomeout 이 발생하여 연결을 끊었기때문에 , tomcat에서 에러가 발생하게 된다.(엑셀 저장중에 발생한 에러)
아파치 config 파일에 해당 내용을 추가하면 된다. (단위 : 초)
Timeout 600
ProxyTimeout 600
<Proxy balancer://Test>
BalancerMember http://localhost:8080/Test/
BalancerMember http://localhost:8080/Test/
</Proxy>
<Location "/Test">
ProxyPass balancer://Test
ProxyPassReverse balancer://Test
</Location>
'개발 > Spring' 카테고리의 다른 글
[Spring] jasypt 안될때 [jasypt is not working] (0) | 2022.09.29 |
---|---|
[eclipse] 전자정부프레임워크 project clean 및 build시 느릴때 (0) | 2022.03.02 |
[Spring] redirect 시 파라미터 또는 객체 넘기는 방법 (0) | 2021.10.07 |
[Spring] tomcat 실행시 이벤트 실행하는 방법 (onApplicationEvent) (0) | 2021.06.03 |
[Spring] json 으로 응답시 객체에서 null인 값 제외하기 (0) | 2021.04.19 |