java.io.IOException: Stream closed

Hibernate JIRA | Elmer van Chastelet | 5 years ago
  1. 0

    While migrating our project to the new Hibernate Core 4.0, I came across an exception which was thrown during metadatasources.buildMetadata(). Emmanuel helped me to find the cause, which were the missing package-info.java files for the packages I add to the MetadataSources object. If possible, improve this exception message to include info about the file that fails to load. {code} Sep 5, 2011 4:17:46 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Allocate exception for servlet mainservlet java.io.IOException: Stream closed at java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:151) 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 java.io.DataInputStream.readFully(DataInputStream.java:195) at java.io.DataInputStream.readFully(DataInputStream.java:169) at org.jboss.jandex.Indexer.verifyMagic(Indexer.java:387) at org.jboss.jandex.Indexer.index(Indexer.java:628) at org.hibernate.metamodel.source.annotations.AnnotationMetadataSourceProcessorImpl.indexClass(AnnotationMetadataSourceProcessorImpl.java:159) at org.hibernate.metamodel.source.annotations.AnnotationMetadataSourceProcessorImpl.prepare(AnnotationMetadataSourceProcessorImpl.java:85) at org.hibernate.metamodel.source.internal.MetadataImpl.prepare(MetadataImpl.java:180) at org.hibernate.metamodel.source.internal.MetadataImpl.<init>(MetadataImpl.java:165) at org.hibernate.metamodel.source.internal.MetadataBuilderImpl.buildMetadata(MetadataBuilderImpl.java:83) at org.hibernate.metamodel.MetadataSources.buildMetadata(MetadataSources.java:112) at utils.HibernateUtilConfigured.<clinit>(HibernateUtilConfigured.java:60) at utils.DispatchServlet.tryLoadGlobalsAndPerformInit(DispatchServlet.java:19) at utils.DispatchServlet.init(DispatchServlet.java:39) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:679) {code}

    Hibernate JIRA | 5 years ago | Elmer van Chastelet
    java.io.IOException: Stream closed
  2. 0

    While migrating our project to the new Hibernate Core 4.0, I came across an exception which was thrown during metadatasources.buildMetadata(). Emmanuel helped me to find the cause, which were the missing package-info.java files for the packages I add to the MetadataSources object. If possible, improve this exception message to include info about the file that fails to load. {code} Sep 5, 2011 4:17:46 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Allocate exception for servlet mainservlet java.io.IOException: Stream closed at java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:151) 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 java.io.DataInputStream.readFully(DataInputStream.java:195) at java.io.DataInputStream.readFully(DataInputStream.java:169) at org.jboss.jandex.Indexer.verifyMagic(Indexer.java:387) at org.jboss.jandex.Indexer.index(Indexer.java:628) at org.hibernate.metamodel.source.annotations.AnnotationMetadataSourceProcessorImpl.indexClass(AnnotationMetadataSourceProcessorImpl.java:159) at org.hibernate.metamodel.source.annotations.AnnotationMetadataSourceProcessorImpl.prepare(AnnotationMetadataSourceProcessorImpl.java:85) at org.hibernate.metamodel.source.internal.MetadataImpl.prepare(MetadataImpl.java:180) at org.hibernate.metamodel.source.internal.MetadataImpl.<init>(MetadataImpl.java:165) at org.hibernate.metamodel.source.internal.MetadataBuilderImpl.buildMetadata(MetadataBuilderImpl.java:83) at org.hibernate.metamodel.MetadataSources.buildMetadata(MetadataSources.java:112) at utils.HibernateUtilConfigured.<clinit>(HibernateUtilConfigured.java:60) at utils.DispatchServlet.tryLoadGlobalsAndPerformInit(DispatchServlet.java:19) at utils.DispatchServlet.init(DispatchServlet.java:39) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:679) {code}

    Hibernate JIRA | 5 years ago | Elmer van Chastelet
    java.io.IOException: Stream closed
  3. 0

    train

    GitHub | 2 years ago | mohagheghiyan
    java.io.IOException: Stream closed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    decoding with new trained model

    GitHub | 11 months ago | ghost
    java.io.IOException: Stream closed
  6. 0

    Exception while trying to run SRL

    GitHub | 11 months ago | eme-ele
    java.io.IOException: Stream closed

    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.io.IOException

      Stream closed

      at java.io.BufferedInputStream.getInIfOpen()
    2. Java RT
      DataInputStream.readFully
      1. java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:151)
      2. java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
      3. java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
      4. java.io.BufferedInputStream.read(BufferedInputStream.java:334)
      5. java.io.DataInputStream.readFully(DataInputStream.java:195)
      6. java.io.DataInputStream.readFully(DataInputStream.java:169)
      6 frames
    3. Java Annotation Indexer
      Indexer.index
      1. org.jboss.jandex.Indexer.verifyMagic(Indexer.java:387)
      2. org.jboss.jandex.Indexer.index(Indexer.java:628)
      2 frames
    4. Hibernate
      MetadataSources.buildMetadata
      1. org.hibernate.metamodel.source.annotations.AnnotationMetadataSourceProcessorImpl.indexClass(AnnotationMetadataSourceProcessorImpl.java:159)
      2. org.hibernate.metamodel.source.annotations.AnnotationMetadataSourceProcessorImpl.prepare(AnnotationMetadataSourceProcessorImpl.java:85)
      3. org.hibernate.metamodel.source.internal.MetadataImpl.prepare(MetadataImpl.java:180)
      4. org.hibernate.metamodel.source.internal.MetadataImpl.<init>(MetadataImpl.java:165)
      5. org.hibernate.metamodel.source.internal.MetadataBuilderImpl.buildMetadata(MetadataBuilderImpl.java:83)
      6. org.hibernate.metamodel.MetadataSources.buildMetadata(MetadataSources.java:112)
      6 frames
    5. utils
      DispatchServlet.init
      1. utils.HibernateUtilConfigured.<clinit>(HibernateUtilConfigured.java:60)
      2. utils.DispatchServlet.tryLoadGlobalsAndPerformInit(DispatchServlet.java:19)
      3. utils.DispatchServlet.init(DispatchServlet.java:39)
      3 frames
    6. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:212)
      1 frame
    7. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
      2. org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      7. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
      8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      9 frames
    8. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      3 frames
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:679)
      1 frame