我得到以下堆栈跟踪。只是想知道你的第一印象是什么。它似乎是说Vector无法保存到Berkeley DB。我还能为您提供什么,这将有助于解决这个问题。
Exception in thread "Timer-0" java.lang.IllegalArgumentException: Class could not be loaded or is not persistent: java.util.Vector
at com.sleepycat.persist.impl.PersistCatalog.createFormat(PersistCatalog.java:588)
at com.sleepycat.persist.impl.FieldInfo.collectRelatedFormats(FieldInfo.java:131)
at com.sleepycat.persist.impl.ComplexFormat.collectRelatedFormats(ComplexFormat.java:262)
at com.sleepycat.persist.impl.PersistCatalog.createFormat(PersistCatalog.java:616)
at com.sleepycat.persist.impl.PersistCatalog.addNewFormat(PersistCatalog.java:805)
at com.sleepycat.persist.impl.PersistCatalog.getFormat(PersistCatalog.java:745)
at com.sleepycat.persist.impl.PersistEntityBinding.getOrCreateFormat(PersistEntityBinding.java:176)
at com.sleepycat.persist.impl.PersistEntityBinding.<init>(PersistEntityBinding.java:36)
at com.sleepycat.persist.impl.Store.getPrimaryIndex(Store.java:328)
at com.sleepycat.persist.EntityStore.getPrimaryIndex(EntityStore.java:257)
at db.LastTopMovesDA.<init>(LastTopMovesDA.java:24)
at dao.LastTopMove.saveLastTopMove(LastTopMove.java:59)
at model.logic.MoveFilter.getTopMoves(MoveFilter.java:172)
at controller.Poller$1.run(Poller.java:50)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
答案 0 :(得分:1)
您可能需要先将数据序列化,然后再将其传递给Berkeley DB进行存储。