java - 无法获取 Windows Server 2012 上模块 : osgi. 标识的状态更改锁

标签 java eclipse windows-server-2012-r2

我无法打开在 Windows Server 2012 R2 标准版上运行的远程桌面上下载的 Eclipse。我该如何解决这个问题? 这是我尝试过的:

  • 已删除配置/.log 文件
  • 删除了configuration/org.eclipse.osgi/.manager中的.fileTable.1、.fileTable.2、.fileTableLock
  • 删除了configuration/org.eclipse.osgi中的framework.info.1

我无法随意重新启动共享服务器。 这是在我的 .eclipseproduct 中:

name=Eclipse Platform
id=org.eclipse.platform
version=4.6.3

这是日志文件的开头:

!ENTRY org.eclipse.equinox.ds 2 0 2018-02-16 10:28:57.812 !MESSAGE [SCR] 启用包 org.eclipse.ui.trace 的组件未在 30000 毫秒内完成

!ENTRY org.eclipse.core.runtime 4 0 2018-02-16 10:29:02.855
!MESSAGE FrameworkEvent ERROR
!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.12.0.v20160606-1342"; singleton:="true" [id=98] STARTED [STARTED]
    at org.eclipse.osgi.container.Module.lockStateChange(Module.java:337)
    at org.eclipse.osgi.container.Module.start(Module.java:401)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1620)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1600)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1571)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1514)
    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)
Caused by: java.util.concurrent.TimeoutException: Timeout after waiting 5 seconds to acquire the lock.
    at org.eclipse.osgi.container.Module.lockStateChange(Module.java:334)
    ... 8 more
Root exception:
java.util.concurrent.TimeoutException: Timeout after waiting 5 seconds to acquire the lock.
    at org.eclipse.osgi.container.Module.lockStateChange(Module.java:334)
    at org.eclipse.osgi.container.Module.start(Module.java:401)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1620)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1600)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1571)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1514)
    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)

最佳答案

我知道这个问题已经很老了,但仍然想添加我的 2 美分,因为它仍然没有得到解答。 转到安装 Eclipse 的位置。 您应该找到一个配置文件夹。 只需搜索该目录及其子目录中的所有“.fileTableLock”文件并删除这些文件即可。

您应该能够重新启动 IDE。

关于java - 无法获取 Windows Server 2012 上模块 : osgi. 标识的状态更改锁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48830549/

相关文章:

java - 无需类即可从 span 获取内容?

java - 请求的资源不可用错误 : Rest Jersey (Eclipse)

java - eclipse 中的 jboss-web.xml 验证错误

.net - 客户端和服务器无法通信,因为它们不具备通用算法 - SSLStream

php "glob"和重复数据删除?

python - 应要求 flask 挂起

java - 围绕图片中心旋转图片

java - 线程服务器卡在accept()上又名如何通过客户端输入关闭多线程服务器?

java - 从整数转换为 BigInteger

java - Eclipse 插件 - 查找源部件位置