This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256817 - org-eclipse-jgit-RELEASE81.jar due to invalid entry size (expected 1159200768 but got 133988 bytes)
Summary: org-eclipse-jgit-RELEASE81.jar due to invalid entry size (expected 1159200768...
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: pgebauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-26 15:18 UTC by StephaneJ
Modified: 2016-02-04 21:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description StephaneJ 2015-11-26 15:18:21 UTC
Hi,

I use mavenized platform.
I declare org-netbeans-modules-git and org-netbeans-libs-git that use org.netbeans.external:org-eclipse-jgit as transitive dependency.

Compile failed with the following message:
Error while checking runtime dependencies: Cannot process Jar entry on URL: file:/Users/x/.m2/repository/org/netbeans/external/org-eclipse-jgit/RELEASE81/org-eclipse-jgit-RELEASE81.jar due to invalid entry size (expected 1159200768 but got 133988 bytes)

It seem that dependency is corrupt on netbeans repository. (I can't unzip on my mac)
http://bits.netbeans.org/nexus/content/groups/netbeans/org/netbeans/external/org-eclipse-jgit/RELEASE81/org-eclipse-jgit-RELEASE81.jar

My project works on RELEASE802, but it failed on RELEASE81 and RELEASE81-BETA.
I use nbm-maven-plugin:4.1
Comment 1 pgebauer 2015-11-30 13:06:16 UTC
The issue is caused by incorrect jar file http://hg.netbeans.org/binaries/278049664FFA5447191BD5FE96B0B62B0CFD15D1-org.eclipse.jgit-3.6.2.201501210735-r_nosignature.jar

The jar can be unpacked via zip but not via jar. The command jar checks hashes created in the file MANIFEST.MF during jar signing. Since original signatures had to be removed the jar utility fails.
Comment 2 Quality Engineering 2015-12-09 02:29:45 UTC
Integrated into 'main-silver', will be available in build *201512090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/295a7577703d
User: PGebauer <pgebauer@netbeans.org>
Log: #256817 - org-eclipse-jgit-RELEASE81.jar due to invalid entry size
Comment 3 Quality Engineering 2015-12-16 02:31:39 UTC
Integrated into 'main-silver', will be available in build *201512160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0275ff7235be
User: PGebauer <pgebauer@netbeans.org>
Log: #256817 - org-eclipse-jgit-RELEASE81.jar due to invalid entry size
Comment 4 pgebauer 2016-01-13 09:52:58 UTC
The issue is fixed in the trunk.

A verification is needed before a transplant to the branch release81.
Comment 5 Jiri Prox 2016-01-19 15:27:57 UTC
StephaneJ can you please verify this issue?
Thanks
Comment 6 StephaneJ 2016-01-21 10:18:17 UTC
sorry for the delay.
Yes, everything works.
Thank you very much!
Comment 7 Jiri Kovalsky 2016-01-21 10:47:09 UTC
Thanks for verification. Petre, please transplant to release81 branch. Thanks.
Comment 8 pgebauer 2016-01-22 10:54:41 UTC
The changeset has been transplanted
http://hg.netbeans.org/releases/rev/5476c5f83d9c

(Note: Only the first changeset 295a7577703d need to be transplanted from the trunk.)
Comment 9 Jiri Prox 2016-02-04 12:18:34 UTC
StephaneJ can you please verify this issue one more time? this time in 8.1patch1.

The patch process is described at page
http://wiki.netbeans.org/NetBeans_81_Patch1_GoNoGo

in section "Upgrade from 8.1 to Patch 1 sanity test" 



Thanks
Comment 10 pgebauer 2016-02-04 13:53:02 UTC
The URL with the 81patch1 maven repo is following:

http://bits.netbeans.org/nexus/content/repositories/release81-patch1/
Comment 11 StephaneJ 2016-02-04 20:58:08 UTC
I verified with 8.1patch1 and maven repo 81patch1. 
It works.

Thanks
Comment 12 Jiri Kovalsky 2016-02-04 21:27:41 UTC
Thank you very much Stephane!