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

How can I work around PM97607, "Failed to find community for id xxxx"

When I create an asset using the Java API, I get a series of messages similar to "Failed to find community for id xxxx".  The process of creating the asset takes up to 10 minutes and sometimes results in a timeout error. 

I discovered this is an known issue in RAM 7.5.1.2: http://www-01.ibm.com/support/docview.wss?uid=swg1PM97607.  The instance of RAM I am using is not scheduled to be updated until late Q1.

The delay doesn't seem to happen when setting the community for a new asset but seems to occur when I attempt to invoke methods like setAssetType or getAssetAttribute on the new asset.  I'm guessing that for RAM to tell me what asset types or attributes are valid for this asset, it must determine what community it is in and that's where the defect impacts me.

Is there some way I can work around this defect?  Would it help to change the order in which I set values? Would it help to "put" a skeleton asset to RAM first, then update it?

Thanks.

0 votes



One answer

Permanent link
Hi,

I think that could happen when we try to call some API functions at the first time. It is kind of lazy fetch for RAMSession to initialize some meta data when you call function like setAssetType().

If you would like to pre-initialize this meta data before setAssetType(), try following:

//this will initialize schema schema and restricted communities
RAMCategorySchema[] schemas = RAMSession.getAllCategorySchemas();
for(RAMCategorySchema schema : schemas)
    schema.isRestricted();

If there is a connection timeout in your code. Try to increase axis connection timeout property
AxisProperties.setProperty(
    DefaultCommonsHTTPClientProperties.CONNECTION_DEFAULT_CONNECTION_TIMEOUT_KEY, connectionTimeout);




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
× 10,953
× 411

Question asked: Nov 18 '14, 12:01 p.m.

Question was seen: 3,976 times

Last updated: Nov 18 '14, 8:27 p.m.

Confirmation Cancel Confirm