java.lang.ClassCastException: java.lang.String cannot be cast to com.pbuddie.Packet

Coderanch | joe vasher | 6 years 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

    Can't Figure out why I get the cast error in this program at line 39

    Coderanch | 6 years ago | joe vasher
    java.lang.ClassCastException: java.lang.String cannot be cast to com.pbuddie.Packet

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to com.pbuddie.Packet

      at com.pbuddie.IOHandler.main()
    2. com.pbuddie
      IOHandler.main
      1. com.pbuddie.IOHandler.main(IOHandler.java:39)
      1 frame