已解决:Mac Eclipse启动An error has occurred报错!MESSAGE FrameworkEvent ERROR

解决方法:

删除文件 [workspace]/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi

注:(.metadata是隐藏文件,Mac电脑需终端执行

defaults write com.apple.finder AppleShowAllFiles -boolean true;killall Finder

以显示隐藏文件)

我是手动安装scala插件后eclipse提示重启,点击重启后就重启不起来了,查看/.metadata/.log为下述报错后,采用本方法,解决问题


适用于:

文件 [workspace]/.metadata/.log 中最近的报错为:

!ENTRY org.eclipse.mylyn.tasks.ui 4 0 2018-08-16 21:21:44.725

!MESSAGE FrameworkEvent ERROR

!STACK 0

org.osgi.framework.BundleException: Exception in org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.stop() of bundle org.eclipse.mylyn.tasks.ui.

at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:850)

at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:946)

at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:314)

at org.eclipse.osgi.container.Module.doStop(Module.java:636)

at org.eclipse.osgi.container.Module.stop(Module.java:498)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1661)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1580)

at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:270)

at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:147)

at org.eclipse.osgi.container.Module.doStop(Module.java:636)

at org.eclipse.osgi.container.Module.stop(Module.java:498)

at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202)

at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.ExceptionInInitializerError

at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.stop(TasksUiPlugin.java:841)

at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:830)

at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:1)

at java.security.AccessController.doPrivileged(Native Method)

at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:823)

... 13 more

Caused by: org.eclipse.swt.SWTException: Invalid thread access

at org.eclipse.swt.SWT.error(SWT.java:4533)

at org.eclipse.swt.SWT.error(SWT.java:4448)

at org.eclipse.swt.SWT.error(SWT.java:4419)

at org.eclipse.swt.widgets.Display.error(Display.java:1089)

at org.eclipse.swt.widgets.Display.createDisplay(Display.java:840)

at org.eclipse.swt.widgets.Display.create(Display.java:823)

at org.eclipse.swt.graphics.Device.(Device.java:129)

at org.eclipse.swt.widgets.Display.(Display.java:722)

at org.eclipse.swt.widgets.Display.(Display.java:713)

at org.eclipse.swt.widgets.Display.getDefault(Display.java:1419)

at org.eclipse.mylyn.commons.ui.compatibility.CommonColors.(CommonColors.java:28)

... 18 more

Root exception:

java.lang.ExceptionInInitializerError

at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.stop(TasksUiPlugin.java:841)

at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:830)

at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:1)

at java.security.AccessController.doPrivileged(Native Method)

at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:823)

at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:946)

at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:314)

at org.eclipse.osgi.container.Module.doStop(Module.java:636)

at org.eclipse.osgi.container.Module.stop(Module.java:498)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1661)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1580)

at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:270)

at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:147)

at org.eclipse.osgi.container.Module.doStop(Module.java:636)

at org.eclipse.osgi.container.Module.stop(Module.java:498)

at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202)

at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)

at java.lang.Thread.run(Thread.java:748)

Caused by: org.eclipse.swt.SWTException: Invalid thread access

at org.eclipse.swt.SWT.error(SWT.java:4533)

at org.eclipse.swt.SWT.error(SWT.java:4448)

at org.eclipse.swt.SWT.error(SWT.java:4419)

at org.eclipse.swt.widgets.Display.error(Display.java:1089)

at org.eclipse.swt.widgets.Display.createDisplay(Display.java:840)

at org.eclipse.swt.widgets.Display.create(Display.java:823)

at org.eclipse.swt.graphics.Device.(Device.java:129)

at org.eclipse.swt.widgets.Display.(Display.java:722)

at org.eclipse.swt.widgets.Display.(Display.java:713)

at org.eclipse.swt.widgets.Display.getDefault(Display.java:1419)

at org.eclipse.mylyn.commons.ui.compatibility.CommonColors.(CommonColors.java:28)

... 18 more




参考链接:http://events.jianshu.io/p/8892ac08cbc3

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
启动Eclipse时出现"An error has occurred. See the log file"的错误提示时,这通常是由于Eclipse遇到了一些问题导致无法正常启动。最常见的原因包括插件冲突、配置文件损坏或者JVM相关问题。 解决这个问题的方法有几种: 1. 查看日志文件:根据引用的建议,你可以查看Eclipse生成的日志文件以获取更多的错误信息。日志文件通常位于Eclipse安装目录下的"configuration"文件夹中的"log"文件夹内。打开最新的日志文件,查找其中的错误信息,可能会有助于确定问题所在。 2. 清除插件缓存:有时候,插件缓存可能会导致启动问题。根据引用的建议,你可以通过命令行进入Eclipse目录,然后运行命令"eclipse.exe -clean"来清除插件缓存并启动Eclipse。这个命令将会清除Eclipse的缓存文件夹,并重新构建插件目录。 3. 检查JVM配置:如果以上方法无法解决问题,那么可能是由于JVM相关的配置问题导致的。你可以检查Eclipse的配置文件中的JVM路径是否正确,并确保你的系统已经正确配置了JDK。 总结来说,当Eclipse启动时出现"An error has occurred. See the log file"的错误提示时,你可以先查看日志文件以获取更多的错误信息。然后尝试清除插件缓存,如果问题仍然存在,检查JVM配置可能是一个解决方案。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [An error has occured.See the log file](https://blog.csdn.net/hshudoudou/article/details/119740934)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Eclipse错误——an error has occured see the log file](https://blog.csdn.net/weixin_46111223/article/details/123684174)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值