java.lang.RuntimeException: java.lang.AssertionError: java.io.IOException: Stream closed

GitHub | hzsweers | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Sporadic IOExceptions during parsedTemplateForResource

    GitHub | 7 months ago | hzsweers
    java.lang.RuntimeException: java.lang.AssertionError: java.io.IOException: Stream closed
  2. 0

    Underlying stream returned zero bytes

    Stack Overflow | 5 years ago | IchBinKeinBaum
    java.io.IOException: Underlying input stream returned zero bytes at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:268)

    Root Cause Analysis

    1. java.io.IOException

      Stream closed

      at java.util.zip.InflaterInputStream.ensureOpen()
    2. Java RT
      LineNumberReader.read
      1. java.util.zip.InflaterInputStream.ensureOpen(InflaterInputStream.java:67)
      2. java.util.zip.InflaterInputStream.read(InflaterInputStream.java:142)
      3. java.io.FilterInputStream.read(FilterInputStream.java:133)
      4. sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
      5. sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
      6. sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
      7. java.io.InputStreamReader.read(InputStreamReader.java:184)
      8. java.io.BufferedReader.read1(BufferedReader.java:210)
      9. java.io.BufferedReader.read(BufferedReader.java:286)
      10. java.io.BufferedReader.fill(BufferedReader.java:161)
      11. java.io.BufferedReader.read(BufferedReader.java:182)
      12. java.io.LineNumberReader.read(LineNumberReader.java:126)
      12 frames
    3. com.google.auto
      Template.parseFrom
      1. com.google.auto.value.processor.escapevelocity.Parser.next(Parser.java:141)
      2. com.google.auto.value.processor.escapevelocity.Parser.<init>(Parser.java:84)
      3. com.google.auto.value.processor.escapevelocity.Template.parseFrom(Template.java:57)
      3 frames
    4. AutoValue
      AutoValueProcessor.process
      1. com.google.auto.value.processor.TemplateVars.parsedTemplateForResource(TemplateVars.java:107)
      2. com.google.auto.value.processor.AutoValueTemplateVars.<clinit>(AutoValueTemplateVars.java:184)
      3. com.google.auto.value.processor.AutoValueProcessor.processType(AutoValueProcessor.java:441)
      4. com.google.auto.value.processor.AutoValueProcessor.process(AutoValueProcessor.java:150)
      4 frames
    5. com.facebook.buck
      TracingProcessorWrapper.process
      1. com.facebook.buck.jvm.java.TracingProcessorWrapper.process(TracingProcessorWrapper.java:104)
      1 frame
    6. Java Tools
      JavacTaskImpl.call
      1. com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
      2. com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)
      3. com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
      4. com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
      5. com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
      6. com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
      7. com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
      8. com.sun.tools.javac.main.Main.compile(Main.java:523)
      9. com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
      10. com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
      10 frames
    7. com.facebook.buck
      WeightedListeningExecutorService$1.apply
      1. com.facebook.buck.jvm.java.Jsr199Javac.buildWithClasspath(Jsr199Javac.java:247)
      2. com.facebook.buck.jvm.java.Jsr199Javac.buildWithClasspath(Jsr199Javac.java:155)
      3. com.facebook.buck.jvm.java.JavacStep.tryBuildWithFirstOrderDeps(JavacStep.java:154)
      4. com.facebook.buck.jvm.java.JavacStep.execute(JavacStep.java:137)
      5. com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:63)
      6. com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1223)
      7. com.facebook.buck.rules.CachingBuildEngine.access$4(CachingBuildEngine.java:1204)
      8. com.facebook.buck.rules.CachingBuildEngine$3$1.call(CachingBuildEngine.java:304)
      9. com.facebook.buck.rules.CachingBuildEngine$3$1.call(CachingBuildEngine.java:1)
      10. com.facebook.buck.util.concurrent.WeightedListeningExecutorService$1.apply(WeightedListeningExecutorService.java:65)
      11. com.facebook.buck.util.concurrent.WeightedListeningExecutorService$1.apply(WeightedListeningExecutorService.java:1)
      11 frames
    8. Guava
      Futures$2$1.run
      1. com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1442)
      2. com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1433)
      3. com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(Futures.java:1408)
      4. com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177)
      4 frames
    9. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames