|
|
|
Re: NullPointerException in themes.ColorAndFontProviderImpl [message #1792623 is a reply to message #1751126] |
Fri, 20 July 2018 10:10 |
Chris Gordon Messages: 1 Registered: September 2016 |
Junior Member |
|
|
I had this error as well, after following Lars' new online tutorial (todo rcp application).
I fixed it by replacing the contents list in my product:
Before fix:
com.example.e4.rcp.todo.feature
org.eclipse.platform (I put this in based on an existing product I'm supporting, as it required additional plugins from this feature)
org.eclipse.emf.common
org.eclipse.emf.ecore
After fix:
com.example.e4.rcp.todo.feature
org.eclipse.e4.rcp (this is what lars recommended)
org.eclipse.emf.common
org.eclipse.emf.ecore
Here were the steps to reproduce the problem:
Create a todo product, with the 3 different panels, a basic rcp product shell with an application model 3 view pojos containing JUST @PostConstruct
create an osgi todoservice that is injected into the TodoOverviewPart
relaunch from the product file, in the launcher created, validate
click "add required plugins" (it added about 13 plugins)
Same error
tried again, deleting launcher and product workspace. This time I explicitly added JUST the plugins it complained were missing to the launcher, in this order:
org.eclipse.ecf
org.eclipse.ecf.filetransfer
org.eclipse.ecf.provider.filetransfer
org.eclipse.ecf.identity
org.eclipse.equinox.concurrent (it asked for org.eclipse.equinox.concurrent.future, which wasn't there, so I added this one instead)
same error.
Switched to the org.eclipse.e4.rcp feature instead of org.eclipse.platform, deleted launcher and product workspace, launched from product file, error went away and it didn't require validating and adding plugins in the launcher file.
Only items in my target platform are (exactly what the tutorial instructs):
Eclipse Platform SDK 4.8.0.I20180611-0500
Equinox Target Components 3.14.0.v0180518-2029
I'm too much of a noob to figure out whether or not this is a bug or some configuration error on my part. When using the e4.rcp feature in the product it does not pull in the ecf or concurrent depenencies mentioned above, but nothing else is different other than bringing a feature that is a superset of the correct one.
I hope that helps someone.
|
|
|
Powered by
FUDForum. Page generated in 0.01310 seconds