why I'm getting NotSerializableException exception though I've implemented 'Serializable'

后端 未结 3 415
抹茶落季
抹茶落季 2021-01-28 12:18

I\'ve implemented Serializable in class \'userInfo\'. Still I\'m getting exception. Here\'s the output console -

java.io.WriteAbortedException: writing aborted;         


        
3条回答
  •  遥遥无期
    2021-01-28 12:28

    why I'm getting NotSerializableException exception though I've implemented 'Serializable'

    You haven't.

    java.io.NotSerializableException: chatservernazmus.User public class userInfo implements Serializable{ public class User{

    The User class must be serializable as well.

提交回复
热议问题