It's all about the answers!

Ask a question

Operation Advisors / Participants


Remy Suen (426124) | asked May 30 '07, 11:40 a.m.
Hi,

I am on Jazz 0.6M0 and am trying to add operation advisors/participants
to my process. I followed the
https://jazz.net/learn/content/docs/process/images/processApx1.png image
in
https://jazz.net/learn/LearnItem.jsp?href=content/docs/process/index.html
but it did not work.

I get the error below in my 'Team Advisor' view.

"Internal Error
Unable to find extension matching operation participant
com.ibm.team.process.internal.deliver.requireWorkItem."

I have tried adding my own operation advisors but they fail with the
same error.

What are some common issues that could cause this for me to try and
debug through? I have all the plug-ins enabled in my separate Eclipse
instance so it should not be an issue of it not loading and I have also
debugged into the DefinitionsUIPlugin and it does not instantiated and
started properly by OSGi, so I do not know what could be the problem.

Thanks.

Regards,
Rem

4 answers



permanent link
Remy Suen (426124) | answered May 31 '07, 11:12 a.m.
Hi Jared,

Thanks for the quick reply! :)

I have filed defect 24839 for this.

Regards,
Rem

permanent link
Jared Burns (4.5k29) | answered May 31 '07, 10:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The work item save operation uses the same ID on the client and server.
When you configure an advisor for this operation in your process spec,
you're actually configuring it for both places. I'm guessing that if you
look closely at the Team Advisor, you'll probably see that the error is
being reported from the server.

This is something we should look into. Can you file a bug report?

Thanks,
- Jared

Remy Chi Jian Suen wrote:
Hi Kai,

Thanks for the reply. My IDs look okay, so I am not sure what else could
be the problem.

My plugin.xml is here:

extension
point="com.ibm.team.process.client.operationParticipants"
operationAdvisor
class="test.OperationAdvisorImpl"
id="test.operationAdvisor2"
name="Advisor"
operationId="com.ibm.team.workitem.operation.workItemSave"
/operationAdvisor
/extension

And the process spec is here:

operation id="com.ibm.team.workitem.operation.workItemSave"
advisors
advisor id="test.operationAdvisor2"
name="display_name"
enforcement="encourage"
description="description"
/advisor
/advisors
permissions
action id="any"/
/permissions
/operation

Do you know of any other reasons as to why this would not be picked up?
I have validated my plug-ins prior to launching my second Eclipse
instance and no errors were picked up by PDE. What is odd is that my
test advisor actually gets picked up by the content assist but does not
seem to actually work since I still get that internal error in my 'Team
Advisor' view. :(

"Internal Error
Unable to find extension matching operation participant
test.operationAdvisor2."

Thanks.

Regards,
Rem

Kai-Uwe Maetzel wrote:
Rem,

This indicates that the process specification lists an
advisor/participant with
a given id, e.g.,
"com.ibm.team.process.internal.deliver.requireWorkItem",
and that there is no advisor/participant implementation registered under
that id. An advisor/participant implementation is registered by
providing an
extension to the client or server side process extension points
depending on
whether it is thought for client or server side process enabled
operations.

The simplest way to check what advisors/participants are available for
the operation you want to customize is by using content assist inside
the process specification at the start of the 'id' attribute value of an
advisor/participant element. Content assist lists all registered
advisor/participant implementations.

The most common mistake is a mismatch of the ids listed in the process
specifications and the one used to register an advisor/participant
implementation.

Kai


"Remy Chi Jian Suen" <remsuen@ca.ibm.com> wrote in message
news:f3k569$72c$1@localhost.localdomain...
Hi,

I am on Jazz 0.6M0 and am trying to add operation
advisors/participants to my process. I followed the
https://jazz.net/learn/content/docs/process/images/processApx1.png
image in
https://jazz.net/learn/LearnItem.jsp?href=content/docs/process/index.html
but it did not work.

I get the error below in my 'Team Advisor' view.

"Internal Error
Unable to find extension matching operation participant
com.ibm.team.process.internal.deliver.requireWorkItem."

I have tried adding my own operation advisors but they fail with the
same error.

What are some common issues that could cause this for me to try and
debug through? I have all the plug-ins enabled in my separate Eclipse
instance so it should not be an issue of it not loading and I have
also debugged into the DefinitionsUIPlugin and it does not
instantiated and started properly by OSGi, so I do not know what
could be the problem.

Thanks.

Regards,
Rem


permanent link
Remy Suen (426124) | answered May 31 '07, 9:07 a.m.
Hi Kai,

