Page 1 of 1

DocumentHelper-Illegal recflective access

Posted: Mon Jan 24, 2022 2:38 pm
by jtaylor
I've been seeing this blurb print to our system printer for some time now. Any idea what I need to do to resolve it?

Code: Select all

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective acces by org.apache.poi.util.DocumentHelper to method com.sum.org.apache.xerces.internal.util.SecurityManager.setEntityExpansionLimit(int)
WARNING: Please consider reporting this to the maintainers of org.apache.poi.util.DocumentHelper
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
TIA

Re: DocumentHelper-Illegal recflective access

Posted: Mon Jan 24, 2022 6:33 pm
by Scott Klement

Re: DocumentHelper-Illegal recflective access

Posted: Mon Jan 24, 2022 10:59 pm
by jtaylor
Stackoverfow says to upgrade POI to 4.1.0 or 4.1.2. Will HSSFR4 work with those versions? I tested the latest release of POI, and HSSFR4 didn't work at all.

Thanks

Re: DocumentHelper-Illegal recflective access

Posted: Mon Jan 24, 2022 11:02 pm
by Scott Klement
Sorry, I have no clue. I haven't used this stuff in over a decade, and neither Java 9 nor POI 4 existed back then.

Re: DocumentHelper-Illegal recflective access

Posted: Mon Jan 24, 2022 11:25 pm
by msddcb
The latest version of HSSFR4 supports POI Version 3.14 and earlier.
Later versions of POI will require modification to the service program as some of the parameters have been change to enum.
Cheers, Don

Re: DocumentHelper-Illegal recflective access

Posted: Tue Jan 25, 2022 7:28 pm
by jtaylor
Thanks guys