Site Tools


rcp_buddy_registration_issue

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(PolicyHandler.java:121)
    at org.eclipse.osgi.internal.loader.buddy.PolicyHandler.doBuddyResourcesLoading(PolicyHandler.java:165)
    at org.eclipse.osgi.internal.loader.BundleLoader.findResources(BundleLoader.java:705)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findResources(DefaultClassLoader.java:162)
    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

to:

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