Today's new OpenJDK 11.0.20 release and "invalid zip64 extra data field size" when loading modules?

813 views
Skip to first unread message

Karen Dolan

unread,
Jul 18, 2023, 7:09:40 PM7/18/23
to Opencast Users

Hi All,

 

Our site is running a version of Opencast 11x and Java 11. Today, my development cluster got a new version of the openjdk 11.0.20 2023-07-18 LTS.


When I restarted Opencast, I got an exception from the Felix loader that stop the load of all modules:

Caused by: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)

            at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1736)

            at java.base/java.util.zip.ZipFile$Source.checkExtraFields(ZipFile.java:1254)


The new version of that Oracle JDK release docs says it contains this patch:

In core-libs/java.util.jar

 Improved ZIP64 Extra Field Validation (JDK-8302483 (not public))

java.util.zip.ZipFile has been updated to provide additional validation of ZIP64 extra fields when opening a ZIP file.  This validation may be disabled by setting the system property jdk.util.zip.disableZip64ExtraFieldValidation to true.

https://www.oracle.com/java/technologies/javase/11all-relnotes.html


I was not able to get Felix to load our Opencast  modules until I put that "-Djdk.util.zip.disableZip64ExtraFieldValidation=true” in the Java opts.


Does anyone else know about this? I suspect it’s because our JARS are being zipped with an older version of some library that is causing the invalid zip64 extra data field size error.


Any suggestions are appreciated. Meanwhile, I’ll look at the version of our libs.


Best Regards,

Karen

 

 

Karen Dolan

unread,
Jul 19, 2023, 1:43:58 PM7/19/23
to Opencast Users
Hi All,

The FileZip zip64 error was related to specific libraries in a special customize module within our Opencast. Nothing that other Opencast adopters would have. Which is great!

Best,
Karen

Maximiliano Lira Del Canto

unread,
Jul 28, 2023, 4:04:49 AM7/28/23
to Opencast Users, kdo...@g.harvard.edu
Hi Karen, I was trying the container images from Opencast and I found the same error.

Karen Dolan

unread,
Jul 28, 2023, 9:47:04 AM7/28/23
to Maximiliano Lira Del Canto, Opencast Users
Hi Max,

Which module did you get that error from?

For us, it was some Googlesheet API libraries in a custom module. We didn’t need those libaries anymore anyway. When we removed them, the error went away for us. We’re using Opencast v11.

- Karen

pascal.grube

unread,
Aug 1, 2023, 12:19:38 AM8/1/23
to Opencast Users, kdo...@g.harvard.edu, Opencast Users, Maximiliano Lira Del Canto
Hi,

I just ran into the same issue at:
2023-07-31T09:51:02,687 | ERROR | (BootFeaturesInstaller:113) - Error installing boot features
org.osgi.framework.BundleException: Unable to cache bundle: mvn:org.opencastproject/opencast-ingest-service-impl/13-SNAPSHOT

Causing the admin to fail. The fix with "-Djdk.util.zip.disableZip64ExtraFieldValidation=true” did solve the issue.

Cheers, 
Pascal

Lars Kiesow

unread,
Aug 7, 2023, 7:33:36 AM8/7/23
to us...@opencast.org
Hi everyone,
the problem seems to appear on current Opencast 12, 13 and 14 builds
with the latest JVM version. Be careful when updating your JVM or use
the workaround Pascal posted.

There is a fix for future releases:
https://github.com/opencast/opencast/pull/5157

Once merged, I will also cut another 12.x release to help people who
still haven't upgraded. But this will not be fixed in older versions!
The same goes for 13.x and 14.x releases.

The (yet unreleased) Opencast 15 is not effected by the issue. But we
will add a test to make sure this does not appear again.

Best regards,
Lars
Reply all
Reply to author
Forward
0 new messages