728x90
기존에 Java poi 3.17을 사용했던 소스에서 아래와 같은 Warning message가 떴다.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.poi.openxml4j.util.ZipSecureFile$1 (rsrc:poi-ooxml-3.17.jar) to field java.io.FilterInputStream.in
WARNING: Please consider reporting this to the maintainers of org.apache.poi.openxml4j.util.ZipSecureFile$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Error는 아니지만 찜찜하게 Warning메시지가 로그에 계속 같이 남아서 해결해보기로 결정했다.!
다른 해결방법들도 있지만 poi 4.1.2로 변경하면 된다고 해서 이 방법으로 수정해보기로 했다.
우선 poi 4.1.2 버전으로 업데이트 하기 위해서 아래 사이트에서 다운로드를 한다.
https://archive.apache.org/dist/poi/release/bin/
bin위치로 가서 poi-bin-4.1.2-20200217.zip 파일을 다운로드한다.
zip 파일을 다운받아서 압축을 풀어보면 여러 jar파일들이 있는데, 내가 필요로하는 파일들을 받아주면 된다.
원래 포함했던 lib도 있고 실행해보니 필요한 파일들도 있어서 총 이렇게 7개를 업데이트해주었다.
Build path를 다시 수정해서 등록해주고 Export하니 정상 작동하고 Warning message는 사라졌다!
728x90
'Java > JAVA' 카테고리의 다른 글
Java poi - powerpoint 사용 시 "Zip bomb detected" Error 해결방법 (1) | 2024.09.13 |
---|---|
[JAVA-SWT] Eclipse에서 swt library추가하여 JAVA 프로젝트 생성 (0) | 2023.07.06 |