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

使用个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 (标签-STM32|关键词-智能小车)
  • ¥20 关于#stm32#的问题,请各位专家解答!
  • ¥15 (标签-python)
  • ¥20 搭建awx,试了很多版本都有错
  • ¥15 java corba的客户端该如何指定使用本地某个固定IP去连接服务端?
  • ¥15 activiti工作流问题,求解答
  • ¥15 有人写过RPA后台管理系统么?
  • ¥15 Bioage计算生物学年龄
  • ¥20 如何将FPGA Alveo U50恢复原来出厂设置哇?
  • ¥50 cocos2d-x lua 在mac上接入lua protobuf?