繁体   English   中英

Eclipse 3.x至E4提升。 无法开始样式支持...不允许空服务引用

[英]Eclipse 3.x to E4 uplift. Could not start styling support…A null service reference is not allowed

我们有一个运行在Eclipse 3.x平台上的RCP应用程序,将来我们正在努力将其迁移到纯E4。 但是就目前而言,我们正在尝试引入所有必要的依赖项。 该应用程序符合要求并运行,但是我们在启动时会得到此堆栈跟踪。

!ENTRY org.eclipse.ui 2 2 2016-03-15 14:34:36.241 !MESSAGE Could not start styling support. !STACK 0 java.lang.NullPointerException: A null service reference is not allowed. at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:617) at org.eclipse.e4.ui.css.swt.internal.theme.BootstrapTheme3x.<init>(BootstrapTheme3x.java:38) at org.eclipse.e4.ui.css.swt.internal.theme.BootstrapTheme3x.<init>(BootstrapTheme3x.java:30) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2532) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608) at org.eclipse.equinox.launcher.Main.run(Main.java:1515) at org.eclipse.equinox.launcher.Main.main(Main.java:1488)

有一个环节出了类似的问题野生的,但它是相当出在这一点过时。

任何帮助将不胜感激!

更新我已经尝试了链接 ,这似乎是一个类似的问题。 但这并不能解决问题。 我也想知道在这一点上我是否有很多依赖关系,而这会引起冲突。

好的,经过研究,我遇到了另一篇类似的文章。 我实现了这一点 ,它解决了我的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM