如下,配置过 eclipse 后,再次打开,抛如下

org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: osgi.identity; osgi.identity="org.eclipse.core.runtime"; type="osgi.bundle"; version:Version="3.10.0.v20140318-2214"; singleton:="true" [id=86] STARTED [STARTED]
    at org.eclipse.osgi.container.Module.lockStateChange(Module.java:329)
    at org.eclipse.osgi.container.Module.start(Module.java:389)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.osgi 2 0 2019-05-26 14:10:00.538
!MESSAGE While loading class "org.eclipse.core.runtime.Plugin", thread "Thread[Start Level: Equinox Container: e00750cc-7c7f-0019-10e2-e33a4f7228ff,5,main]" timed out waiting (5001ms) for thread "Thread[Component Resolve Thread,5,main]" to finish starting bundle "org.eclipse.core.runtime_3.10.0.v20140318-2214 [86]". To avoid deadlock, thread "Thread[Start Level: Equinox Container: e00750cc-7c7f-0019-10e2-e33a4f7228ff,5,main]" is proceeding but "org.eclipse.core.runtime.Plugin" may not be fully initialized.
!STACK 0
org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: osgi.identity; osgi.identity="org.eclipse.core.runtime"; type="osgi.bundle"; version:Version="3.10.0.v20140318-2214"; singleton:="true" [id=86] STARTED [STARTED]


解决方法:

我的问题是由于 lombok.jar 引起的。
我先手动在D:\eclipse-2015\eclipse.ini加了 lombok.jar,  然后又使用了  java -jar D:/eclipse-2015/lombok.jar 来注册导致。
删除
 -Xboot classpath/a:lombok.jar
-javaagent:D:/eclipse-2015/lombok.jar
后解决问题.

...
-Xms128m
-Xmx768m
-javaagent:lombok.jar
//删除以下两行解决问题
-Xboot classpath/a:lombok.jar
-javaagent:D:/eclipse-2015/lombok.jar

以下方法供参考

Is there a way to fix it? And if not, is there a way to just hide that stupid exception (disable logging for a moment, clearing the log, whatever, I'm not picky)?

回答1:

This looks like the framework start up starts simpleconfigurator which tries to start the framework again. The framework detects this recursion and throws an exception to escape it. The problem appears to be in simpleconfigurator attempting the start the framework which is starting it.

回答2:

I solved problem by following these simple steps,

  1. Go to your eclipse directory and open configuration directory.
  2. open org.eclipse.osgi directory.
  3. open .manager folder.
  4. Delete .fileTableLock file.
  5. Restart your eclipse.

回答3:

I faced same issue.Deleting the given .log file from configuration folder and restarting eclipse should resolve your problem.

回答4:

I use Red Hat Developer Studio 10.4 (Eclipse 4.6) and i tried use Eclipse Checkstyle plugin.

After install i restarted my IDE and received the crash notification.

I tried all suggestions but only when i delete a file called framework.info.34 my problem was solved.

This file is in %eclipse_home%/configuration/org.eclipse.osgi folder.

回答5:

Issue pop-up after upgrading eclipse neon through update-site along with installation of some new plugins.

Step 01: I removed .fileTable.* lock files from ${eclipse_home}/configuration/org.eclipse.osgi/.manager directory.

Step 02: Removed osgi cache and other plugins cache by starting in eclipse clean mode

eclipse -clean

回答6:

i have the same issue,

i removed the files from respective places 1) "eclipse\configuration\org.eclipse.osgi.manager" .fileTableLock .fileTable3 .fileTable4

2) eclipse\configuration *.log

after that i opened the eclipse, it worked with out any restart of PC.

回答7:

for people that have this problem until runing eclipse in runtime from eclipse : clean folder : [yourEclipseSourceWorkspace]/.metadata/.plugins/org.eclipse.pde.core/[yourRunConfiguration]/org.eclipse.osgi/.manager [yourEclipseSourceWorkspace]/.metadata/.plugins/org.eclipse.pde.core/[yourRunConfiguration]/org.eclipse.osgi remove all files (not folder) then add to your configuration -clean as programm arg

