hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8509) JarFinder duplicate entry: META-INF/MANIFEST.MF exception
Date Thu, 14 Jun 2012 14:20:42 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13295053#comment-13295053
] 

Hudson commented on HADOOP-8509:
--------------------------------

Integrated in Hadoop-Mapreduce-trunk #1109 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1109/])
    HADOOP-8509. JarFinder duplicate entry: META-INF/MANIFEST.MF exception (tucu) (Revision
1350008)

     Result = FAILURE
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1350008
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/JarFinder.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestJarFinder.java

                
> JarFinder duplicate entry: META-INF/MANIFEST.MF exception
> ---------------------------------------------------------
>
>                 Key: HADOOP-8509
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8509
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: 0.23.1
>            Reporter: Matteo Bertozzi
>            Assignee: Alejandro Abdelnur
>            Priority: Minor
>             Fix For: 2.0.1-alpha
>
>         Attachments: HADOOP-8509.patch
>
>
> Calling JarFinder.getJar() throws an exception if user has a "META-INF/MANIFEST.MF" in
the same directory of the .class specified.
> Jarfinder.getJar() call createJar() that always create a new Manifest and then add all
the files contained in the .class directory.
> To reproduce the problem in a simple way you can create a SimpleClass.java in the same
directory create a META-INF/MANIFEST.MF and then call JarFinder.getJar(SimpleClass.class)
> {code}
> >> Caused by: java.util.zip.ZipException: duplicate entry: META-INF/MANIFEST.MF
> >> at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:175)
> >> at java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:92)
> >> at org.apache.hadoop.util.JarFinder.zipDir(JarFinder.java:66)
> >> at org.apache.hadoop.util.JarFinder.zipDir(JarFinder.java:62)
> >> at org.apache.hadoop.util.JarFinder.zipDir(JarFinder.java:44)
> >> at org.apache.hadoop.util.JarFinder.createJar(JarFinder.java:93)
> >> at org.apache.hadoop.util.JarFinder.getJar(JarFinder.java:134)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message