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

getCategorySchema returns null - schema exists

Hi,

I have a schema in my RAM server named myschema. When I try to retrieve it in my client code using

RAMCategorySchema schemaInstance = session.getCategorySchema("myschema");

I get back null. Is there someway to troubleshoot this issue on the RAM server to see why the call fails?

I do make other calls like getAssets and calls on RAMAsset object that works fine. session.getCategorySchema is the only call that seems to have some issue. Any help in this regard would be much appreciated.

Version of RAM being used: V7.2.0.2 Build: RAM7202-I20100315_0942

Thank you in advance.

Bhadri.

0 votes



2 answers

Permanent link
Hi

Are you able to find the schema if you request all category schemas?
RAMCategorySchema[] schemas = session.getAllCategorySchemas();


Does retrieving the schema via URI work?
RAMCategorySchema schema = session.getCategorySchemaByURI(
"http://example.com/com.ibm.ram.repository.web/classif/mycategoryschema.xmi#/");

0 votes


Permanent link
Hi,

Thank you for your reply. There was some network issue and the URI call failed. Things started to work fine when network issue was fixed.

Bhadri.

0 votes

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

Question asked: Sep 21 '11, 3:49 p.m.

Question was seen: 8,819 times

Last updated: Sep 21 '11, 3:49 p.m.

Confirmation Cancel Confirm