Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346952

Summary: Cannot generate diagram with GMF-Tooling 2.4.0
Product: [Modeling] GMF-Tooling Reporter: Mickael Istria <mistria>
Component: CoreAssignee: Michael Golubev <borlander>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: borlander
Version: unspecified   
Target Milestone: 2.4   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 347960    
Bug Blocks:    
Attachments:
Description Flags
Error log when generating
none
Fixes the tests, but not necessary fixes the whole problem none

Description Mickael Istria CLA 2011-05-24 05:32:00 EDT
With this diagram generator (process.gmfgen): http://www.bonitasoft.org/websvn/listing.php?repname=Bonita+Open+Solution&path=%2Fbonita-studio%2Ftags%2Fbonita-studio-5.5%2Fplugins%2Forg.bonitasoft.studio-models%2F#path_bonita-studio_tags_bonita-studio-5.5_plugins_org.bonitasoft.studio-models_
The generation fails because a lot of OclInvalid_Class are raised:

Problems while generating code
Exception (Can't evaluate LET expression: actual variable type is not assignable to declared one:in xpt::navigator::NavigatorContentProvider, line 491) while generating code
Can't evaluate LET expression: actual variable type is not assignable to declared one:in xpt::navigator::NavigatorContentProvider, line 491
Exception (Can't evaluate LET expression: actual variable type is not assignable to declared one:in xpt::navigator::NavigatorContentProvider, line 506) while generating code
Can't evaluate LET expression: actual variable type is not assignable to declared one:in xpt::navigator::NavigatorContentProvider, line 506
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Can't evaluate LET expression: actual variable type is not assignable to declared one:in impl::diagram::editparts::NodeEditPart, line 356) while generating code
Can't evaluate LET expression: actual variable type is not assignable to declared one:in impl::diagram::editparts::NodeEditPart, line 356
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Can't evaluate LET expression: actual variable type is not assignable to declared one:in impl::diagram::editparts::NodeEditPart, line 356) while generating code
Can't evaluate LET expression: actual variable type is not assignable to declared one:in impl::diagram::editparts::NodeEditPart, line 356
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Can't evaluate LET expression: actual variable type is not assignable to declared one:in impl::diagram::editparts::NodeEditPart, line 356) while generating code
Can't evaluate LET expression: actual variable type is not assignable to declared one:in impl::diagram::editparts::NodeEditPart, line 356
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Can't evaluate LET expression: actual variable type is not assignable to declared one:in impl::diagram::editparts::NodeEditPart, line 356) while generating code
Can't evaluate LET expression: actual variable type is not assignable to declared one:in impl::diagram::editparts::NodeEditPart, line 356
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Can't evaluate LET expression: actual variable type is not assignable to declared one:in impl::diagram::editparts::NodeEditPart, line 356) while generating code
Can't evaluate LET expression: actual variable type is not assignable to declared one:in impl::diagram::editparts::NodeEditPart, line 356
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Can't evaluate LET expression: actual variable type is not assignable to declared one:in impl::diagram::editparts::NodeEditPart, line 356) while generating code
Can't evaluate LET expression: actual variable type is not assignable to declared one:in impl::diagram::editparts::NodeEditPart, line 356
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 104
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::editpolicies::BaseItemSemanticEditPolicy, line 412) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::editpolicies::BaseItemSemanticEditPolicy, line 412
Exception (Can't evaluate LET expression: actual variable type is not assignable to declared one:in xpt::navigator::NavigatorContentProvider, line 228) while generating code
Can't evaluate LET expression: actual variable type is not assignable to declared one:in xpt::navigator::NavigatorContentProvider, line 228
Comment 1 Mickael Istria CLA 2011-05-24 05:35:59 EDT
Created attachment 196415 [details]
Error log when generating
Comment 2 Mickael Istria CLA 2011-05-24 05:56:23 EDT
The 

  Exception (Boolean expected (was:
  org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in
  xpt::diagram::commands::CreateNodeCommand, line 104) while generating code
  Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in
  xpt::diagram::commands::CreateNodeCommand, line 104

is due to the upperBound.oclAsType(Integer) returning an OclInvalid_Class. After removing all the .oclAsType(Integer), all these errors are gone away.
Comment 3 Michael Golubev CLA 2011-06-01 08:18:44 EDT
The problems are related to these changes in the OCL: 

#261008 - [library] UnlimitedNatural erroneously conforms to Real (in our case - to Integer)
GMF has a couple of places where feature.upperBound is being casted and compared to integers, which is not allowed anymore.

And to this particular addition to the org.eclipse.ocl.EvaluationVisitorImpl, rev 1.8
 
public Object visitOperationCallExp(
...
		if (opCode == PredefinedType.EQUAL) {
+			if (sourceVal == getInvalid()) {
+				return getInvalid();
+			}
			// evaluate argument
			OCLExpression<C> arg = args.get(0);
			Object argVal = safeVisitExpression(arg);
+			if (argVal == getInvalid()) {
+				return argVal;
+			}

which explictly returns the oclUndefined when oclUndefined is being compared to anything. The previous version of OCL returned false in this cases and GMF has a lot of places where this is written without any ocIsUndefined checks.
Comment 4 Michael Golubev CLA 2011-06-01 08:28:15 EDT
Fortunately the first part of the problem is easily detectable: 
The unlimitedNatural may appear in the runtime only as a result of eCoreTypedElement.upperBound, so we may just replace all the occurrences like : 

«IF ecoreFeature.upperBound.oclAsType(Integer) > 0-»
into 
«IF ecoreFeature.upperBound <> *-»
and reasonably expect we are done with this part.

The second part of the problem is much more difficult to detect beyond try-and-fix approach.
Comment 5 Michael Golubev CLA 2011-06-01 09:08:06 EDT
Also this is the problem (added lines from the same commit as above). The old code returned null, the new code returns oclUndefined

case PredefinedType.FIRST:
  // OrderedSet::first()
+  if (((Collection<?>) sourceVal).isEmpty()) {
+    return getInvalid();
+  }
  return CollectionUtil.first((Collection<?>) sourceVal);

case PredefinedType.LAST:
  // OrderedSet::last()
+  if (((Collection<?>) sourceVal).isEmpty()) {
+    return getInvalid();
+  }
  return CollectionUtil.last((Collection<?>) sourceVal);
Comment 6 Michael Golubev CLA 2011-06-01 11:27:17 EDT
Created attachment 197102 [details]
Fixes the tests, but not necessary fixes the whole problem
Comment 7 Michael Golubev CLA 2011-06-01 15:25:26 EDT
Ok, the generation for the diagrams covered by test cases is fixed, as well as Taipan samples.
I don't see how the problems described in the #347960 may be fixed easily for all generation flow paths, but the same approach as in the patch may be used for every particular case.
So I am closing this bug.
Comment 8 Michael Golubev CLA 2011-07-13 19:45:56 EDT
version -> 2.4
Comment 9 Michael Golubev CLA 2011-07-14 07:51:40 EDT
Rollback, Set target to 2.4 instead of accidenatlly set Version