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

Error during work item creation using Plain java api [ com.ibm.team.repository.common.ItemNotFoundException]

Hi Team,

I am trying to ceate a workitem using the sample code given in "https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation - Section "Plain-Java Client"

But i am getting the below error and the item not created.

com.ibm.team.repository.common.ItemNotFoundException: CRJAZ0215E The following record was not found in the database: com.ibm.team.workitem.common.internal.model.impl.WorkItemHandleImpl@4ab04ab (stateId: <unset>, itemId: [UUID _lRHJ4CR2EeWqkoBWMlqeBA], origin: com.ibm.team.repository.client.internal.TeamRepository@4b604b6, immutable: <unset>)
    at com.ibm.team.repository.client.internal.ItemManager.internalFetchItem(ItemManager.java:1600)
    at com.ibm.team.repository.client.internal.ItemManager.access$1(ItemManager.java:1557)
    at com.ibm.team.repository.client.internal.ItemManager$AbstractStore.retrieveItem(ItemManager.java:194)
    at com.ibm.team.repository.client.internal.ItemManager$CurrentStore.fetchItem(ItemManager.java:319)
    at com.ibm.team.repository.client.internal.ItemManager.fetchPartialItem(ItemManager.java:1078)
    at com.ibm.team.workitem.client.internal.AuditableClient.resolveAuditable(AuditableClient.java:136)
    at CreateWorkItem.run(CreateWorkItem.java:145)
    at CreateWorkItem.main(CreateWorkItem.java:71)

Any idea on how to solve this issue ?

Thanks & Regards,
Kasilingam S

0 votes

Comments

Any update on this request? I am seeing the same thing with RTC version 4.0.6.

Thanks in advance,



One answer

Permanent link
It looks like the handle you are resolving is not in the database. No idea how that could come about. There are some examples available for download here: https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/

0 votes

Comments

Thanks for your answer. Anyhow I have not succeeded on the same. The examples are  not working in my environment. Will analyze further and will inform you.

Thanks & Regards,

Kasilingam S  

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 07 '15, 3:26 a.m.

Question was seen: 3,379 times

Last updated: Aug 29 '15, 12:00 a.m.

Confirmation Cancel Confirm