Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1566614

Summary: java.util.zip.ZipException: invalid entry compressed size during Eclipse build using xmvn
Product: Red Hat Software Collections Reporter: Mat Booth <mat.booth>
Component: xmvnAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED EOL QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rh-maven35CC: mizdebsk
Target Milestone: ---Keywords: Upstream
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-03 15:31:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mat Booth 2018-04-12 15:35:02 UTC
I am experiencing a strange problem when I am building Eclipse for the rh-eclipse47 collection. Here's the interesting bit:

+ /opt/rh/rh-maven35/root/usr/share/java-utils/scl-enable rh-maven35 rh-eclipse47 -- xmvn-install -R .xmvn-reactor -n eclipse -d /builddir/build/BUILDROOT/rh-eclipse47-eclipse-4.7.3a-3.4.el7.x86_64
Unhandled exception
java.lang.RuntimeException: java.util.zip.ZipException: invalid entry compressed size (expected 2939 but got 2951 bytes)
	at org.fedoraproject.xmvn.tools.install.JarUtils.injectManifest(JarUtils.java:271)
	at org.fedoraproject.xmvn.tools.install.impl.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:85)
	at org.fedoraproject.xmvn.tools.install.impl.DefaultInstaller.installArtifact(DefaultInstaller.java:223)
	at org.fedoraproject.xmvn.tools.install.impl.DefaultInstaller.install(DefaultInstaller.java:335)
	at org.fedoraproject.xmvn.tools.install.cli.InstallerCli.run(InstallerCli.java:57)
	at org.fedoraproject.xmvn.tools.install.cli.InstallerCli.main(InstallerCli.java:82)
Caused by: java.util.zip.ZipException: invalid entry compressed size (expected 2939 but got 2951 bytes)
	at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:267)
	at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:192)
	at java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:109)
	at org.fedoraproject.xmvn.tools.install.JarUtils.injectManifest(JarUtils.java:261)
	... 5 more
	Suppressed: java.util.zip.ZipException: invalid entry compressed size (expected 2939 but got 2951 bytes)
		at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:267)
		at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:360)
		at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:238)
		at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:377)
		at org.fedoraproject.xmvn.tools.install.JarUtils.injectManifest(JarUtils.java:267)
		... 5 more
error: Bad exit status from /var/tmp/rpm-tmp.Y5Osbi (%install)
    Bad exit status from /var/tmp/rpm-tmp.Y5Osbi (%install)
RPM build errors:
Child returncode was: 1
EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/eclipse.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.6/site-packages/mockbuild/util.py", line 345, in do
    raise mockbuild.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/eclipse.spec']
LEAVE do --> EXCEPTION RAISED

I am seeing this almost always in brew, but never in a local mock build.

Comment 3 Mikolaj Izdebski 2018-04-20 10:03:38 UTC
Fixed upstream in https://github.com/fedora-java/xmvn/pull/27

Comment 4 Mat Booth 2018-05-09 09:28:08 UTC
FWIW I've started to observe this in Fedora, see bug 1576358

Comment 8 Joe Orton 2020-08-26 12:22:16 UTC
Red Hat does not currently plan to provide any further changes to this collection in a Red Hat Software Collections update release.

This software collection is nearing the retirement date (October 2020) after which customers are encouraged to upgrade to a later release.  If this bug is still relevant for the latest collection release (rh-maven36) please change the Version appropriately.

Please contact Red Hat Support if you have further questions, or refer to the support lifecycle page for more information. https://access.redhat.com/support/policy/updates/rhscl/

Comment 9 Joe Orton 2020-11-03 15:31:54 UTC
In accordance with the Red Hat Software Collections Product Life Cycle, the support period for this collection has ended.

New bug fix, enhancement, and security errata updates, as well as technical support services will no longer be made available for this collection.

Customers are encouraged to upgrade to a later release.

Please contact Red Hat Support if you have further questions, or refer to the support lifecycle page for more information. https://access.redhat.com/support/policy/updates/rhscl/