eclipse 抛 error: could not create the java virtual machine.Error: A fatal exception has occurred解决方法相关推荐

  1. Error: Could not create the Java Virtual Machine.Error: A fatal exception has occurred. Progra

    本人学化学的小白,自学JAVA.本来电脑第一次本来装JDK17的时候,应该是装成功了,后来eclipse出了点问题,我以为是JDK17的问题,就卸载重装, 结果就悲剧了. 每次重装都有问题,win命令 ...

  2. Kafka启动出现Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Pr

    kafka启动时,出现报错! [root@Spark1 bin]# cat nohup.out Unrecognized VM option 'UseCompressedOops' Error: Co ...

  3. idea Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Progra

    问题描述 idea中启动工程报错:idea Error: Could not create the Java Virtual Machine. Error: A fatal exception has ...

  4. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program wil

    启动时报错 Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Progr ...

  5. Eclipse启动出现“Failed to create the Java Virtual Machine”错误

    Failed to create the Java Virtual Machine的本质是JVM内存分配不足. 启动eclipse的时候,JVM会自动分配内存,常见的包括Java堆,新生代和永久代的内 ...

  6. 解决eclipse无法启动:Failed to create the Java Virtual Machine

    为什么80%的码农都做不了架构师?>>>    在做pthon开发时,要用到eclipse+pydev,从eclipse官网下了个Eclipse,电脑上装了jdk了,解压后启动,发现 ...

  7. 执行eclipse,迅速failed to create the java virtual machine。

    它们必须在一排,否则会出现The Eclipse executable launcher was unable to locate its companion shared library的错误 打开 ...

  8. 打开Eclipse时出现Failed to create the Java Virtual Machine

    今天被这个坑惨了,找了半天原因,重装还是不行,结果发现出现在eclipse文件下的eclipse.ini这个文件上 好现在讲讲这么解决这个问题,在文件中你会看到这些内容: -startup plugi ...

  9. Error:Could not create the Java Virtual Machine. Error:A Fatal exception has occurred错误解决

    问题情况: 出现以上情况,可以通过以下方式进行解决: 1.判断机子是否安装了Java环境 确定自己已经设置环境变量:如JAVA_HOME,CLASSPATH,PATH 2.有些程序会有内存设置,有些程 ...

最新文章

  1. 不同的寻址方式的应用——将每行单词的前X个字母改为大写
  2. 工作192:vue项目如何刷新当前页面
  3. java 产生无重复的随机数,Java创建无重复的随机数
  4. 忙了12周,手机摄像头模组测试PCB板终于画出来了。
  5. js类型判断(数字、0、、undefined、null)
  6. 阿里五年晋升三次,选择真的大于努力?
  7. 四级信息安全工程师考试大纲
  8. 汇编---串传送指令MOVS
  9. android 更新相册,Android 图片存入系统相册更新显示实例详解
  10. 统一修改word中的一级标题字体
  11. CSDN问答标签技能树(一) —— 基本框架的构建
  12. SylixOS中的中断服务对象
  13. Android 4高级编程(第3版)》
  14. c-lodop自定义分页打印
  15. 如何用html自动关机电脑,如何设置电脑完东西自动关机
  16. NOI的1.8.20反反复复
  17. mmo中匹配机制的思考与实现
  18. 页面自动化之 selenium(一) 自动签到与签退
  19. js点击删除最后一个元素节点
  20. html js怎么访问url地址,HTML URL地址解析

热门文章

  1. JSP和ASP.NET到底谁才是未来的主宰
  2. HTTP协议2)----对于传输层的详细讲解
  3. RuntimeError: Failed to init API, possibly an invalid tessdata path: C:\User
  4. 【2022保研】双非上岸东南网安
  5. Macbook terminal: No application knows how to open问题
  6. 华为鸿蒙2.0开发文档和API
  7. jQuery知识重构
  8. 仪表盘故障图像识别_仪表自动识别方法汇总
  9. #defned typedef 以及#ifdef #define #ifndef #endif
  10. 词霸天下---词根252【-emper- = -imper- 命 令】