eclipse突然不能使用,显示错误日志在mybatis.log文件里面

今天eclipse突然不能用,说错误日志在eclipse安装路径的mybatis.log文件里面,查看日至一大堆错误报告,主要问题是以下:
!ENTRY org.eclipse.osgi 4 0 2011-05-17 15:16:33.921
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContainer
 at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:116)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.core.resources (69).
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:121)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
    at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:466)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 13 more
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources.
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
    ... 22 more
Caused by: java.lang.NullPointerException
    at org.eclipse.core.internal.resources.Workspace.newElement(Workspace.java:1774)
    at org.eclipse.core.internal.resources.SaveManager.readElement(SaveManager.java:511)
    at org.eclipse.core.internal.watson.ElementTreeReader$1.readData(ElementTreeReader.java:63)
    at org.eclipse.core.internal.dtree.DataTreeReader.readNode(DataTreeReader.java:89)
    at org.eclipse.core.internal.dtree.DataTreeReader.readNode(DataTreeReader.java:103)
    at org.eclipse.core.internal.dtree.DataTreeReader.readNode(DataTreeReader.java:103)
    at org.eclipse.core.internal.dtree.DataTreeReader.readNode(DataTreeReader.java:103)
    at org.eclipse.core.internal.dtree.DataTreeReader.readNode(DataTreeReader.java:103)
    at org.eclipse.core.internal.dtree.DataTreeReader.readTree(DataTreeReader.java:147)
    at org.eclipse.core.internal.watson.ElementTreeReaderImpl_1.readTree(ElementTreeReaderImpl_1.java:103)
    at org.eclipse.core.internal.watson.ElementTreeReader.readTree(ElementTreeReader.java:151)
    at org.eclipse.core.internal.watson.ElementTreeReaderImpl_1.readDeltaChain(ElementTreeReaderImpl_1.java:84)
    at org.eclipse.core.internal.watson.ElementTreeReader.readDeltaChain(ElementTreeReader.java:110)
    at org.eclipse.core.internal.resources.WorkspaceTreeReader_1.readTrees(WorkspaceTreeReader_1.java:232)
    at org.eclipse.core.internal.resources.WorkspaceTreeReader_1.readTree(WorkspaceTreeReader_1.java:166)
    at org.eclipse.core.internal.resources.SaveManager.restoreTree(SaveManager.java:978)
    at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:665)
    at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1503)
    at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:2134)
    at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1883)
    at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:406)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)

网上的主要解决方案是删除workspace目录下.metadata/.plugins的文件夹下的文件,然后重启,有的说把这个文件全部删除,有的说删除\.root\.indexes,还有的说删除\org.eclipse.core.resources\.snap文件(这个文件在我的工作空间中都没有),所以这个方法并不可靠。随后我在

这个网址找到了相关问题http://www.eclipse.org/forums/index.php/t/156204/;我解决的方案是重新安装了eclipse,然后使用原本的工作空间,可以解决我的问题。













阅读更多
文章标签: eclipse
个人分类: question
上一篇关于wireshark抓包获取的Frame:物理层的数据帧概况笔记
下一篇今天运行eclipse,然后报错:Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lan
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