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

Exception in JazzTalk: "Item's context must be set&quot

I am trying to execute the https://jazz.net/wiki/bin/view/Main/JazzTalkWalkthrough example. The invocation of postNewMessage fails, and debugging the server I found this exception:

"exception"= InvocationTargetException (id=259)
cause= null
detailMessage= null
stackTrace= null
target= TeamRepositoryException (id=262)
cause= TeamRepositoryException (id=262)
detailMessage= "Item's context must be set" (id=266)
extraData= null
origin= null
stackTrace= null
walkback= int (id=272)
walkback= int (id=264)

What does it mean? What is the "context" to be set?
Hoping for a reply :-)

Furio

0 votes



6 answers

Permanent link
I solved by adding this line in postNewMessage before saving the item:

message.setContextId(IContext.PUBLIC);

Furio

0 votes


Permanent link
I solved by adding this line in postNewMessage before saving the item:

message.setContextId(IContext.PUBLIC);

Furio


I was also meeting this problem. Your solution is correct. Thanks.

Allen

0 votes


Permanent link
i have add this line of code, in postNewMessage method but the exception persists...
any hint?

0 votes


Permanent link
contextId is a new required attribute on the model. Did you set the contextId before calling the save ?

--- Balaji

i have add this line of code, in postNewMessage method but the exception persists...
any hint?

0 votes


Permanent link
contextId is a new required attribute on the model. Did you set the contextId before calling the save ?

--- Balaji

i have add this line of code, in postNewMessage method but the exception persists...
any hint?


yes, i do...
maybe is a codegen tool problem... i'm dubious about this.
where i should put the attached codegen-update-site-v200902041255.zip ?

i try to unzip its content (feature folder, plugin folder and site.xml) in ../jazz/client/eclipse/codegen/eclipse, substituting the old feature and plugin folders relative to the standard codegen(codegen-v20080604-1704.zip) with the news and addind the new plugins in target platform...
then i restart rtc client, and right-click on my .ecore file, but in the context menu the item "Jazz Tools > Generate Component" not appear...

any hint?
thanks in advance
enzo

0 votes


Permanent link
contextId is a new required attribute on the model. Did you set the contextId before calling the save ?


i'm in a trouble with the contextId exception...
referencing to jazztalk model, precisely to jazztalk.ecore files, contextId must be added like
1) EAttribute (sibling of attribute text) of the EClass Message or
2) detail, child of EAnnotation(child of attribute text) ?

another question: how can i install the updated codegen ?


thanks in advance, rose

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,940

Question asked: Jul 22 '09, 9:23 a.m.

Question was seen: 7,118 times

Last updated: Jul 22 '09, 9:23 a.m.

Confirmation Cancel Confirm