itanger 2008-06-19 09:29
浏览 221
已采纳

使用个db4o的请进

这是我在使用db4oobjectmanager打开.yap数据库时报的错

java.lang.RuntimeException: File format incompatible.
at com.db4o.inside.Exceptions4.throwRuntimeException(Unknown Source)
at com.db4o.inside.Exceptions4.throwRuntimeException(Unknown Source)
at com.db4o.YapFile.readThis(Unknown Source)
at com.db4o.YapRandomAccessFile.open(Unknown Source)
at com.db4o.YapRandomAccessFile.(Unknown Source)
at com.db4o.Sessions.open(Unknown Source)
at com.db4o.Db4o.openFile(Unknown Source)
at com.db4o.browser.model.Db4oFileConnectionSpec.connectInternal(Unknown
Source)
at com.db4o.browser.model.Db4oConnectionSpec.connect(Unknown Source)
at com.db4o.browser.model.Db4oDatabase.reopen(Unknown Source)
at com.db4o.browser.model.Db4oDatabase.open(Unknown Source)
at com.db4o.browser.model.BrowserCore.getDatabase(Unknown Source)
at com.db4o.browser.model.BrowserCore.iterator(Unknown Source)
at com.db4o.browser.gui.controllers.BrowserTabController.internalSetInpu
t(Unknown Source)
at com.db4o.browser.gui.controllers.BrowserTabController.open(Unknown So
urce)
at com.db4o.browser.gui.controllers.BrowserTabController.open(Unknown So
urce)
at com.db4o.browser.gui.standalone.StandaloneBrowser$3.widgetSelected(Un
known Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:844)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3070)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2703)
at com.db4o.browser.gui.standalone.SWTProgram.runWithLog(Unknown Source)

    at com.db4o.browser.gui.standalone.StandaloneBrowser.main(Unknown Source

)

Uncaught exception in SWT event loop
java.lang.IllegalArgumentException: Could not open: F:\work_union\DB4oTest\auto.
yap
at com.db4o.browser.model.Db4oDatabase.reopen(Unknown Source)
at com.db4o.browser.model.Db4oDatabase.open(Unknown Source)
at com.db4o.browser.model.BrowserCore.getDatabase(Unknown Source)
at com.db4o.browser.model.BrowserCore.iterator(Unknown Source)
at com.db4o.browser.gui.controllers.BrowserTabController.internalSetInpu
t(Unknown Source)
at com.db4o.browser.gui.controllers.BrowserTabController.open(Unknown So
urce)
at com.db4o.browser.gui.controllers.BrowserTabController.open(Unknown So
urce)
at com.db4o.browser.gui.standalone.StandaloneBrowser$3.widgetSelected(Un
known Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:844)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3070)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2703)
at com.db4o.browser.gui.standalone.SWTProgram.runWithLog(Unknown Source)

    at com.db4o.browser.gui.standalone.StandaloneBrowser.main(Unknown Source

)

[b]问题补充:[/b]
我用了objectmanager-1.7.1-win_novm 和 objectmanager-6.1连个版本都不行啊 我能确认那个数据库文件是正确的 我用程序读出来了

  • 写回答

3条回答 默认 最新

  • iteye_7852 2008-06-20 10:11
    关注

    给你解释了,就是不行阿,目前没有支持最新版本的objectmanager

    明白了吗,或者等过一段时间就有了。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