Site Tools


rcp buddy registration and policy issue

When attempting to use setup an RCP 1) buddy policy, the following exception may be thrown:

Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to org.eclipse.osgi.internal.loader.buddy.IBuddyPolicy
    at org.eclipse.osgi.internal.loader.buddy.PolicyHandler.getPolicyImplementation(
    at org.eclipse.osgi.internal.loader.buddy.PolicyHandler.doBuddyResourcesLoading(
    at org.eclipse.osgi.internal.loader.BundleLoader.findResources(
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findResources(
    at java.lang.ClassLoader.getResources(Unknown Source)
    ... 39 more

This is most likely the result of an incorrect keyword assignment for a buddy policy value. A simple change from:

Eclipse-BuddyPolicy: Registered


Eclipse-BuddyPolicy: registered

should resolve this issue (ie. adjusting Registered to registered).

rcp_buddy_registration_issue.txt ยท Last modified: 2017/03/18 23:22 (external edit)

User Tools