How avoid Error 500: ... Unsupported/Unknown required feature: com.ibm.rdm.rm.api
Hello!
Error 500: The gadget cannot be rendered due to one or more errors: Unsupported/Unknown required feature: com.ibm.rdm.rm.apiI 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! |
2 answers
To solve the problem, first, I replaced "Require feature" to "Optional feature":
<Module specificationVersion="2.0">
Next, I added some IF logic to default function:
if(window.location.href.search("/rm/") < 0) {
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.
|
Ralph Schoon (63.5k●3●36●46)
| answered Jul 17 '17, 3:23 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jul 17 '17, 3:25 p.m. Maybe this sheds some light. https://rsjazz.wordpress.com/2016/03/02/alien-skies-peeking-into-doors-next-extensibility/
Comments
Dmitry A. Lesin
commented Jul 19 '17, 1:28 p.m.
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.
Dmitry A. Lesin
commented Jul 25 '17, 10:55 a.m.
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"/>
Dmitry A. Lesin
commented Jul 25 '17, 10:59 a.m.
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)
Dmitry A. Lesin
commented Jul 28 '17, 2:48 p.m.
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
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.