Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How avoid Error 500: ... Unsupported/Unknown required feature: com.ibm.rdm.rm.api

Hello!
I'm developing Rational DOORs NG client extension with "OpenSocial Gadget" widget. It's a very simple custom script that shows a text only on the Minidashboard panel. And when I go to RM application, it works well. But when I go, for example, to Jazz Team Server Home, it shows me:

Error 500: The gadget cannot be rendered due to one or more errors: Unsupported/Unknown required feature: com.ibm.rdm.rm.api
I understand that the problem is in the text of main XML file:

<Require feature="com.ibm.rdm.rm.api"/>
But I don't have understanding how I could fix it. May be I could hide the widget leaving the RM application, is it correct? Or may be there is another, more effective way. If somebody could give me an advice how to be with this annoying error, it could be perfect!
Thank you very much in advance!

0 votes



2 answers

Permanent link
To solve the problem, first, I replaced "Require feature" to "Optional feature":
<Module specificationVersion="2.0">
<ModulePrefs title="DOORs_ID" height="700" scrolling="true">
<Optional feature="com.ibm.rdm.rm.api"/>
</ModulePrefs>
<Content type="html">
<![CDATA[
<html>
<head>
<script src="js/jquery-1.9.1.js"></script>
<script src="js/common.js"></script>
<link rel="stylesheet" type="text/css" href="css/common.css">
</head>
<body>
...
<p id="messages" class="info"></p>
...
</body>
</html>
]]>
</Content>
</Module>
Next, I added some IF logic to default function:
  if(window.location.href.search("/rm/") < 0) {
$("#messages").append("The script works in DOORs Next Generation only!");
}
else
{

RM.Event.subscribe(RM.Event.ARTIFACT_SAVED, function(saved) {
...
Now, the error isn't displayed even out of RM application. And IF operator helps to avoid error of undefined RM object, showing simple message that the script works IN RDNG only.
Now, I can handle the situation and display softer message out-of RDNG.

1 vote


Permanent link

Maybe this sheds some light. https://rsjazz.wordpress.com/2016/03/02/alien-skies-peeking-into-doors-next-extensibility/

0 votes

Comments

Sorry, but I can not find there how to avoid this message. Thank you for the link anyway!

Format? Encoding? So something is wrong in your file, I suppose.

  Ralph, I'm sorry. Of course, I can be wrong, but may be the problem is related to main XML file of the client extension. The begining of that file is:


<?xml version="1.0" encoding="UTF-8" ?>
<Module specificationVersion="2.0">
<ModulePrefs title="DOORs_ID" height="700" scrolling="true">
<Require feature="com.ibm.rdm.rm.api"/>
</ModulePrefs>
<Content type="html">
<![CDATA[
<html>
<head>

I suspect that the error is in result of next string:

<Require feature="com.ibm.rdm.rm.api"/>

 May be if I will go out of RM application then I will go out of the scope of this required library. And the error takes place! But may be simply I don't understand something here.

Thank you!

Again, read https://rsjazz.wordpress.com/2016/03/02/alien-skies-peeking-into-doors-next-extensibility/ carefully. Your code is for a open social gadget and not for a widget (as far as I can tell, because the data does not show correctly)

Carefully check with that article. The differences are subtle, but will mess you up.

Thank you! This was a problem not of RDNG itself but rather related to Google OpenSocial API. I solved it by a simple code modification as it's described below in my answer.

showing 5 of 7 show 2 more comments

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Jul 17 '17, 9:48 a.m.

Question was seen: 3,567 times

Last updated: Jul 28 '17, 3:13 p.m.

Confirmation Cancel Confirm