org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/u02/techen/var/build-work/AEFW2.1/wsad/AEFWCore/target/test-classes/com/example/framework/context/test-context1/beans-test.xml]; nested exception is java.lang.IllegalStateException: zip file closed

spring.io | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    IllegalStateException: Zip file closed? - Spring Forum

    spring.io | 8 months ago
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/u02/techen/var/build-work/AEFW2.1/wsad/AEFWCore/target/test-classes/com/example/framework/context/test-context1/beans-test.xml]; nested exception is java.lang.IllegalStateException: zip file closed
  2. 0

    Mule deployment throws zip file closed error

    Stack Overflow | 3 years ago | aditya11
    java.lang.IllegalStateException: zip file closed
  3. 0

    Flyway can't start from Spring bean

    Stack Overflow | 4 years ago
    java.lang.IllegalStateException: zip file closed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Requesting resource from URLClassLoader results in "zip file closed" exception

    Stack Overflow | 11 months ago | Rafael Winterhalter
    java.lang.IllegalStateException: zip file closed

    Root Cause Analysis

    1. java.lang.IllegalStateException

      zip file closed

      at java.util.zip.ZipFile.getEntry()
    2. Java RT
      ClassLoader.getResourceAsStream
      1. java.util.zip.ZipFile.getEntry(ZipFile.java:284)
      2. java.util.jar.JarFile.getEntry(JarFile.java:283)
      3. sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:105)
      4. sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:144)
      5. sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:156)
      6. java.net.URL.openStream(URL.java:1041)
      7. java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:484)
      7 frames
    3. Spring Core
      ClassPathResource.getInputStream
      1. org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:139)
      1 frame
    4. Spring Beans
      ResourceEntityResolver.resolveEntity
      1. org.springframework.beans.factory.xml.PluggableSchemaResolver.resolveEntity(PluggableSchemaResolver.java:110)
      2. org.springframework.beans.factory.xml.DelegatingEntityResolver.resolveEntity(DelegatingEntityResolver.java:85)
      3. org.springframework.beans.factory.xml.ResourceEntityResolver.resolveEntity(ResourceEntityResolver.java:73)
      3 frames
    5. Xerces2-j
      DocumentBuilderImpl.parse
      1. org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
      2. org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
      3. org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source)
      4. org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)
      5. org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
      6. org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
      7. org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      8. org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
      9. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      10. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      11. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      12. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      13. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      14. org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      15. org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      15 frames
    6. Spring Beans
      AbstractBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
      2. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:382)
      3. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
      4. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:296)
      5. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
      6. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
      7. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
      8. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
      8 frames
    7. Spring Context
      ClassPathXmlApplicationContext.<init>
      1. org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
      2. org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80)
      3. org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
      4. org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)
      5. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)
      6. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
      7. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
      7 frames
    8. com.example.framework
      BeanResolverTest.setUp
      1. com.example.framework.context.BeanResolverTest.setUp(BeanResolverTest.java:23)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:618)
      4 frames
    10. JUnit
      JUnit4ClassRunner.run
      1. org.junit.internal.runners.MethodRoadie.runBefores(MethodRoadie.java:122)
      2. org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:86)
      3. org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
      4. org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
      5. org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
      6. org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
      7. org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
      8. org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
      9. org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
      10. org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
      10 frames
    11. JUnit4 Provider
      JUnit4TestSet.execute
      1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
      1 frame
    12. SureFire
      Surefire.run
      1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
      2. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
      3. org.apache.maven.surefire.Surefire.run(Surefire.java:177)
      3 frames
    13. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:618)
      4 frames
    14. SureFire
      SurefireBooter.main
      1. org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
      2. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
      2 frames