Created attachment 27002 [details] java class that crashes http://apache-poi.1045710.n5.nabble.com/org-apache-poi-POIXMLException-td4392927.html#a4392967 As I wrote, file works fine in Windows Vista / RAD but crashes when it runs under USS/zOS. Following Exception: Exception in thread "main" org.apache.poi.POIXMLException: 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 t eam. at org.apache.poi.xssf.usermodel.XSSFWorkbook.newPackage(XSSFWorkbook.java:294) at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:168) at com.test.ExcelReport.createReport(ExcelReport.java:23) at com.test.ExcelReport.main(ExcelReport.java:18) Caused by: 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. at org.apache.poi.openxml4j.opc.OPCPackage.init(OPCPackage.java:161) at org.apache.poi.openxml4j.opc.OPCPackage.<init>(OPCPackage.java:136) at org.apache.poi.openxml4j.opc.ZipPackage.<init>(ZipPackage.java:66) at org.apache.poi.openxml4j.opc.OPCPackage.create(OPCPackage.java:285) at org.apache.poi.xssf.usermodel.XSSFWorkbook.newPackage(XSSFWorkbook.java:282) ... 3 more
I've found the solution. Under uss/zOS the SystemProperty file.encoding by default is IBM-1047. At the Moment i changed to ISO-8859-1 it works.
Thanks for letting us know, marking this as a configuration issue not a POI bug.