构建 RCP 应用程序没有 运行 生命周期管理器

Build RCP application didn't run the lifecyclemanager

我希望我解决了我的 RCP 应用程序的所有插件和依赖性问题。 我希望这是我的最后一期,所以目前我的生命周期管理器没有在构建 RCP 应用程序中运行。 我有几个用户权限,我将我的 Application.e4xmi 中的所有视图定义为不可见。

我在生命周期管理器中做了什么: - 打开一个登录对话框 - 成功登录后加载我的用户数据 - 为定义的用户权限设置所有视图可见

所以目前我的 RCP 已启动,但它是空白的 window。

我已经将日志消息插入到生命周期管理器中,但这些消息没有显示在日志中。 我发现了一个关于此异常消息的 eclipse 错误,但我没有找到解决方案,并且 eclipse 错误已设置为 "Resolved Fixed".

这些是构建 RCP 应用程序日志中的异常:

!SESSION 2019-02-15 09:09:24.364 -----------------------------------------------
eclipse.buildId=unknown
java.version=11.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -clearPersistedState
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -clearPersistedState

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:26.616
!MESSAGE Unable to load class 'app.LifeCycleManager' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.LifeCycleManager cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:27.025
!MESSAGE Unable to load class 'app.application.handler.AboutHandler' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.application.handler.AboutHandler cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:27.037
!MESSAGE Unable to load class 'app.application.handler.BookingRulesHandler' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.application.handler.BookingRulesHandler cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:27.044
!MESSAGE Unable to load class 'app.application.handler.ChangePasswordHandler' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.application.handler.ChangePasswordHandler cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:27.050
!MESSAGE Unable to load class 'app.parts.TimePart.handler.LastYearTimesHandler' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.parts.TimePart.handler.LastYearTimesHandler cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:27.055
!MESSAGE Unable to load class 'app.application.handler.QuitHandler' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.application.handler.QuitHandler cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:27.062
!MESSAGE Unable to load class 'app.application.handler.RefreshHandler' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.application.handler.RefreshHandler cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:27.068
!MESSAGE Unable to load class 'app.parts.TimePart.handler.SubmitHandler' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.parts.TimePart.handler.SubmitHandler cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:27.075
!MESSAGE Unable to load class 'app.parts.TimePart.handler.UnlockTimeHandler' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.parts.TimePart.handler.UnlockTimeHandler cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:27.081
!MESSAGE Unable to load class 'app.application.handler.UsersGuideHandler' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.application.handler.UsersGuideHandler cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:27.088
!MESSAGE Unable to load class 'app.parts.TimePart.handler.HideApprovedTimesHandler' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.parts.TimePart.handler.HideApprovedTimesHandler cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:27.094
!MESSAGE Unable to load class 'app.parts.activityPart.handler.CollapseAllHandler' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.parts.activityPart.handler.CollapseAllHandler cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:27.100
!MESSAGE Unable to load class 'app.parts.activityPart.handler.ShowClosedActivitiesHandler' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.parts.activityPart.handler.ShowClosedActivitiesHandler cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-02-15 09:09:27.796
!MESSAGE Unable to load class 'app.application.StatusBar' from bundle '4'
!STACK 0
java.lang.ClassNotFoundException: app.application.StatusBar cannot be found by app.rcp_1.0.0.201902150905
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ..

.

您说您的插件在 logs.zip 中获得 'option -bootclasspath not supported at compliance level 9 and above'。这是 Eclipse 错误 525280。 Java 版本 9 及更高版本的 Eclipse PDE 构建(您正在使用的)已损坏。由于不再开发 PDE,因此似乎没有任何解决此问题的前景。

要么回到 Java 8,要么切换到使用 Maven 和 Eclipse Tycho 进行构建。