迁移Eclipse应用至Java21时org.eclipse.sphinx.platform的BundleException问题
Eclipse应用迁移问题
我正在将Eclipse应用从Java 11迁移到Java 21,同时把Eclipse版本从4.16升级到4.33。应用在本地工作区能正常启动,但导出为Eclipse产品后,OSGI加载org.eclipse.sphinx.platform插件时抛出异常,报错日志如下:
org.osgi.framework.BundleException: Exception in org.eclipse.sphinx.platform.internal.Activator.start() of bundle org.eclipse.sphinx.platform. Caused by: java.lang.IllegalStateException: Workspace is already closed or not ready yet. Consider tracking the org.eclipse.core.resources.IWorkspace service (using your favorite technique, e.g. Declarative Services, ServiceTracker, Blueprint, ...) instead of calling the static method here to prevent such issues! at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:522)
环境信息
- Eclipse版本:4.33
- Java版本:21
- Sphinx版本:0.13.0
已排查情况
- 另一使用
org.eclipse.sphinx.platform插件的产品运行正常 - 已将该插件的类路径更新至Java 8
- 启动配置截图:

内容的提问来源于stack exchange,提问作者Manjunath S
相关产品推荐
相关产品推荐

