0

我得到以下堆栈跟踪。只想知道你的第一印象是什么。似乎是说 Vectors 不能保存到 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)
4

1 回答 1

1

在将数据传递给 Berkeley DB 进行存储之前,您可能需要对数据进行序列化。

于 2009-06-08T11:05:56.720 回答