Hello,
I just encountered an issue while trying to read xls file on app engine
with the latest version of POI (3.11). As mentioned in the subject of
the mail, while calling workbookFactory.create, it ended up to use the
SecurityManager that is a restricted class in app engine.
After I dig into the recent changes, I found that it is coming from the
following commit:
http://mail-archives.apache.org/mod_mbox/poi-commits/201408.mbox/%[email protected]%3E
After I downgrade the library to the version 3.8, I do not have the
issue anymore.
Here is the stacktrace of my issue :
java.lang.NoClassDefFoundError:
com.sun.org.apache.xerces.internal.util.SecurityManager is a restricted class.
Please see the Google App Engine developer's guide for more details.
at
com.google.apphosting.runtime.security.shared.stub.com.sun.org.apache.xerces.internal.util.SecurityManager.<clinit>(SecurityManager.java)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:370)
at
org.apache.poi.util.DocumentHelper.trySetXercesSecurityManager(DocumentHelper.java:77)
at org.apache.poi.util.DocumentHelper.<clinit>(DocumentHelper.java:57)
at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.parseContentTypesFile(ContentTypeManager.java:376)
at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.<init>(ContentTypeManager.java:102)
at
org.apache.poi.openxml4j.opc.internal.ZipContentTypeManager.<init>(ZipContentTypeManager.java:54)
at
org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:192)
at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:673)
at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:274)
at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:87)
Using the version 3.8 for my project is fine, however, it seems to me
this is a regression, that's why I am posting this here.
Regards,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]