It's all about the answers!

Ask a question

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


Furio Belgiorno (3651) | asked Jul 22 '09, 9:23 a.m.
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

6 answers



permanent link
Furio Belgiorno (3651) | answered Jul 22 '09, 10:54 a.m.
I solved by adding this line in postNewMessage before saving the item:

message.setContextId(IContext.PUBLIC);

Furio

permanent link
john chang (1121) | answered Aug 02 '09, 6:16 a.m.
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

permanent link
enzo zuk (12693) | answered Aug 26 '09, 12:38 p.m.
i have add this line of code, in postNewMessage method but the exception persists...
any hint?

permanent link
Balaji Krish (1.8k12) | answered Aug 27 '09, 5:36 p.m.
JAZZ DEVELOPER
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?

permanent link
enzo zuk (12693) | answered Aug 28 '09, 12:08 p.m.
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

permanent link
rose cicinelli (2644) | answered Sep 02 '09, 8:16 a.m.
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

Your answer


Register or 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.