Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mdt-papyrus.dev] Diagram modification cause diagram corrupted

Hello,

> 1. Is it normal for this error to append ? (I need to open a bug ?)

This certainly isn't.
This is a different bug than the 319240, since the faultive code isn't at the same location. This would be nice if you could open a new bug (with blocker criticity), and describe all the steps to reproduce it, and attaching such corrupted models examples (as simple as possible).

Do not forget the [class diagram] tag to identify this bug happens on class diagrams only.

> 2. I have a few huge diagrams corrupted and I would like to know if you
> have some kind of patch to get back the diagrams ?
I think the correction should let you recover your corrupted diagrams back. To be sure it will be done this way, precise in the bug that Papyrus should be able to open again such corrupted diagrams.

This is the reason why it is important you attach these diagrams to the bug.

Best regards,
Vincent.

Le 19/10/2010 16:43, Arnaud Dieumegard a écrit :
Hi all,

i am experiencing problems with the edition of diagrams.
I use Papyrus MDT 0.7.0. v20100725
I have two diagrams in witch the same interface is referenced, an
operation in the interface and the operation is displayed on the
diagrams. If I have only one diagram opened and I delete the operation,
the second diagram is corrupted. Here is the satck trace:

java.lang.ClassCastException:
org.eclipse.uml2.uml.internal.impl.ClassImpl cannot be cast to
org.eclipse.uml2.uml.Property
     at
org.eclipse.papyrus.diagram.clazz.custom.policies.AppliedStereotypePropertyDisplayEditPolicy.getUMLElement(AppliedStereotypePropertyDisplayEditPolicy.java:32)
     at
org.eclipse.papyrus.diagram.clazz.custom.policies.AppliedStereotypePropertyDisplayEditPolicy.getUMLElement(AppliedStereotypePropertyDisplayEditPolicy.java:1)
     at
org.eclipse.papyrus.diagram.common.editpolicies.AbstractAppliedStereotypeDisplayEditPolicy.activate(AbstractAppliedStereotypeDisplayEditPolicy.java:70)
     at
org.eclipse.gef.editparts.AbstractEditPart.activateEditPolicies(AbstractEditPart.java:173)
     at
org.eclipse.gef.editparts.AbstractEditPart.activate(AbstractEditPart.java:155)
     at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.activate(AbstractGraphicalEditPart.java:195)
     at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$0(GraphicalEditPart.java:1)
     at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.activate(GraphicalEditPart.java:205)
     at
org.eclipse.gef.editparts.AbstractEditPart.activate(AbstractEditPart.java:159)
     at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.activate(AbstractGraphicalEditPart.java:195)
     at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$0(GraphicalEditPart.java:1)
     at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.activate(GraphicalEditPart.java:205)
     at
org.eclipse.gef.editparts.AbstractEditPart.activate(AbstractEditPart.java:159)
     at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.activate(AbstractGraphicalEditPart.java:195)
     at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$0(GraphicalEditPart.java:1)
     at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.activate(GraphicalEditPart.java:205)
     at
org.eclipse.gef.editparts.AbstractEditPart.activate(AbstractEditPart.java:159)
     at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.activate(AbstractGraphicalEditPart.java:195)
     at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$0(GraphicalEditPart.java:1)
     at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.activate(GraphicalEditPart.java:205)
     at
org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart.activate(DiagramEditPart.java:349)
     at
org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:214)
     at
org.eclipse.gef.editparts.SimpleRootEditPart.setContents(SimpleRootEditPart.java:105)
     at
org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:617)
     at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer.setContents(DiagramGraphicalViewer.java:378)
     at
org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:626)
     at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initializeGraphicalViewerContents(DiagramEditor.java:872)
     at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initializeGraphicalViewer(DiagramEditor.java:865)
     at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFlyOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOutPalette.java:116)
     at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.initializeGraphicalViewer(DiagramDocumentEditor.java:175)
     at
org.eclipse.papyrus.diagram.clazz.part.UMLDiagramEditor.initializeGraphicalViewer(UMLDiagramEditor.java:500)
     at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.createGraphicalViewer(DiagramEditor.java:807)
     at
org.eclipse.papyrus.diagram.clazz.UmlClassDiagramForMultiEditor.createGraphicalViewer(UmlClassDiagramForMultiEditor.java:97)
     at
org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(GraphicalEditor.java:171)
     at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.createPartControl(DiagramEditor.java:1580)
     at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFlyOutPalette.createPartControl(DiagramEditorWithFlyOutPalette.java:328)
     at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.createPartControl(DiagramDocumentEditor.java:1511)
     at
org.eclipse.papyrus.sasheditor.internal.EditorPart.createEditorPartControl(EditorPart.java:263)
     at
org.eclipse.papyrus.sasheditor.internal.EditorPart.createPartControl(EditorPart.java:169)
     at
