Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1566614 - java.util.zip.ZipException: invalid entry compressed size during Eclipse build using xmvn
Summary: java.util.zip.ZipException: invalid entry compressed size during Eclipse buil...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: xmvn
Version: rh-maven35
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Mikolaj Izdebski
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-12 15:35 UTC by Mat Booth
Modified: 2020-11-03 15:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-03 15:31:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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/


Note You need to log in before you can comment on or make changes to this bug.