Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6FB56D9CE for ; Wed, 13 Jun 2012 19:26:04 +0000 (UTC) Received: (qmail 87840 invoked by uid 500); 13 Jun 2012 19:25:34 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 78245 invoked by uid 500); 13 Jun 2012 19:25:19 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 48621 invoked by uid 99); 13 Jun 2012 19:10:42 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 19:10:42 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id BB3681404B9 for ; Wed, 13 Jun 2012 19:10:42 +0000 (UTC) Date: Wed, 13 Jun 2012 19:10:42 +0000 (UTC) From: "Tom White (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1433311002.13538.1339614642769.JavaMail.jiratomcat@issues-vm> In-Reply-To: <400064173.13308.1339609662746.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HADOOP-8509) JarFinder duplicate entry: META-INF/MANIFEST.MF exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294624#comment-13294624 ] Tom White commented on HADOOP-8509: ----------------------------------- +1 > 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 > 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