java.util.zip.ZipException: invalid LOC header (bad signature)

Spring JIRA | Ivan Sopov | 5 years ago
  1. 0

    1. spring-context-3.1.0.RELEASE.jar cannot be opened with JRockit6 2. It can be opened by my file manager with unzip plugin. 3. It can be opened with Oracle Jdk7 4. spring-context-3.0.5.RELEASE.jar is usable with both Oracle Jdk7 and JRockit6. Exception from the simple console program: Exception in thread "Main Thread" java.lang.InternalError: jzentry == 0, jzfile = 140386186737856, total = 755, name = /home/isopov/.m2/repository/org/springframework/spring-context/3.1.0.RELEASE/spring-context-3.1.0.RELEASE.jar, i = 1, message = null at java.util.zip.ZipFile$2.nextElement(ZipFile.java:322) at java.util.zip.ZipFile$2.nextElement(ZipFile.java:304) Exception from the Eclipse trying to show the context of the jar: java.util.zip.ZipException: invalid LOC header (bad signature) at java.util.zip.ZipFile.read(Native Method) at java.util.zip.ZipFile.access$1400(ZipFile.java:56) at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:677) at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:413) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) at java.io.BufferedInputStream.read(BufferedInputStream.java:334) at org.eclipse.jdt.internal.compiler.util.Util.getInputStreamAsByteArray(Util.java:523) at org.eclipse.jdt.internal.compiler.util.Util.getZipEntryByteContent(Util.java:689) at org.eclipse.jdt.internal.core.ClassFile.getJarBinaryTypeInfo(ClassFile.java:347)... The same issue is with spring-core, spring-beans, spring-aop. There is no such issue with spring-webmvc, spring-asm, spring-expression, spring-web.

    Spring JIRA | 5 years ago | Ivan Sopov
    java.util.zip.ZipException: invalid LOC header (bad signature)
  2. 0

    1. spring-context-3.1.0.RELEASE.jar cannot be opened with JRockit6 2. It can be opened by my file manager with unzip plugin. 3. It can be opened with Oracle Jdk7 4. spring-context-3.0.5.RELEASE.jar is usable with both Oracle Jdk7 and JRockit6. Exception from the simple console program: Exception in thread "Main Thread" java.lang.InternalError: jzentry == 0, jzfile = 140386186737856, total = 755, name = /home/isopov/.m2/repository/org/springframework/spring-context/3.1.0.RELEASE/spring-context-3.1.0.RELEASE.jar, i = 1, message = null at java.util.zip.ZipFile$2.nextElement(ZipFile.java:322) at java.util.zip.ZipFile$2.nextElement(ZipFile.java:304) Exception from the Eclipse trying to show the context of the jar: java.util.zip.ZipException: invalid LOC header (bad signature) at java.util.zip.ZipFile.read(Native Method) at java.util.zip.ZipFile.access$1400(ZipFile.java:56) at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:677) at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:413) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) at java.io.BufferedInputStream.read(BufferedInputStream.java:334) at org.eclipse.jdt.internal.compiler.util.Util.getInputStreamAsByteArray(Util.java:523) at org.eclipse.jdt.internal.compiler.util.Util.getZipEntryByteContent(Util.java:689) at org.eclipse.jdt.internal.core.ClassFile.getJarBinaryTypeInfo(ClassFile.java:347)... The same issue is with spring-core, spring-beans, spring-aop. There is no such issue with spring-webmvc, spring-asm, spring-expression, spring-web.

    Spring JIRA | 5 years ago | Ivan Sopov
    java.util.zip.ZipException: invalid LOC header (bad signature)
  3. 0

    Issue while Upgrading the SmartGWT version from 5.0 to 6.0

    Stack Overflow | 5 months ago | mohammed
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.6.1:compile (default) on project px-smartgwt-client: Failed to read module XML file sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@541afb85
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    errors starting a simple spring boot application

    Stack Overflow | 3 months ago | saadko
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/C:/Users/user/.m2/repository/mysql/mysql-connector-java/5.1.39/mysql-connector-java-5.1.39.jar!/com/mysql/fabric/FabricCommunicationException.class]; nested exception is java.util.zip.ZipException: invalid LOC header (bad signature)
  6. 0

    Invalid literal/length code - how to solve this?

    Stack Overflow | 4 years ago | pepuch
    java.util.zip.ZipException: invalid literal/length code

  1. linxiaolong 1 times, last 2 weeks ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.zip.ZipException

    invalid LOC header (bad signature)

    at java.util.zip.ZipFile.read()
  2. Java RT
    BufferedInputStream.read
    1. java.util.zip.ZipFile.read(Native Method)
    2. java.util.zip.ZipFile.access$1400(ZipFile.java:56)
    3. java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:677)
    4. java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:413)
    5. java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
    6. java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    7. java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
    8. java.io.BufferedInputStream.read(BufferedInputStream.java:334)
    8 frames
  3. JDT Core
    Util.getZipEntryByteContent
    1. org.eclipse.jdt.internal.compiler.util.Util.getInputStreamAsByteArray(Util.java:523)
    2. org.eclipse.jdt.internal.compiler.util.Util.getZipEntryByteContent(Util.java:689)
    2 frames