Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » [SOLVED] Workbench: Could not run processor
[SOLVED] Workbench: Could not run processor [message #1767936] Wed, 12 July 2017 09:22 Go to next message
Stephan Druskat is currently offline Stephan DruskatFriend
Messages: 104
Registered: October 2011
Location: Berlin, Germany
Senior Member

I'm trying to build a true E4 application (based on http://www.vogella.com/tutorials/EclipseTycho/article.html#exercise-tycho-build-for-plug-ins and other vogella tutorials) and have run into the stack trace below on starting up the product which I think may point at a problem with the compatibility layer/the app not being true E4 (which I hoped I can make it).

The line from PrefUtil stuck out, and it seems the uiCallback is null, but at the moment I'm stuck for a solution.

Here's the relevant PrefUtil code:

/**
     * Returns the API preference store.
     *
     * @return the API preference store
     */
    public static IPreferenceStore getAPIPreferenceStore() {
        if (uiPreferenceStore == null) {
            Assert.isNotNull(uiCallback);
            uiPreferenceStore = uiCallback.getPreferenceStore();
        }
        return uiPreferenceStore;
}


I've had a look at quite a few similar error reports, but none of the solutions there alleviate this problem, so I'd be thankful for any pointers. Thanks!

!ENTRY org.eclipse.e4.ui.workbench 2 0 2017-07-12 11:13:15.196
!MESSAGE Could not run processor
!STACK 0
org.eclipse.e4.core.di.InjectionException: org.eclipse.core.runtime.AssertionFailedException: null argument:
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:65)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:259)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:107)
	at org.eclipse.e4.ui.internal.workbench.ModelAssembler.runProcessor(ModelAssembler.java:335)
	at org.eclipse.e4.ui.internal.workbench.ModelAssembler.runProcessors(ModelAssembler.java:297)
	at org.eclipse.e4.ui.internal.workbench.ModelAssembler.processModel(ModelAssembler.java:94)
	at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:197)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:377)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:252)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:148)
	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:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
	at org.eclipse.ui.internal.util.PrefUtil.getAPIPreferenceStore(PrefUtil.java:70)
	at org.eclipse.ui.PlatformUI.getPreferenceStore(PlatformUI.java:194)
	at org.eclipse.ui.internal.keys.BindingPersistence.readActiveScheme(BindingPersistence.java:379)
	at org.eclipse.ui.internal.keys.BindingPersistence.reRead(BindingPersistence.java:1377)
	at org.eclipse.ui.internal.keys.BindingPersistence.read(BindingPersistence.java:1281)
	at org.eclipse.ui.internal.BindingToModelProcessor.process(BindingToModelProcessor.java:65)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
	... 23 more

[Updated on: Wed, 12 July 2017 09:58]

Report message to a moderator

Re: Workbench: Could not run processor [message #1767942 is a reply to message #1767936] Wed, 12 July 2017 09:56 Go to previous messageGo to next message
Stephan Druskat is currently offline Stephan DruskatFriend
Messages: 104
Registered: October 2011
Location: Berlin, Germany
Senior Member

Solved by adding org.eclipse.ui to the dependencies in MANIFEST.MF.
Re: Workbench: Could not run processor [message #1767979 is a reply to message #1767942] Wed, 12 July 2017 13:52 Go to previous message
Eclipse UserFriend
If you want a pure E4 application, you *cannot* use any bundles matching org.eclipse.ui.* or that *use* anything in org.eclipse.ui.*.

[Updated on: Wed, 12 July 2017 13:55] by Moderator

Report message to a moderator

Previous Topic:Unable to run application on Mac case-sensitive drive
Next Topic:Views open in wrong pane when using v3.x compatibilty layer
Goto Forum:
  


Current Time: Thu Apr 25 17:31:03 GMT 2024

Powered by FUDForum. Page generated in 0.02647 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top