Bug 49449

Summary: Processing Fails on OOXML with certain XML Parsers
Product: POI Reporter: David Fisher <dfisher>
Component: POI OverallAssignee: POI Developers List <dev>
Status: RESOLVED WORKSFORME    
Severity: enhancement    
Priority: P2    
Version: 3.7-dev   
Target Milestone: ---   
Hardware: All   
OS: All   

Description David Fisher 2010-06-16 13:45:01 UTC
A user encountered the following error:

org.apache.poi.openxml4j.exceptions.InvalidFormatException: Can't read content types part !
       at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.<init>(ContentTypeManager.java:107)
       at

It was determined that another Webapps on his Tomcat Server had xercesImpl.jar in the endorsed directory and for Tomcat this makes it endorsed for the JVM.

It would be much better if POI could provide a more informative message like "POI requires a SAX type Parser, but found Xerces. See http://poi.apache.org/faq.html#faq-????"
Comment 1 Dominik Stadler 2015-03-22 17:25:55 UTC
I think is not an issue any more with Java 6 where an XML Parser is included with Java itself.