com.ibm.team.repository.common.transport.internal.registry.ServiceNotFoundException:
PLease give your suggestion Iam getting below error mesage when i Error Message ----------------- Start
com.ibm.team.repository.common.transport.internal.registry.ServiceNotFoundException:
The service 'testworldadvisor.TestWorldProhibitSave@540c540c' failed to find the required service 'interface com.ibm.team.workitem.common.IWorkItemCommon'.
Check <prerequisites> in plugin.xml. Error Message ----------------- Stop
When i perform then following code
-Code start --- IWorkItemCommon wiCommon = getService(IWorkItemCommon.
class);
IWorkItem wi = wiCommon.findWorkItemById((Integer)workItem.getId(), IWorkItem.
FULL_PROFILE, monitor);
XMLString string = wi.getHTMLSummary();
IContributorHandle creatorHandle = wi.getCreator();
IAttribute CustomString = wiCommon.findAttribute(wi.getProjectArea(),
"com.abcd.workitem.type.rfc", monitor);
if ((wi.hasCustomAttribute(CustomString)))
{
String value = (String) wi.getValue(CustomString);
System.
out.println("String : " + value); }
|
One answer
Hi Anil,
I'm not certain, but I think the problem may be that you need to add com.ibm.team.workitem.common to your plugin's manifest file in the Require-Bundle section. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.