vlsi / mat-calcite-plugin

Heap query plugin for Eclipse Memory Analyzer
Apache License 2.0
156 stars 24 forks source link

Error 'ZipException : Invalid CEN header (invalid zip64 extra data field size)' error for MatCalciteDependencies.jar on Java 17.0.8 #29

Closed Lerm closed 1 year ago

Lerm commented 1 year ago

Attempt to work with Mat Calcite Plugin on Java 17.0.8 or later may produce the 'ZipException : Invalid CEN header (invalid zip64 extra data field size)' error for the MatCalciteDependencies.jar.

This is caused by JDK-8311940, which has introduced improved validation of the ZIP64 Extra Fields contained within zip files and jar files. The 'maven-bundle-plugin' 5.1.1 which is currently used in Mat Calcite Plugin contains BND version which produces invalid headers. The updated BND library is included in the 5.1.5 version of this plugin (according to JDK-8315828).

Workaround: add option '-Djdk.util.zip.disableZip64ExtraFieldValidation=true' after the '-vmargs' line in the 'MemoryAnalyzer.ini' configuration file.

Proposed fix (updating 'maven-bundle-plugin' version) is included in https://github.com/vlsi/mat-calcite-plugin/pull/28