https://bz.apache.org/bugzilla/show_bug.cgi?id=65326

Bernhard Schuhmann <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #10 from Bernhard Schuhmann <[email protected]> ---
Would like to reopen this issue as there are still warnings for
accessExternalSchema - from XMLHelper.getDocumentBuilderFactory():


2021-11-24 16:09:55,799  WARN [pool-4-thread-1] (XMLHelper.java:307) - SAX
Feature unsupported [log suppressed for 5
minutes]http://javax.xml.XMLConstants/property/accessExternalSchema
java.lang.IllegalArgumentException: Property
'http://javax.xml.XMLConstants/property/accessExternalSchema' is not
recognized.
        at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(Unknown Source)
~[xerces_impl-2.12.1b.jar:?]
        at org.apache.poi.util.XMLHelper.trySet(XMLHelper.java:284)
~[poi-5.1.0.jar:5.1.0]
        at
org.apache.poi.util.XMLHelper.getDocumentBuilderFactory(XMLHelper.java:114)
~[poi-5.1.0.jar:5.1.0]
        at org.apache.poi.util.XMLHelper.<clinit>(XMLHelper.java:85)
~[poi-5.1.0.jar:5.1.0]
        at
org.apache.poi.ooxml.util.DocumentHelper.newDocumentBuilder(DocumentHelper.java:47)
~[poi-ooxml-5.1.0.jar:5.1.0]
        at
org.apache.poi.ooxml.util.DocumentHelper.<clinit>(DocumentHelper.java:36)
~[poi-ooxml-5.1.0.jar:5.1.0]
        at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.save(ContentTypeManager.java:429)
~[poi-ooxml-5.1.0.jar:5.1.0]
        at
org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:554)
~[poi-ooxml-5.1.0.jar:5.1.0]
        at org.apache.poi.openxml4j.opc.OPCPackage.save(OPCPackage.java:1487)
~[poi-ooxml-5.1.0.jar:5.1.0]
        at org.apache.poi.ooxml.POIXMLDocument.write(POIXMLDocument.java:227)
~[poi-ooxml-5.1.0.jar:5.1.0]
        at
org.apache.poi.xssf.streaming.SXSSFWorkbook.write(SXSSFWorkbook.java:963)
~[poi-ooxml-5.1.0.jar:5.1.0]

This is with external Xerces library. Forcing POI to use the internal Xerces
implementation from Java runtime yields no warnings.

We're now forcing the internal implementations of Xerces and Xalan to be used
with POI to get rid of the warnings.

Maybe POI could use them directly instead of relying on what the runtime offers
as default?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to