org.springframework.beans.factory.BeanDefinitionStoreException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • errors starting a simple spring boot application
    via Stack Overflow by saadko
    ,
  • 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.
    via by Ivan Sopov,
  • 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.
    via by Ivan Sopov,
  • docx4j can't open template file on mac os x
    via Stack Overflow by Pavel
    ,
  • Java unclear ZipException for commons-codec
    via Stack Overflow by DMurta
    ,
  • Error creating code coverage report with JaCoCo
    via Stack Overflow by dty
    ,
    • 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) at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:303)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:248)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:137)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:275)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:237)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:204)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:173)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:324)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:246)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:98)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE] at com.ObjectExchangeApplication.main(ObjectExchangeApplication.java:10)[classes/:na] Caused by: java.util.zip.ZipException: invalid LOC header (bad signature) at java.util.zip.ZipFile.read(Native Method)[na:1.8.0_92] at java.util.zip.ZipFile.access$1400(Unknown Source)[na:1.8.0_92] at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)[na:1.8.0_92] at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source)[na:1.8.0_92] at java.util.zip.InflaterInputStream.read(Unknown Source)[na:1.8.0_92] at java.io.FilterInputStream.read(Unknown Source)[na:1.8.0_92] at java.io.BufferedInputStream.fill(Unknown Source)[na:1.8.0_92] at java.io.BufferedInputStream.read1(Unknown Source)[na:1.8.0_92] at java.io.BufferedInputStream.read(Unknown Source)[na:1.8.0_92] at org.springframework.asm.ClassReader.readClass(ClassReader.java:463)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.asm.ClassReader.<init>(ClassReader.java:426)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:53)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:98)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:279)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] ... 19 more

    Users with the same issue

    linxiaolong
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    17 more bugmates