Bug 49449 - Processing Fails on OOXML with certain XML Parsers
Summary: Processing Fails on OOXML with certain XML Parsers
Status: RESOLVED WORKSFORME
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.7-dev
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-16 13:45 UTC by David Fisher
Modified: 2015-03-22 17:25 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.