Thanks for the reply. My IDs look okay, so I am not sure what else could
be the problem.

My plugin.xml is here:

<extension
point="com.ibm.team.process.client.operationParticipants">
<operationAdvisor
class="test.OperationAdvisorImpl"
id="test.operationAdvisor2"
name="Advisor"
operationId="com.ibm.team.workitem.operation.workItemSave">
</operationAdvisor>
</extension>

And the process spec is here:

<operation id="com.ibm.team.workitem.operation.workItemSave">
<advisors>
<advisor id="test.operationAdvisor2"
name="display_name"
enforcement="encourage"
description="description">
</advisor>
</advisors>
<permissions>
<action id="any"/>
</permissions>
</operation>

Do you know of any other reasons as to why this would not be picked up?
I have validated my plug-ins prior to launching my second Eclipse
instance and no errors were picked up by PDE. What is odd is that my
test advisor actually gets picked up by the content assist but does not
seem to actually work since I still get that internal error in my 'Team
Advisor' view. :(

"Internal Error
Unable to find extension matching operation participant
test.operationAdvisor2."

Thanks.

Regards,
Rem

Kai-Uwe Maetzel wrote:
Rem,

This indicates that the process specification lists an advisor/participant
with
a given id, e.g., "com.ibm.team.process.internal.deliver.requireWorkItem",
and that there is no advisor/participant implementation registered under
that id. An advisor/participant implementation is registered by providing an
extension to the client or server side process extension points depending on
whether it is thought for client or server side process enabled operations.

The simplest way to check what advisors/participants are available for
the operation you want to customize is by using content assist inside
the process specification at the start of the 'id' attribute value of an
advisor/participant element. Content assist lists all registered
advisor/participant implementations.

The most common mistake is a mismatch of the ids listed in the process
specifications and the one used to register an advisor/participant
implementation.

Kai


"Remy Chi Jian Suen" <remsuen@ca.ibm.com> wrote in message
news:f3k569$72c$1@localhost.localdomain...
Hi,

I am on Jazz 0.6M0 and am trying to add operation advisors/participants to
my process. I followed the
https://jazz.net/learn/content/docs/process/images/processApx1.png image
in
https://jazz.net/learn/LearnItem.jsp?href=content/docs/process/index.html
but it did not work.

I get the error below in my 'Team Advisor' view.

"Internal Error
Unable to find extension matching operation participant
com.ibm.team.process.internal.deliver.requireWorkItem."

I have tried adding my own operation advisors but they fail with the same
error.

What are some common issues that could cause this for me to try and debug
through? I have all the plug-ins enabled in my separate Eclipse instance
so it should not be an issue of it not loading and I have also debugged
into the DefinitionsUIPlugin and it does not instantiated and started
properly by OSGi, so I do not know what could be the problem.

Thanks.

Regards,
Rem


permanent link
Kai-Uwe Maetzel (85611) | answered May 30 '07, 4:25 p.m.
JAZZ DEVELOPER
Rem,

This indicates that the process specification lists an advisor/participant
with
a given id, e.g., "com.ibm.team.process.internal.deliver.requireWorkItem",
and that there is no advisor/participant implementation registered under
that id. An advisor/participant implementation is registered by providing an
extension to the client or server side process extension points depending on
whether it is thought for client or server side process enabled operations.

The simplest way to check what advisors/participants are available for
the operation you want to customize is by using content assist inside
the process specification at the start of the 'id' attribute value of an
advisor/participant element. Content assist lists all registered
advisor/participant implementations.

The most common mistake is a mismatch of the ids listed in the process
specifications and the one used to register an advisor/participant
implementation.

Kai


"Remy Chi Jian Suen" <remsuen@ca.ibm.com> wrote in message
news:f3k569$72c$1@localhost.localdomain...
Hi,

I am on Jazz 0.6M0 and am trying to add operation advisors/participants to
my process. I followed the
https://jazz.net/learn/content/docs/process/images/processApx1.png image
in
https://jazz.net/learn/LearnItem.jsp?href=content/docs/process/index.html
but it did not work.

I get the error below in my 'Team Advisor' view.

"Internal Error
Unable to find extension matching operation participant
com.ibm.team.process.internal.deliver.requireWorkItem."

I have tried adding my own operation advisors but they fail with the same
error.

What are some common issues that could cause this for me to try and debug
through? I have all the plug-ins enabled in my separate Eclipse instance
so it should not be an issue of it not loading and I have also debugged
into the DefinitionsUIPlugin and it does not instantiated and started
properly by OSGi, so I do not know what could be the problem.

Thanks.

Regards,
Rem

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.