Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Has anyone received a "java.util.zip.ZipException: invalid END header" error when trying to deploy an RTC extension?

 RTC version 6.0.6.1

Windows version: 10 Enterprise
8 GB RAM

I am trying to deploy a participant built from the Extension Workshop foundation and after populating the provisioning folders;  provision_profiles & sites, selecting Server Reset, and restarting the server, I am seeing these errors in the install.log file:

CRJAZ0303I The profile install from "file:ccm/sites/buildOnState-update-site" was started at "Sat Jan 30 16:03:55 EST 2021".

CRJAZ0300I This feature is being installed: "net.jazz.rtcext.workitem.extensions.server.feature_1.0.0.202101191712".
CRJAZ0299I Installing bundle from the URL "file:/c%3a/RTC603~1/installs/JAZZTE~1/server/conf/ccm/sites/buildOnState-update-site/plugins/net.jazz.rtcext.workitem.extensions.common_1.0.0.202101191712.jar".
CRJAZ0299I Installing bundle from the URL "file:/c%3a/RTC603~1/installs/JAZZTE~1/server/conf/ccm/sites/buildOnState-update-site/plugins/net.jazz.rtcext.workitem.extensions.service_1.0.0.202101191712.jar".
CRJAZ0287I Failed to install the bundle "file:/c%3a/RTC603~1/installs/JAZZTE~1/server/conf/ccm/sites/buildOnState-update-site/plugins/net.jazz.rtcext.workitem.extensions.service_1.0.0.202101191712.jar".
org.osgi.framework.BundleException: Error occurred installing a bundle.
...
Caused by: java.util.zip.ZipException: Exception in opening zip file: C:\RTC603DEV\installs\JazzTeamServer\server\liberty\servers\clm\workarea\org.eclipse.osgi\91\data\temp\default_node\SMF_WebContainer\ccm\ccm\eclipse\configuration\org.eclipse.osgi\1312\0\bundleFile
...
Caused by: java.util.zip.ZipException: invalid END header (bad central directory offset)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:241)
at java.util.zip.ZipFile.<init>(ZipFile.java:171)
at java.util.zip.ZipFile.<init>(ZipFile.java:185)
at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:288)
... 15 more
CRJAZ0309I Uninstalling the bundle "net.jazz.rtcext.workitem.extensions.common".
CRJAZ0288E The "net.jazz.rtcext.workitem.extensions.server.feature" profile feature could not be installed from the "file:ccm/sites/buildOnState-update-site" update site that is referenced in the "c:\RTC603~1\installs\JAZZTE~1\server\conf\ccm\provision_profiles\buildOnState.ini" profile file.
com.ibm.team.repository.provision.ProvisionException: CRJAZ0287I Failed to install the bundle "file:/c%3a/RTC603~1/installs/JAZZTE~1/server/conf/ccm/sites/buildOnState-update-site/plugins/net.jazz.rtcext.workitem.extensions.service_1.0.0.202101191712.jar".
...
Caused by: org.osgi.framework.BundleException: Error occurred installing a bundle.
...
Caused by: java.util.zip.ZipException: Exception in opening zip file: C:\RTC603DEV\installs\JazzTeamServer\server\liberty\servers\clm\workarea\org.eclipse.osgi\91\data\temp\default_node\SMF_WebContainer\ccm\ccm\eclipse\configuration\org.eclipse.osgi\1312\0\bundleFile
...
Caused by: java.util.zip.ZipException: invalid END header (bad central directory offset)
...
An error occurred while installing the feature "net.jazz.rtcext.workitem.extensions.server.feature" from update site "file:ccm/sites/buildOnState-update-site".  The installation of that feature will be attempted again if other profiles are installed successfully.

0 votes



One answer

Permanent link

 I have never seen that message, I believe. However I have seen issues with zip when working across different architectures. I had to unzip and rezip JAR files on the target architecture to have them behave. 

0 votes

Comments

Thank you Ralph. 

I was seeing it, occasionally, when developing on a Windows Server 2012 R2 Standard machine and deploying to a Linux box.  The research I did implied that it was unique to Linux/Mac/Unix servers.  I was not seeing it when I deployed to another Windows machine until just recently when I tried it on a laptop with Windows 10 and it seems to be intermittent.  I am not familiar with how to unzip and rezip JAR files. Is it something I can do with 7zip?  Any thoughts on the error pointing to the "bundlefile"?  Thank you again 

The failing zip file. unzip it using 7zip and, on the target platform of the server, zip it again using 7zip

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,951
× 7,506
× 1,336

Question asked: Jan 30 '21, 4:37 p.m.

Question was seen: 3,278 times

Last updated: Feb 03 '21, 4:43 a.m.

Confirmation Cancel Confirm