It's all about the answers!

Ask a question

com.ibm.team.repository.common.transport.internal.registry.ServiceNotFoundException:


ANIL ABRAHAM (2322024) | asked Oct 04 '12, 6:58 p.m.

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);

}

-- Code stop

One answer



permanent link
Lauren Hayward Schaefer (3.3k11727) | answered Oct 08 '12, 6:59 a.m.
JAZZ DEVELOPER
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


Register or to post 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.