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

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

    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