java.io.StreamCorruptedException: Type code out of range, is 0

Oracle Community | 843797 | 2 decades ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Multithreaded chat server/client -- java.io.StreamCorruptedException

    Oracle Community | 2 decades ago | 843797
    java.io.StreamCorruptedException: Type code out of range, is 0

    Root Cause Analysis

    1. java.io.StreamCorruptedException

      Type code out of range, is 0

      at java.io.ObjectInputStream.peekCode()
    2. Java RT
      ObjectInputStream.refill
      1. java.io.ObjectInputStream.peekCode(ObjectInputStream.java:1556)
      2. java.io.ObjectInputStream.refill(ObjectInputStream.java:1684)
      2 frames