https://issues.apache.org/bugzilla/show_bug.cgi?id=52211
--- Comment #4 from [email protected] 2011-11-18 21:20:55 UTC --- I did more testing on this on mainframe and figured out that I have to pass the -Dfile.encoding=utf-8 option. $ java -Dfile.encoding=UTF-8 TestWorkbookFactoryCreate Workbook created $ java TestWorkbookFactoryCreate Exception in thread "main" org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Package.init() : this exception should never happen, if you read this message please send a mail to the developers team. : The specified content type 'application/vnd.openxmlformats-package.core-properties+xml' is not compliant with RFC 2616: malformed content type. at org.apache.poi.openxml4j.opc.OPCPackage.init(OPCPackage.java:166) at org.apache.poi.openxml4j.opc.OPCPackage.<init>(OPCPackage.java:141) at org.apache.poi.openxml4j.opc.ZipPackage.<init>(ZipPackage.java:82) at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:228) at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:67) at TestWorkbookFactoryCreate.main(TestWorkbookFactoryCreate.java:16) Therefore, the -Dfile.encoding=utf-8 solves my problem. The default encoding in mainframe is ebcdic, and I have to use utf-8. I sent this as a poi bug earlier because the error message said so. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- 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]
