Exporting Portal Greater Than 2 GB Fails With the Error BadZipfile: Bad magic number for file header or Out of Memory Error
(Doc ID 1966993.1)
Last updated on JUNE 11, 2024
Applies to:
Oracle WebCenter Portal - Version 11.1.1.8.0 and laterOracle WebCenter Portal for OCI - Version 12.2.1.4_24.2 and later
Information in this document applies to any platform.
Symptoms
Exporting a Portal of a size around 3 GB via UI or the following command
fails with:
BadZipfile: Bad magic number for file header
OR
Getting out of memory error:
File "<FMW_HOME>/wc/common/wlst/ExpImp.py", line 236, in exportWebCenterPortals
File "<FMW_HOME>/wc/common/script_handlers/ExpImpHandler.py", line 100, in exportWebCenterPortals
File "<FMW_HOME>/wlserver_10.3/common/wlst/modules/jython-modules.jar/Lib/zipfile.py", line 328, in read
java.lang.OutOfMemoryError: allocLargeObjectOrArray: [C, larger than Java heap
at java.lang.String.<init>(String.java:339)
at org.python.core.PyString.from_bytes(Unknown Source)
at org.python.core.PyFile$RFileWrapper.read(Unknown Source)
at org.python.core.PyFile.file_read(Unknown Source)
at org.python.core.PyFile$1exposed_read.__call__(Unknown Source)
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |