简体   繁体   English

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

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

We have an RCP application that is running on the Eclipse 3.x platform and we're working on migrating it to pure E4 in the future. 我们有一个运行在Eclipse 3.x平台上的RCP应用程序,将来我们正在努力将其迁移到纯E4。 But just for now we're trying to pull in all the necessary dependencies. 但是就目前而言,我们正在尝试引入所有必要的依赖项。 The app complies and runs but we get this stack trace at startup. 该应用程序符合要求并运行,但是我们在启动时会得到此堆栈跟踪。

!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)

There is one link out in the wild with a similar problem, but it's pretty out dated at this point. 有一个环节出了类似的问题野生的,但它是相当出在这一点过时。

Any help would be very appreciated! 任何帮助将不胜感激!

Update I've tried out link which seems to be a similar issue. 更新我已经尝试了链接 ,这似乎是一个类似的问题。 But that didn't fix it. 但这并不能解决问题。 I'm also wondering at this point if I have to many dependencies, and one is causing a conflict. 我也想知道在这一点上我是否有很多依赖关系,而这会引起冲突。

Okay after research I came across another post with a similar issue. 好的,经过研究,我遇到了另一篇类似的文章。 I implemented this and it solved my problem. 我实现了这一点 ,它解决了我的问题。

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

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