java.lang.NullPointerException: Inflater has been closed

JIRA | Michal Malohlava | 1 year ago
  1. 0

    I'm trying to get Sparkling Water / H2O running on Amazon EMR 4.0.0. My setup is: Java 1.8.0_60 Spark 1.4.1 sparkling-water-1.4.7 spark-shell --jars sparkling-water-assembly-1.4.7-all.jar --master yarn-client --num-executors 20 --executor-cores 16 --executor-memory 17g --driver-memory 17g --conf spark.yarn.executor.memoryOverhead=4096 --conf spark.yarn.driver.memoryOverhead=4096 -i minimal-init.scala --driver-java-options -Dlog4j.configuration=file:/etc/spark/conf/log4j.properties minimal-init.scala contains just this: import org.apache.spark.h2o._ import org.apache.spark.examples.h2o._ val h2oContext = new H2OContext(sc) try { h2oContext.start() } catch { case e: Throwable => e.printStackTrace(); System.exit(1) } All loads fine, but when trying to run h2oContext.start, about 50% of the time I start losing executors with the following stack trace. The other 50% it starts fine, but then loses executors later when trying to actually do things. There is a very old bug in Java (JDK-7003462) with similar symptoms, but that was supposedly fixed in Java7; in my stack trace line numbers seem consistent with Java8 JRE, so my JRE should be correct. Any help is appreciated! Thanks Zeev java.lang.NullPointerException: Inflater has been closed at java.util.zip.Inflater.ensureOpen(Inflater.java:389) at java.util.zip.Inflater.inflate(Inflater.java:257) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:152) at java.io.FilterInputStream.read(FilterInputStream.java:133) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read(BufferedInputStream.java:265) at java.io.DataInputStream.readInt(DataInputStream.java:387) at javassist.bytecode.ClassFile.read(ClassFile.java:777) at javassist.bytecode.ClassFile.<init>(ClassFile.java:124) at javassist.CtClassType.getClassFile2(CtClassType.java:192) at javassist.compiler.MemberResolver.lookupMethod(MemberResolver.java:98) at javassist.compiler.MemberResolver.lookupMethod(MemberResolver.java:84) at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:711) at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:688) at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:157) at javassist.compiler.ast.CallExpr.accept(CallExpr.java:46) at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:242) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:330) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50) at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:292) at javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:274) at javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:44) at javassist.compiler.Javac.compileMethod(Javac.java:169) at javassist.compiler.Javac.compile(Javac.java:95) at javassist.CtNewMethod.make(CtNewMethod.java:74) at javassist.CtNewMethod.make(CtNewMethod.java:45) at water.Weaver.addMethod(Weaver.java:367) at water.Weaver.make_body(Weaver.java:360) at water.Weaver.genIcerClass(Weaver.java:181) at water.Weaver.javassistLoadClass(Weaver.java:133) at water.Weaver.genDelegate(Weaver.java:60) at water.TypeMap.getIcer(TypeMap.java:183) at water.TypeMap.getIcer(TypeMap.java:170) at water.Iced.icer(Iced.java:41) at water.Iced.write(Iced.java:47) at water.UDPHeartbeat.build_and_multicast(UDPHeartbeat.java:24) at water.HeartBeatThread.run(HeartBeatThread.java:135)

    JIRA | 1 year ago | Michal Malohlava
    java.lang.NullPointerException: Inflater has been closed
  2. 0

    I'm trying to get Sparkling Water / H2O running on Amazon EMR 4.0.0. My setup is: Java 1.8.0_60 Spark 1.4.1 sparkling-water-1.4.7 spark-shell --jars sparkling-water-assembly-1.4.7-all.jar --master yarn-client --num-executors 20 --executor-cores 16 --executor-memory 17g --driver-memory 17g --conf spark.yarn.executor.memoryOverhead=4096 --conf spark.yarn.driver.memoryOverhead=4096 -i minimal-init.scala --driver-java-options -Dlog4j.configuration=file:/etc/spark/conf/log4j.properties minimal-init.scala contains just this: import org.apache.spark.h2o._ import org.apache.spark.examples.h2o._ val h2oContext = new H2OContext(sc) try { h2oContext.start() } catch { case e: Throwable => e.printStackTrace(); System.exit(1) } All loads fine, but when trying to run h2oContext.start, about 50% of the time I start losing executors with the following stack trace. The other 50% it starts fine, but then loses executors later when trying to actually do things. There is a very old bug in Java (JDK-7003462) with similar symptoms, but that was supposedly fixed in Java7; in my stack trace line numbers seem consistent with Java8 JRE, so my JRE should be correct. Any help is appreciated! Thanks Zeev java.lang.NullPointerException: Inflater has been closed at java.util.zip.Inflater.ensureOpen(Inflater.java:389) at java.util.zip.Inflater.inflate(Inflater.java:257) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:152) at java.io.FilterInputStream.read(FilterInputStream.java:133) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read(BufferedInputStream.java:265) at java.io.DataInputStream.readInt(DataInputStream.java:387) at javassist.bytecode.ClassFile.read(ClassFile.java:777) at javassist.bytecode.ClassFile.<init>(ClassFile.java:124) at javassist.CtClassType.getClassFile2(CtClassType.java:192) at javassist.compiler.MemberResolver.lookupMethod(MemberResolver.java:98) at javassist.compiler.MemberResolver.lookupMethod(MemberResolver.java:84) at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:711) at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:688) at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:157) at javassist.compiler.ast.CallExpr.accept(CallExpr.java:46) at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:242) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:330) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50) at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:292) at javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:274) at javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:44) at javassist.compiler.Javac.compileMethod(Javac.java:169) at javassist.compiler.Javac.compile(Javac.java:95) at javassist.CtNewMethod.make(CtNewMethod.java:74) at javassist.CtNewMethod.make(CtNewMethod.java:45) at water.Weaver.addMethod(Weaver.java:367) at water.Weaver.make_body(Weaver.java:360) at water.Weaver.genIcerClass(Weaver.java:181) at water.Weaver.javassistLoadClass(Weaver.java:133) at water.Weaver.genDelegate(Weaver.java:60) at water.TypeMap.getIcer(TypeMap.java:183) at water.TypeMap.getIcer(TypeMap.java:170) at water.Iced.icer(Iced.java:41) at water.Iced.write(Iced.java:47) at water.UDPHeartbeat.build_and_multicast(UDPHeartbeat.java:24) at water.HeartBeatThread.run(HeartBeatThread.java:135)

    JIRA | 1 year ago | Michal Malohlava
    java.lang.NullPointerException: Inflater has been closed
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    exported Linux sketches must be run from the sketch folder

    GitHub | 4 years ago | processing-bugs
    java.lang.NullPointerException
  5. 0

    Applets exported by PDE don't find data folder in 1.5

    GitHub | 4 years ago | processing-bugs
    java.lang.NullPointerException

    1 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.lang.NullPointerException

      Inflater has been closed

      at java.util.zip.Inflater.ensureOpen()
    2. Java RT
      DataInputStream.readInt
      1. java.util.zip.Inflater.ensureOpen(Inflater.java:389)
      2. java.util.zip.Inflater.inflate(Inflater.java:257)
      3. java.util.zip.InflaterInputStream.read(InflaterInputStream.java:152)
      4. java.io.FilterInputStream.read(FilterInputStream.java:133)
      5. java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
      6. java.io.BufferedInputStream.read(BufferedInputStream.java:265)
      7. java.io.DataInputStream.readInt(DataInputStream.java:387)
      7 frames
    3. Javassist
      CtNewMethod.make
      1. javassist.bytecode.ClassFile.read(ClassFile.java:777)
      2. javassist.bytecode.ClassFile.<init>(ClassFile.java:124)
      3. javassist.CtClassType.getClassFile2(CtClassType.java:192)
      4. javassist.compiler.MemberResolver.lookupMethod(MemberResolver.java:98)
      5. javassist.compiler.MemberResolver.lookupMethod(MemberResolver.java:84)
      6. javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:711)
      7. javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:688)
      8. javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:157)
      9. javassist.compiler.ast.CallExpr.accept(CallExpr.java:46)
      10. javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:242)
      11. javassist.compiler.CodeGen.atStmnt(CodeGen.java:330)
      12. javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
      13. javassist.compiler.CodeGen.atStmnt(CodeGen.java:351)
      14. javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
      15. javassist.compiler.CodeGen.atMethodBody(CodeGen.java:292)
      16. javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:274)
      17. javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:44)
      18. javassist.compiler.Javac.compileMethod(Javac.java:169)
      19. javassist.compiler.Javac.compile(Javac.java:95)
      20. javassist.CtNewMethod.make(CtNewMethod.java:74)
      21. javassist.CtNewMethod.make(CtNewMethod.java:45)
      21 frames
    4. water
      HeartBeatThread.run
      1. water.Weaver.addMethod(Weaver.java:367)
      2. water.Weaver.make_body(Weaver.java:360)
      3. water.Weaver.genIcerClass(Weaver.java:181)
      4. water.Weaver.javassistLoadClass(Weaver.java:133)
      5. water.Weaver.genDelegate(Weaver.java:60)
      6. water.TypeMap.getIcer(TypeMap.java:183)
      7. water.TypeMap.getIcer(TypeMap.java:170)
      8. water.Iced.icer(Iced.java:41)
      9. water.Iced.write(Iced.java:47)
      10. water.UDPHeartbeat.build_and_multicast(UDPHeartbeat.java:24)
      11. water.HeartBeatThread.run(HeartBeatThread.java:135)
      11 frames