org.eclipse.papyrus.sasheditor.internal.TabFolderPart.createChildPart(TabFolderPart.java:903)
     at
org.eclipse.papyrus.sasheditor.internal.TabFolderPart.createTabItem(TabFolderPart.java:828)
     at
org.eclipse.papyrus.sasheditor.internal.TabFolderPart.synchronize2(TabFolderPart.java:743)
     at
org.eclipse.papyrus.sasheditor.internal.RootPart.synchronize2(RootPart.java:139)
     at
org.eclipse.papyrus.sasheditor.internal.SashWindowsContainer.refreshTabsInternal(SashWindowsContainer.java:386)
     at
org.eclipse.papyrus.sasheditor.internal.SashWindowsContainer.refreshTabs(SashWindowsContainer.java:339)
     at
org.eclipse.papyrus.sasheditor.editor.AbstractMultiPageSashEditor.refreshTabs(AbstractMultiPageSashEditor.java:171)
     at
org.eclipse.papyrus.core.editor.CoreMultiDiagramEditor.access$5(CoreMultiDiagramEditor.java:1)
     at
org.eclipse.papyrus.core.editor.CoreMultiDiagramEditor$3.contentChanged(CoreMultiDiagramEditor.java:187)
     at
org.eclipse.papyrus.sasheditor.contentprovider.di.internal.ContentChangedEventProvider.fireContentChanged(ContentChangedEventProvider.java:162)
     at
org.eclipse.papyrus.sasheditor.contentprovider.di.internal.ContentChangedEventProvider$EMFAdapter.notifyChanged(ContentChangedEventProvider.java:194)
     at
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:380)
     at
org.eclipse.emf.ecore.util.EcoreEList.dispatchNotification(EcoreEList.java:255)
     at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:300)
     at
org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:307)
     at
org.eclipse.papyrus.sashwindows.di.impl.TabFolderImpl.addPage(TabFolderImpl.java:91)
     at
org.eclipse.papyrus.sashwindows.di.impl.SashModelImpl.addPage(SashModelImpl.java:145)
     at
org.eclipse.papyrus.sasheditor.contentprovider.di.internal.PageMngrImpl.openPage(PageMngrImpl.java:141)
     at
org.eclipse.papyrus.sasheditor.contentprovider.di.internal.TransactionalPageMngrImpl$5.doExecute(TransactionalPageMngrImpl.java:164)
     at
org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
     at
org.eclipse.emf.workspace.EMFCommandOperation.doExecute(EMFCommandOperation.java:119)
     at
org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
     at
org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:511)
     at
org.eclipse.emf.workspace.impl.WorkspaceCommandStackImpl.doExecute(WorkspaceCommandStackImpl.java:208)
     at
org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:165)
     at
org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219)
     at
org.eclipse.papyrus.sasheditor.contentprovider.di.internal.TransactionalPageMngrImpl.openPage(TransactionalPageMngrImpl.java:169)
     at
org.eclipse.papyrus.modelexplorer.actions.OpenDiagramAction.run(OpenDiagramAction.java:62)
     at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
     at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
     at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
     at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
     at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
     at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
     at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
     at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
     at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
     at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
     at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
     at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
     at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
     at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
     at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
     at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

This is the same thing as in bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=319240
But it apears that the bug is normally fixed.

I have two questions:
1. Is it normal for this error to append ? (I need to open a bug ?)
2. I have a few huge diagrams corrupted and I would like to know if you
have some kind of patch to get back the diagrams ?

Arnaud



_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev

--


	* Hémery Vincent*
*Ingénieur - Atos Origin*
Telephone : +33 (0) 5 34 36 32 90
www.atosorigin.fr <http://www.atosorigin.fr>

Développement durable, anticipons pour notre avenir / Sustainability,
advance our future
P N'imprimez ce mail que si nécessaire / please consider your
environmental responsibility before printing this e-mail.
Ce message et les pièces jointes sont confidentiels et réservés à
l'usage exclusif de ses destinataires. Il peut également être protégé
par le secret professionnel. Si vous recevez ce message par erreur,
merci d'en avertir immédiatement l'expéditeur et de le détruire.
L'intégrité du message ne pouvant être assurée sur Internet, la
responsabilité du groupe Atos Origin ne pourra être recherchée quant au
contenu de ce message. Bien que les meilleurs efforts soient faits pour
maintenir cette transmission exempte de tout virus, l'expéditeur ne
donne aucune garantie à cet égard et sa responsabilité ne saurait être
recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive this
e-mail in error, please notify the sender immediately and destroy it. As
its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the
sender endeavours to maintain a computer virus-free network, the sender
does not warrant that this transmission is virus-free and will not be
liable for any damages resulting from any virus transmitted.



Back to the top