You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Matteo Bertozzi (JIRA)" <ji...@apache.org> on 2012/06/13 19:47:42 UTC
[jira] [Created] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Matteo Bertozzi created HADOOP-8509:
---------------------------------------
Summary: 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
Priority: Minor
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
[jira] [Updated] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Matteo Bertozzi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matteo Bertozzi updated HADOOP-8509:
------------------------------------
Status: Patch Available (was: Open)
> 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
> 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
[jira] [Commented] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294970#comment-13294970 ]
Hudson commented on HADOOP-8509:
--------------------------------
Integrated in Hadoop-Hdfs-trunk #1076 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1076/])
HADOOP-8509. JarFinder duplicate entry: META-INF/MANIFEST.MF exception (tucu) (Revision 1350008)
Result = SUCCESS
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
[jira] [Updated] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Matteo Bertozzi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matteo Bertozzi updated HADOOP-8509:
------------------------------------
Attachment: HADOOP-8509.patch
> 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
> 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
[jira] [Commented] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294661#comment-13294661 ]
Hudson commented on HADOOP-8509:
--------------------------------
Integrated in Hadoop-Hdfs-trunk-Commit #2431 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2431/])
HADOOP-8509. JarFinder duplicate entry: META-INF/MANIFEST.MF exception (tucu) (Revision 1350008)
Result = SUCCESS
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
[jira] [Updated] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Matteo Bertozzi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matteo Bertozzi updated HADOOP-8509:
------------------------------------
Attachment: HADOOP-8509.patch
Attached a patch by Alejandro Abdelnur, that checks if Manifest file is already present in the user directory before create the new one.
> 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
> 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
[jira] [Commented] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294600#comment-13294600 ]
Hadoop QA commented on HADOOP-8509:
-----------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12532007/HADOOP-8509.patch
against trunk revision .
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 2 new or modified test files.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 eclipse:eclipse. The patch built with eclipse:eclipse.
+1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
-1 core tests. The patch failed these unit tests in hadoop-common-project/hadoop-common:
org.apache.hadoop.fs.viewfs.TestViewFsTrash
+1 contrib tests. The patch passed contrib unit tests.
Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/1118//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/1118//console
This message is automatically generated.
> 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
[jira] [Commented] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294599#comment-13294599 ]
Alejandro Abdelnur commented on HADOOP-8509:
--------------------------------------------
Matteo, thanks for creating the JIRA uploading the patch.
> 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
[jira] [Assigned] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Abdelnur reassigned HADOOP-8509:
------------------------------------------
Assignee: Alejandro Abdelnur
> 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
[jira] [Updated] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Matteo Bertozzi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matteo Bertozzi updated HADOOP-8509:
------------------------------------
Attachment: (was: HADOOP-8509.patch)
> 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
> 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
[jira] [Commented] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Tom White (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294655#comment-13294655 ]
Hudson commented on HADOOP-8509:
--------------------------------
Integrated in Hadoop-Common-trunk-Commit #2359 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2359/])
HADOOP-8509. JarFinder duplicate entry: META-INF/MANIFEST.MF exception (tucu) (Revision 1350008)
Result = SUCCESS
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
[jira] [Closed] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arun C Murthy closed HADOOP-8509.
---------------------------------
> 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.2-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
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294682#comment-13294682 ]
Hudson commented on HADOOP-8509:
--------------------------------
Integrated in Hadoop-Mapreduce-trunk-Commit #2378 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2378/])
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
[jira] [Updated] (HADOOP-8509) JarFinder duplicate entry:
META-INF/MANIFEST.MF exception
Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Abdelnur updated HADOOP-8509:
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.1-alpha
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
committed to trunk and branch-2
> 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