Exception in JazzTalk: "Item's context must be set"
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
I solved by adding this line in postNewMessage before saving the item:
message.setContextId(IContext.PUBLIC); Furio |
I solved by adding this line in postNewMessage before saving the item: I was also meeting this problem. Your solution is correct. Thanks. Allen |
i have add this line of code, in postNewMessage method but the exception persists...
any hint? |
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... |
contextId is a new required attribute on the model. Did you set the contextId before calling the save ? i have add this line of code, in postNewMessage method but the exception persists... 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 |
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
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.