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)

Stack Overflow | saadko | 2 months ago
  1. 0

    errors starting a simple spring boot application

    Stack Overflow | 2 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)
  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

    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)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  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 7 days 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)[na:1.8.0_92]
    2. java.util.zip.ZipFile.access$1400(Unknown Source)[na:1.8.0_92]
    3. java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)[na:1.8.0_92]
    4. java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source)[na:1.8.0_92]
    5. java.util.zip.InflaterInputStream.read(Unknown Source)[na:1.8.0_92]
    6. java.io.FilterInputStream.read(Unknown Source)[na:1.8.0_92]
    7. java.io.BufferedInputStream.fill(Unknown Source)[na:1.8.0_92]
    8. java.io.BufferedInputStream.read1(Unknown Source)[na:1.8.0_92]
    9. java.io.BufferedInputStream.read(Unknown Source)[na:1.8.0_92]
    9 frames
  3. Spring Core
    CachingMetadataReaderFactory.getMetadataReader
    1. org.springframework.asm.ClassReader.readClass(ClassReader.java:463)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2. org.springframework.asm.ClassReader.<init>(ClassReader.java:426)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    3. org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:53)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    4. org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:98)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    5. org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    5 frames
  4. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:279)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2. org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:248)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    3. org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:137)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    4. org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:275)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    5. org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:237)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    6. org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:204)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    7. org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:173)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    8. org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:324)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    9. org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:246)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    10. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    11. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:98)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    12. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    13. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    13 frames
  5. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:315)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
    6 frames
  6. finagle-core
    ObjectExchangeApplication.main
    1. com.ObjectExchangeApplication.main(ObjectExchangeApplication.java:10)[classes/:na]
    1 frame