-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
6
-
Cause Known
-
x86
-
linux
FULL PRODUCT VERSION :
1.6.0_07
ADDITIONAL OS VERSION INFORMATION :
OpenSUSE 10.3
EXTRA RELEVANT SYSTEM CONFIGURATION :
This is part of a cluster, but I am running on the head node
A DESCRIPTION OF THE PROBLEM :
Create a simple 1-line helloWorld program. Turn it into a jar file.
Both the jar file and the class file run just fine on a Reiser file system.
But move the jar file to a PVFS2 file system, and the code does not work:
jar@tg-login1:/scratch/jar> cd javatest
jar@tg-login1:/scratch/jar/javatest> java -jar hello.jar
mmap failed for CEN and END part of zip file
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:70)
Same result if I create the jar file on the PVFS2 system. The class file runs just fine.
I tried this with Java 1.5.0_14 also
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Take HelloWorld.java, make a jar file. Move the file to a PVFS2 file system (or create it there).
jar@tg-login1:/scratch/jar/javatest> java -jar hello.jar
mmap failed for CEN and END part of zip file
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:70)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Should run
ACTUAL -
jar@tg-login1:/scratch/jar/javatest> java -jar hello.jar
mmap failed for CEN and END part of zip file
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:70)
ERROR MESSAGES/STACK TRACES THAT OCCUR :
jar@tg-login1:/scratch/jar/javatest> java -jar hello.jar
mmap failed for CEN and END part of zip file
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:70)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class hello {
public static void main(String[] args) {
System.out.println("Hi there!");
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
None found
1.6.0_07
ADDITIONAL OS VERSION INFORMATION :
OpenSUSE 10.3
EXTRA RELEVANT SYSTEM CONFIGURATION :
This is part of a cluster, but I am running on the head node
A DESCRIPTION OF THE PROBLEM :
Create a simple 1-line helloWorld program. Turn it into a jar file.
Both the jar file and the class file run just fine on a Reiser file system.
But move the jar file to a PVFS2 file system, and the code does not work:
jar@tg-login1:/scratch/jar> cd javatest
jar@tg-login1:/scratch/jar/javatest> java -jar hello.jar
mmap failed for CEN and END part of zip file
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:70)
Same result if I create the jar file on the PVFS2 system. The class file runs just fine.
I tried this with Java 1.5.0_14 also
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Take HelloWorld.java, make a jar file. Move the file to a PVFS2 file system (or create it there).
jar@tg-login1:/scratch/jar/javatest> java -jar hello.jar
mmap failed for CEN and END part of zip file
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:70)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Should run
ACTUAL -
jar@tg-login1:/scratch/jar/javatest> java -jar hello.jar
mmap failed for CEN and END part of zip file
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:70)
ERROR MESSAGES/STACK TRACES THAT OCCUR :
jar@tg-login1:/scratch/jar/javatest> java -jar hello.jar
mmap failed for CEN and END part of zip file
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:70)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class hello {
public static void main(String[] args) {
System.out.println("Hi there!");
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
None found
- relates to
-
JDK-7085890 jar unzip not use mmap MAP_SHARED flag
-
- Closed
-