一大早启动dbeaver,报错,重启电脑也是不行,重新安装了dbeaver,还是不行,不能盲目地处理问题。
于是照着提示查找日志文件,C:\Users\wangyongqi\AppData\Roaming\DBeaverData\workspace6\是dbeaver连接配置、驱动下载文件夹(由于修复好以后没保存截图,所以偷了一个图)。(AppData是隐藏文件夹)
报错信息
Root exception:
org.eclipse.core.internal.dtree.ObjectNotFoundException: 找不到树元素“/General/Scripts/Script-1.sql”。
at org.eclipse.core.internal.dtree.AbstractDataTree.handleNotFound(AbstractDataTree.java:260)
at org.eclipse.core.internal.dtree.DeltaDataTree.getData(DeltaDataTree.java:599)
at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:54)
at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:63)
at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:63)
at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:51)
at org.eclipse.core.internal.dtree.DeltaDataTree.asBackwardDelta(DeltaDataTree.java:91)
at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:835)
at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:834)
at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:834)
at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:834)
at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:834)
at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:834)
at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:811)
at org.eclipse.core.internal.watson.ElementTree.immutable(ElementTree.java:522)
at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:731)
at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1555)
at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:2452)
at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:2210)
at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:489)
at org.eclipse.osgi.internal.framework.BundleContextImpl$2.run(BundleContextImpl.java:814)
at org.eclipse.osgi.internal.framework.BundleContextImpl$2.run(BundleContextImpl.java:1)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:806)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:763)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1011)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365)
at org.eclipse.osgi.container.Module.doStart(Module.java:605)
at org.eclipse.osgi.container.Module.start(Module.java:468)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:506)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:572)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:346)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:398)
at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:41)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:473)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at org.jkiss.dbeaver.core.DBeaverCore.initialize(DBeaverCore.java:157)
at org.jkiss.dbeaver.core.DBeaverCore.createInstance(DBeaverCore.java:106)
at org.jkiss.dbeaver.core.DBeaverCore.getInstance(DBeaverCore.java:86)
at org.jkiss.dbeaver.core.DBeaverCoreAdapterFactory.getAdapter(DBeaverCoreAdapterFactory.java:33)
at org.eclipse.core.internal.runtime.AdapterManager.getAdapter(AdapterManager.java:339)
at org.eclipse.core.internal.runtime.AdapterManager.loadAdapter(AdapterManager.java:366)
at org.jkiss.dbeaver.utils.GeneralUtils.queryAdapterManager(GeneralUtils.java:732)
at org.jkiss.dbeaver.utils.GeneralUtils.adapt(GeneralUtils.java:711)
at org.jkiss.dbeaver.utils.GeneralUtils.adapt(GeneralUtils.java:726)
at org.jkiss.dbeaver.runtime.DBWorkbench.getPlatform(DBWorkbench.java:45)
at org.jkiss.dbeaver.ui.app.standalone.DBeaverApplication.initDebugWriter(DBeaverApplication.java:548)
at org.jkiss.dbeaver.ui.app.standalone.DBeaverApplication.start(DBeaverApplication.java:213)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1461)
!SUBENTRY 4 org.jkiss.dbeaver.model 4 0 2021-07-05 15:25:33.671
!MESSAGE 找不到树元素“/General/Scripts/Script-1.sql”。
!STACK 0
看到类似的系统报错,去找配置文件准没错,首先查看了上面日志说的Script-1.sql,发现啥也没有
然后找到安装根目录/configuration/settings/org.eclipse.ui.ide.prefs,用Notepad++打开

由于这个目录下就这一个文件,那么肯定就是它了

方法相对简单,看到这个配置是一个目录,直接改名 把6改成7 然后让他重新初始化一次就行了。
然后重新尝试打开DBserve 打开成功。
但是产生了新的问题,由于刚才我们更换了目录,所以所有数据库原有配置清空了,而且新的目录里没有相关的依赖,SO

我们直接创建一个新的链接,然后直接点击测试链接,并点击强制下载依赖,让他重新初始化一次就OK了。
dbeaver报错解决:丢失的Script-1.sql配置重置解决过程
5310





