最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

BundleException when migrating Eclipse application to Java 21 using org.eclipse.sphinx.platform - Stack Overflow

programmeradmin3浏览0评论

I am migrating an Eclipse application from Java 11 to Java 21 and from Eclipse version 4.16 to Eclipse 4.33. The application launches and works fine in the local workspace. However, after exporting it as an Eclipse product, I encounter an issue when OSGI tries to load the .eclipse.sphinx.platform plugin. The following errors are logged:

.osgi.framework.BundleException: Exception in .eclipse.sphinx.platform.internal.Activator.start() of bundle .eclipse.sphinx.platform.

Caused by: java.lang.IllegalStateException: Workspace is already closed or not ready yet. Consider tracking the .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 .eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:522)

Details:

Eclipse Version: 4.33
Java Version: 21
Sphinx Version: 0.13.0

Observations:

Another product using the .eclipse.sphinx.platform plugin works fine. I have updated the classpaths of the plugins to Java 8.

Launch configuration:

发布评论

评论列表(0)

  1. 暂无评论