Bug 51203 - org.apache.poi.POIXMLException
Summary: org.apache.poi.POIXMLException
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.7-FINAL
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-16 06:41 UTC by mat
Modified: 2011-05-19 09:15 UTC (History)
0 users



Attachments
java class that crashes (1.11 KB, text/plain)
2011-05-16 06:41 UTC, mat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mat 2011-05-16 06:41:48 UTC
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
Comment 1 mat 2011-05-19 08:44:51 UTC
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.
Comment 2 Nick Burch 2011-05-19 09:15:30 UTC
Thanks for letting us know, marking this as a configuration issue not a POI bug.