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

            Bug ID: 66012
           Summary: Warning log about accessExternalStylesheet
           Product: POI
           Version: 5.2.2-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SXSSF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

we migrated our application from POI v4.1.2 to v5.2.2, and during excel file
writing, POI leads to the 'Not supported:
http://javax.xml.XMLConstants/property/accessExternalStylesheet' warning
flushed by XALAN.

We use XALAN 2.7.2 and we cannot dictate a specific 'TransformerFactoryImpl'
since our application should support Tomcat/Liberty(OpenJDK-1.8) and
WebSphere(IBM JDK 1.8.0_271).

Trace:
WARN 027600 XMLHelper: SAX Feature unsupported [log suppressed for 5 minutes]
http://javax.xml.XMLConstants/property/accessExternalStylesheet
java.lang.IllegalArgumentException: Not supported:
http://javax.xml.XMLConstants/property/accessExternalStylesheet
        at
org.apache.xalan.processor.TransformerFactoryImpl.setAttribute(TransformerFactoryImpl.java:571)
~[xalan-2.7.2.jar:?]
        at org.apache.poi.util.XMLHelper.trySet(XMLHelper.java:283)
~[poi-5.2.2.jar:5.2.2]
        at
org.apache.poi.util.XMLHelper.getTransformerFactory(XMLHelper.java:224)
~[poi-5.2.2.jar:5.2.2]
        at org.apache.poi.util.XMLHelper.newTransformer(XMLHelper.java:230)
~[poi-5.2.2.jar:5.2.2]
        at
org.apache.poi.openxml4j.opc.StreamHelper.saveXmlInStream(StreamHelper.java:56)
~[poi-ooxml-5.2.2.jar:5.2.2]
        at
org.apache.poi.openxml4j.opc.internal.ZipContentTypeManager.saveImpl(ZipContentTypeManager.java:68)
~[poi-ooxml-5.2.2.jar:5.2.2]
        at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.save(ContentTypeManager.java:450)
~[poi-ooxml-5.2.2.jar:5.2.2]
        at
org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:563)
~[poi-ooxml-5.2.2.jar:5.2.2]
        at org.apache.poi.openxml4j.opc.OPCPackage.save(OPCPackage.java:1490)
~[poi-ooxml-5.2.2.jar:5.2.2]
        at org.apache.poi.ooxml.POIXMLDocument.write(POIXMLDocument.java:227)
~[poi-ooxml-5.2.2.jar:5.2.2]
        at
org.apache.poi.xssf.streaming.SXSSFWorkbook.write(SXSSFWorkbook.java:969)
~[poi-ooxml-5.2.2.jar:5.2.2]



Can 'org.apache.poi.util.XMLHelper' be updated to quietly set the
'accessExternalStylesheet' similar to the latest relaxation done on
'ACCESS_EXTERNAL_DTD' and 'ACCESS_EXTERNAL_SCHEMA'.

-- 
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