R XLConnect:loadWorkbook 警告 - "An illegal reflective access operation has occurred"
R XLConnect: loadWorkbook warnings - "An illegal reflective access operation has occurred"
我正在使用 XLConnect 读取 R(版本 3.4.4)中的 xlsx 文件,但我收到以下警告。我认为它们可能与 Java 有关,但我不是 Java 用户,我不知道如何让它们消失。谢谢!
MWE 与任何 xlsx 文件:
library(XLConnect)
infile <- 'any.xlsx'
wb <- loadWorkbook(infile)
mydf <- readWorksheet(wb, sheet=1, region='A1:AS91', header=TRUE, check.names=FALSE, useCachedValues=TRUE)
警告:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.poi.openxml4j.util.ZipSecureFile (file:/usr/local/lib/R/site-library/XLConnect/java/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
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
根据错误报告,我会告诉您使用的是 Java 9 或更新版本,不是吗?
此问题将在下一个版本的 Apache POI 4.0.0 中解决,此警告源自此。
Apache POI 4.0.0 发布后,XLConnect 的维护者将能够升级其依赖项。届时你将不得不升级你项目中的XLConnect版本,警告将不会再出现。
或者,如果您不依赖最新版本来满足任何其他需求,您可以将已安装的 Java 运行时环境降级到 JRE 1.8.161。
我正在使用 XLConnect 读取 R(版本 3.4.4)中的 xlsx 文件,但我收到以下警告。我认为它们可能与 Java 有关,但我不是 Java 用户,我不知道如何让它们消失。谢谢!
MWE 与任何 xlsx 文件:
library(XLConnect)
infile <- 'any.xlsx'
wb <- loadWorkbook(infile)
mydf <- readWorksheet(wb, sheet=1, region='A1:AS91', header=TRUE, check.names=FALSE, useCachedValues=TRUE)
警告:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.poi.openxml4j.util.ZipSecureFile (file:/usr/local/lib/R/site-library/XLConnect/java/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
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
根据错误报告,我会告诉您使用的是 Java 9 或更新版本,不是吗?
此问题将在下一个版本的 Apache POI 4.0.0 中解决,此警告源自此。
Apache POI 4.0.0 发布后,XLConnect 的维护者将能够升级其依赖项。届时你将不得不升级你项目中的XLConnect版本,警告将不会再出现。
或者,如果您不依赖最新版本来满足任何其他需求,您可以将已安装的 Java 运行时环境降级到 JRE 1.8.161。