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.
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.
2 answers
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#/");
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#/");