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

I am migrating an Eclipse application from Java 11 to Java 21 and from Eclipse version 4.16 to Eclipse

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:

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744814877a4595262.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信