United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7133124 JDK7u4 builds failed for all platforms at Step 2 of build process for 1/24/2012
7133124 : JDK7u4 builds failed for all platforms at Step 2 of build process for 1/24/2012

Details
Type:
Bug
Submit Date:
2012-01-25
Status:
Closed
Updated Date:
2012-02-20
Project Name:
JDK
Resolved Date:
2012-02-20
Component:
deploy
OS:
generic
Sub-Component:
deployment_toolkit
CPU:
generic
Priority:
P1
Resolution:
Fixed
Affected Versions:
7u4
Fixed Versions:
7u4

Related Reports
Backport:

Sub Tasks

Description
JDK7u4 builds failed at Step 2 of build process for all platforms with the following error message (sample for linux-amd64):
java.util.zip.ZipException: duplicate entry: com/oracle/jrockit/jfr/client/
	at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:175)
	at java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:92)
	at sun.tools.jar.Main.addFile(Main.java:683)
	at sun.tools.jar.Main.create(Main.java:437)
	at sun.tools.jar.Main.run(Main.java:160)
	at sun.tools.jar.Main.main(Main.java:1022)
gnumake[2]: *** [/HUDSON/workspace/jdk7u_dev-2-build-linux-amd64-product/jdk7u_dev/build/linux-amd64/tmp/jfr-orig.jar] Error 1
gnumake[2]: Leaving directory `/HUDSON/workspace/jdk7u_dev-2-build-linux-amd64-product/jdk7u_dev/jdk/make'
gnumake[1]: *** [jdk-build] Error 2
gnumake[1]: Leaving directory `/HUDSON/workspace/jdk7u_dev-2-build-linux-amd64-product/jdk7u_dev'
gnumake: *** [build_product_image] Error 2
+ gmkexitcode=2
+ '[' 2 -ne 0 ']'
+ errorExit 'gnumake failed, return code 2'
+ echo 'ERROR: gnumake failed, return code 2'
ERROR: gnumake failed, return code 2
+ exit 3
Notifying upstream projects of job completion
Finished: FAILURE

Log file: http://rehudson.us.oracle.com:8080/hudson/view/JDK7/view/7%20Updates/view/7u-dev/job/jdk7u_dev-2-build-linux-amd64-product/130/console

                                    

Comments
EVALUATION

JFR project has found the root issue with this problem - there is a mismatch in the jar executable being used between JPRT and RE. We are currently preparing a fix that will work with RE's version of jar. Will update later with full problem description and fix.

Thank you
Markus
                                     
2012-01-26
EVALUATION

The cause of this problem is that different build & test systems use different versions of the JDK to perform builds.

RE builds seems to use:
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)

While JPRT (through which we verified our changes) are using:
java version "1.6.0_18"

The JPRT version is also the first version in JDK6 which allows using jar like:
jar cf some.jar root/foo root/foo/bar without complaining about duplicate entries.
                                     
2012-01-26



Hardware and Software, Engineered to Work Together