The XSSF code relies on the JAXP DocumentBuilder. Depending on how your JRE is 
setup and how it is configured, you might get different behaviours.

Have you tried using another DocumentBuilder? For instance, if you add Xerces 
to your classpath, its DocumentBuilder might be used instead.






On Wednesday 6 October 2021, 15:25:14 IST, Mohsen Sarmadi 
<[email protected]> wrote: 





Hi

Using the latest openjdk-8-jre-headless on Ubuntu, the sheet names can not
be read from an excel file.
This version works: openjdk-8-jre-headless 8u282-b08-0ubuntu1~18.04 amd64
This one doesn't work with openjdk-8-jre-headless 8u292-b10-0ubuntu1~18.04
amd64
it seems the problem is only on Ubuntu since on Mac it works as expected.

we investigated the possible classpath issues in [1], but that was not it.
looking at the OpenJDK changelog [2] between the two versions does not show
any possible cause.
Does anyone know what could be causing this?

Thanks
M

[1]
https://stackoverflow.com/questions/69100632/apache-poi-unable-to-read-sheet-names
[2]
http://changelogs.ubuntu.com/changelogs/pool/universe/o/openjdk-8/openjdk-8_8u292-b10-0ubuntu1~18.04/changelog
[3] https://packages.ubuntu.com/bionic/openjdk-8-jre-headless


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to