Error Error Reading /dev/null Cannot Read Zip File
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the java.util.zip.zipexception: error reading zip file workings and policies of this site About Us Learn more about Stack java.util.zip.zipexception error in opening zip file linux Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
Java.util.zip.zipexception Error In Opening Zip File Websphere
Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join
Java.util.zip.zipexception: Zip File Is Empty
them; it only takes a minute: Sign up java.util.zip.ZipException: error in opening zip file up vote 36 down vote favorite 6 I have a Jar file, which contains other nested Jars. When I invoke the new JarFile() constructor on this file, I get an exception which says: java.util.zip.ZipException: error in opening zip file When I manually unzip the contents java.lang.runtimeexception: java.util.zip.zipexception: error in opening zip file of this Jar file and zip it up again, it works fine. Also, please note that this exception is seen only on WebSphere 6.1.0.7 and higher versions. The same thing works fine on tomcat and WebLogic. Also, when I use JarInputStream instead of JarFile, I am able to read the contents of the Jar file without any exceptions. Please let me know if you have any ideas on how this can be fixed. Thanks, Sandhya java share|improve this question edited Aug 23 at 21:02 Petro 1,2841623 asked Nov 28 '08 at 7:12 user41536 234156 2 Thanks for the hint about rezipping the file -- that fixed for me. –Bryan Larsen May 4 '10 at 22:24 I've had this problem on Mac when Windows and Linux worked just fine. Using JarInputStream fixed the problem for me. –Boris van Schooten Dec 20 '11 at 9:47 I have faced the same problem on Tomcat Start UP [catalina.properties]: org.apache.catalina.startup.TldConfig tldScanJar WARNING: Failed to process JAR [jar:../opensaml.jar!/] for TLD files ZipException to resolve this pro
1.6.0_45-b06) Java HotSpot(TM) 64-Bit Server VM
Java.util.zip.zipexception Error In Opening Zip File Eclipse
(build 20.45-b01, mixed mode) Starting WLS with line: java.util.zip.zipexception: error in opening zip file at java.util.zip.zipfile.open(native method) /usr/java/jdk1.6.0_45/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Xverify:none -da -Dplatform.home=/home/weblogic/bea/wlserver_10.0 -Dwls.home=/home/weblogic/bea/wlserver_10.0/server java util zip zipexception error in opening zip file weblogic -Dweblogic.home=/home/weblogic/bea/wlserver_10.0/server -Dwli.home=/home/weblogic/bea/wlserver_10.0/integration -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/home/weblogic/bea/patch_wlw1001/profiles/default/sysext_manifest_classpath:/home/weblogic/bea/patch_wls1001/profiles/default/sysext_manifest_classpath -Dweblogic.Name=AdminServer -Djava.security.policy=/home/weblogic/bea/wlserver_10.0/server/lib/weblogic.policy weblogic.Server up a new machine, I am unable to compile, with error accessing a dependency file. [ant:javac] https://discuss.gradle.org/t/how-can-i-resolve-cannot-read-zip-file/4491 error: error reading /Users/rayj/.gradle/caches/artifacts-4/com.google.guava/guava/c12498cf18507aa6433a94eb7d3e77d5/jars/guava-11.0.2.jar; cannot read zip file I was able to reproduce on another machine by removing my gradle cache ("~/.gradle/caches/artifacts-4/"). I was able to determine that the "corrupted" jar file(s) had a behavior different than "non-corrupted" jar files. For "non-corrupted" jar files, I can rename to ".zip" and extract the zip to see the zip file contents of the file (as expected). For "corrupted" jar files, if I rename to ".zip" and extract the zip, the output is another jar file (unexpected). If I rename/extract again, then it properly extracts as the contents of the file (expected). I can manually workaround this issue by: for each corrupt jar file - rename to .zip error in opening and extract to create a new jar (this turns a corrupt jar into a non-corrupt jar) This suggests that the problem is solely related to a jar file being "corrupt". Although this works, it is a painful resolution to an automated build =) I am looking for some guidance as to what may have caused this and how to troubleshoot the root issue. daz 2012-07-04 18:25:00 UTC #2 The corrupted jar must be coming from somewhere: have you checked the repository that 'guava-11.0.2.jar' is downloaded from? Best bet could be to fix this problem at the source. jasonray (jasonray) 2012-07-05 15:07:00 UTC #3 I was able to confirm that the guava jar as downloaded from its source was indeed valid (non-corrupted). Good new ending to story, I realized that I was on an older version of gradle (1.6 milestone) - and this problem was resolved by upgrading to the release version (1.0). Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled