poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 62692] New: after update Apache POI 4.0 - Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized
Date Fri, 07 Sep 2018 13:13:42 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=62692

            Bug ID: 62692
           Summary: after update Apache POI 4.0 - Property
                    'http://www.oracle.com/xml/jaxp/properties/entityExpan
                    sionLimit' is not recognized
           Product: POI
           Version: 4.0.0-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SS Common
          Assignee: dev@poi.apache.org
          Reporter: rniestroj@go2.pl
  Target Milestone: ---

After updating Apache POI from 3.17 to 4.0.0 i'm getting on line:

`OPCPackage pck = OPCPackage.open(this.getTemplate());`

an exception:

    java.lang.IllegalArgumentException: Property
'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not
recognized.
         at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:144)
         at
__redirected.__DocumentBuilderFactory.setAttribute(__DocumentBuilderFactory.java:125)
         at
org.apache.poi.ooxml.util.DocumentHelper.trySetXercesSecurityManager(DocumentHelper.java:143)
         at
org.apache.poi.ooxml.util.DocumentHelper.<clinit>(DocumentHelper.java:108)
         at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.parseContentTypesFile(ContentTypeManager.java:392)
         at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.<init>(ContentTypeManager.java:104)
         at
org.apache.poi.openxml4j.opc.internal.ZipContentTypeManager.<init>(ZipContentTypeManager.java:54)
         at
org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:258)
         at
org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:725)
         at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:275)
         at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:181)

They say in
https://stackoverflow.com/questions/25453042/how-to-disable-accessexternaldtd-and-entityexpansionlimit-warnings-with-logback
that i should exclude xerces, but i had this already:

      <dependency>
         <groupId>org.apache.poi</groupId>
         <artifactId>poi</artifactId>
         <version>4.0.0</version>
      </dependency>
      <dependency>
         <groupId>org.apache.poi</groupId>
         <artifactId>poi-ooxml</artifactId>
         <version>4.0.0</version>
         <exclusions>
            <exclusion>
               <groupId>xml-apis</groupId>
               <artifactId>xml-apis</artifactId>
            </exclusion>
            <exclusion>
               <groupId>xerces</groupId>
               <artifactId>xercesImpl</artifactId>
            </exclusion>
         </exclusions>
      </dependency>

My setup: 

 - JDK 8 
 - WildFly 14

Going back to 3.17 fixes the issue. 

Posted also on
https://stackoverflow.com/questions/52218278/after-update-apache-poi-4-0-property-http-www-oracle-com-xml-jaxp-propertie

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message