It's all about the answers!

Ask a question

Problem registering service in advisor

Yehiel Glass (25538986) | asked Dec 23 '12, 3:12 a.m.
I'm wrote an advisor using IServerProcess .
My code has no errors and I added the dependency on plugin.xml, but when I run the Jetty debug server, I get the following error:
Unable to instantiate advisor advisor.example.operationAdvisor2.
CRJAZ6010E:An exception occurred creating extension.

Caused by: CRJAZ1115I The "" service was not registered.

What should I do for fixing this error ?

Accepted answer

permanent link
sam detweiler (12.5k6195201) | answered Jan 01 '13, 9:09 a.m.
looking at the jar plugin.xml (use Winrar or winzip to view the plugin contents),
the plugin.xml exposes this service

< providedService interface="" />
in YOUR plugin, you MUST tell the system you intend to USE the service..
in your prerequeisites
    <requiredService interface=""/>

Yehiel Glass selected this answer as the correct answer

Yehiel Glass commented Jan 06 '13, 3:13 p.m.

Thanks Sam.

The code I used is :
IProcessServerService serverProcess1 = getService(IProcessServerService.class);
IServerProcess serverProcess = serverProcess1.getServerProcess(processArea); 


One other answer

permanent link
sam detweiler (12.5k6195201) | answered Dec 23 '12, 8:28 a.m.
why did you use IServerProcess?  advisors and participants should extend AtractService and implement IOperationAdvisor or IOperationParticipant

I don't see IServerProcess exposed on jar

Yehiel Glass commented Jan 01 '13, 6:49 a.m.


If I'm working on server side plugin, How can I get contributor roles ?

IContributorHandle myapprover = approval.getApprover();

IRole[] contributorRoles = serverProcess.getContributorRoles(myapprover, processArea);

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.