要写入的对象不是是实现接口java.io.Serializable

解决方案 »

  1.   

    writeObject方法的参数,那个Object对象必须是被序列化的对象,就是需要实现java.io.Serializable接口的对象
      

  2.   

    你的Object 是图吗?When traversing a graph, an object may be encountered that does not support the Serializable interface. In this case the NotSerializableException will be thrown and will identify the class of the non-serializable object.