java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.
at utilitlybl.IOHelper.readFile(IOHelper.java:10)
at stockdata.StockListDataController.readFile(StockListDataController.java:163)
at stockdata.StockListDataController.getWarningList(StockListDataController.java:35)
at stockdata.StockListDataController.addWarningList(StockListDataController.java:143)
at stockdata.StockListDataController.main(StockListDataController.java:181)
Exception in thread "main" java.lang.ClassCastException: java.lang.Object cannot be cast to java.util.ArrayList
at stockdata.StockListDataController.getWarningList(StockListDataController.java:35)
at stockdata.StockListDataController.addWarningList(StockListDataController.java:143)
at stockdata.StockListDataController.main(StockListDataController.java:181)
当,我先有序列化对象写入文件时,便是正常的读取,这样的问题应该如何解决,高分悬赏,求高手帮忙