Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349941 - Not able to generate diagram
Summary: Not able to generate diagram
Status: RESOLVED FIXED
Alias: None
Product: GMF-Tooling
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 2.4   Edit
Assignee: Michael Golubev CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-21 08:48 EDT by Arthur Daussy CLA
Modified: 2011-07-14 07:51 EDT (History)
4 users (show)

See Also:


Attachments
Error log (830.54 KB, application/octet-stream)
2011-06-21 08:49 EDT, Arthur Daussy CLA
no flags Details
Fixes the subj by applying the changes from #346952 into papyrus code base (7.03 KB, patch)
2011-06-28 11:59 EDT, Michael Golubev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur Daussy CLA 2011-06-21 08:48:16 EDT
Build Identifier: Build id: 20110609-2236

GMF Tooling : Build from CVS (2 days ago)

I am not able to generate my diagrams anymore.I get the following error (see attachment) and I thinks it's related to the bug https://bugs.eclipse.org/bugs/show_bug.cgi?format=multiple&id=346952. I have tried to use the patch which was attached (which almost integrated on the cvs) but nothing change. Can you help me please.







Reproducible: Always

Steps to Reproduce:
1. Try to generate a diagram
2.
3.
Comment 1 Arthur Daussy CLA 2011-06-21 08:49:50 EDT
Created attachment 198330 [details]
Error log
Comment 2 Mickael Istria CLA 2011-06-21 09:10:10 EDT
Can you please share a link or a zip with the files you use to generate the diagram, so that we can reproduce this bug easily?
Comment 3 Arthur Daussy CLA 2011-06-21 09:47:22 EDT
Yes I am going to do it immediatly. The only problem it that the generation uses a custom feature and it also uses custom sources. 
To reproduce this bug you should use:
 - The platform modelig RC4 available at :
    http://www.eclipse.org/downloads/index-developer.php
 - Install Papyrus SDK from the Indigo web site
 - Install QVTO 3.1.0 (use to avoid the NPE bug Bug 339995) available at:
    http://dl.dropbox.com/u/1059994/m2m-qvtoml-Update-3.1.0RC1.zip
 - Install the developper feature available at:
   http://dl.dropbox.com/u/1059994/DeveloperFeature.zip
 - Install GMF 2.4 build from CVS available at:
   http://dl.dropbox.com/u/1059994/GMFToolingLocalBuild.zip
 - A finally download the project at:
   http://dl.dropbox.com/u/1059994/org.eclipse.papyrus.diagram.activity.zip

You will find in it a folder named model. The error occur when I try to generate the diagram. To do so use the action available throught the feature by right clicking on the Gen file and select "Generate Papyrus Diagram".

Thanks a lot for all help you can give me.
Comment 4 Michael Golubev CLA 2011-06-28 11:57:45 EDT
Arthur, 

One of the problems is that Papyrus uses its own set of templates (under org.eclipse.papyrus.def\dynamic-templates3.5) which instead of AROUND'ing the base GMF templates has some of them copy-pasted. 

In particular there are 2 xpt's that were corrected in the GMF for #346952 but not picked up by papyrus. Please see attached patch. 

With this patch applied and using the most recent GMF build (today's nightly one, available at http://modeling.eclipse.org/modeling/gmp/gmf-tooling/downloads/drops/2.4.0/N201106281124/, which has all chances to become the 2.4R) I had no problems with regeneration of ActivityD. 

Also, there are some suspicious places in the other Papyrus-specific templates, but they are not reproducible with ActivityD.
Comment 5 Michael Golubev CLA 2011-06-28 11:59:05 EDT
Created attachment 198752 [details]
Fixes the subj by applying the changes from #346952 into papyrus code base
Comment 6 Michael Golubev CLA 2011-06-28 11:59:54 EDT
Thus, I am going to mark this as resolved
Comment 7 Michael Golubev CLA 2011-07-13 19:45:58 EDT
version -> 2.4
Comment 8 Michael Golubev CLA 2011-07-14 07:51:40 EDT
Rollback, Set target to 2.4 instead of accidenatlly set Version