Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Required Event attribute is missing
Required Event attribute is missing [message #469775] Wed, 25 March 2009 14:10 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hey all,

i've started to work with Papyrus right now, and i have a really good
feeling by working with it. But i have a question concerning sequence
diagrams.

When create an BehaviorExecutionOccurrence, the start and finish
ExecutionOccorrenceSpecifications are created automatically, and due to
the UML spec, every EOS had to redefine the event association. But in
Papyrus it is neither possible to set this event, nor will this event be
set automatically.

I tried to manipulate the uml-file directly, bu that causes an
IllegalArgumentException with the following trace:

java.lang.IllegalArgumentException:
org.eclipse.uml2.uml.internal.impl.ReceiveOperationEventImpl @15c80a4
(name: RecvEvt1, visibility: <unset>) (visibility: public)
at
org.eclipse.uml2.uml.internal.impl.ExecutionOccurrenceSpecif icationImpl.setEvent(ExecutionOccurrenceSpecificationImpl.ja va:177)
at
org.eclipse.uml2.uml.internal.impl.ExecutionOccurrenceSpecif icationImpl.eSet(ExecutionOccurrenceSpecificationImpl.java:3 08)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjec tImpl.java:1061)
at org.eclipse.emf.edit.command.SetCommand.doExecute(SetCommand .java:705)
at
org.eclipse.emf.edit.command.AbstractOverrideableCommand.exe cute(AbstractOverrideableCommand.java:129)
at
org.eclipse.emf.common.command.BasicCommandStack.execute(Bas icCommandStack.java:92)
at
org.eclipse.emf.edit.provider.ItemPropertyDescriptor.setProp ertyValue(ItemPropertyDescriptor.java:1400)
at
org.eclipse.uml2.uml.editor.presentation.UMLEditor$UMLProper tySource.setPropertyValue(UMLEditor.java:1850)
at
org.eclipse.ui.views.properties.PropertySheetEntry.valueChan ged(PropertySheetEntry.java:782)
at
org.eclipse.ui.views.properties.PropertySheetEntry.setValue( PropertySheetEntry.java:723)
at
org.eclipse.ui.views.properties.PropertySheetEntry.applyEdit orValue(PropertySheetEntry.java:146)
at
org.eclipse.ui.views.properties.PropertySheetEntry$1.applyEd itorValue(PropertySheetEntry.java:103)
at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:3 05)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 9)
at
org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(Ce llEditor.java:303)
at
org.eclipse.jface.viewers.ComboBoxCellEditor.applyEditorValu eAndDeactivate(ComboBoxCellEditor.java:267)
at
org.eclipse.jface.viewers.ComboBoxCellEditor$2.widgetDefault Selected(ComboBoxCellEditor.java:146)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:112)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:7 06)
at org.eclipse.swt.custom.CCombo.textEvent(CCombo.java:1497)
at org.eclipse.swt.custom.CCombo$1.handleEvent(CCombo.java:102)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:975)
at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1299)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:971)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1285)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3772)
at org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:2018)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3672 )
at org.eclipse.swt.widgets.Text.windowProc(Text.java:2013)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4351 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:22 65)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3291)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
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: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)


I think this a technical bug, may be a logical bug in the specification,
i don't know, because the intention of this required event-attribute is
not clear to me.

Thx
Timothy
Re: Required Event attribute is missing [message #469786 is a reply to message #469775] Thu, 26 March 2009 18:57 Go to previous message
Yann Tanguy is currently offline Yann TanguyFriend
Messages: 80
Registered: July 2009
Member
You should report the exception on the UML2 newsgroup.

Timothy Marc a écrit :
> Hey all,
>
> i've started to work with Papyrus right now, and i have a really good
> feeling by working with it. But i have a question concerning sequence
> diagrams.
>
> When create an BehaviorExecutionOccurrence, the start and finish
> ExecutionOccorrenceSpecifications are created automatically, and due to
> the UML spec, every EOS had to redefine the event association. But in
> Papyrus it is neither possible to set this event, nor will this event be
> set automatically.
>
> I tried to manipulate the uml-file directly, bu that causes an
> IllegalArgumentException with the following trace:
>
> java.lang.IllegalArgumentException:
> org.eclipse.uml2.uml.internal.impl.ReceiveOperationEventImpl @15c80a4
> (name: RecvEvt1, visibility: <unset>) (visibility: public)
> at
> org.eclipse.uml2.uml.internal.impl.ExecutionOccurrenceSpecif icationImpl.setEvent(ExecutionOccurrenceSpecificationImpl.ja va:177)
>
> at
> org.eclipse.uml2.uml.internal.impl.ExecutionOccurrenceSpecif icationImpl.eSet(ExecutionOccurrenceSpecificationImpl.java:3 08)
>
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjec tImpl.java:1061)
>
> at
> org.eclipse.emf.edit.command.SetCommand.doExecute(SetCommand .java:705)
> at
> org.eclipse.emf.edit.command.AbstractOverrideableCommand.exe cute(AbstractOverrideableCommand.java:129)
>
> at
> org.eclipse.emf.common.command.BasicCommandStack.execute(Bas icCommandStack.java:92)
>
> at
> org.eclipse.emf.edit.provider.ItemPropertyDescriptor.setProp ertyValue(ItemPropertyDescriptor.java:1400)
>
> at
> org.eclipse.uml2.uml.editor.presentation.UMLEditor$UMLProper tySource.setPropertyValue(UMLEditor.java:1850)
>
> at
> org.eclipse.ui.views.properties.PropertySheetEntry.valueChan ged(PropertySheetEntry.java:782)
>
> at
> org.eclipse.ui.views.properties.PropertySheetEntry.setValue( PropertySheetEntry.java:723)
>
> at
> org.eclipse.ui.views.properties.PropertySheetEntry.applyEdit orValue(PropertySheetEntry.java:146)
>
> at
> org.eclipse.ui.views.properties.PropertySheetEntry$1.applyEd itorValue(PropertySheetEntry.java:103)
>
> at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:3 05)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:857)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 9)
> at
> org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(Ce llEditor.java:303)
>
> at
> org.eclipse.jface.viewers.ComboBoxCellEditor.applyEditorValu eAndDeactivate(ComboBoxCellEditor.java:267)
>
> at
> org.eclipse.jface.viewers.ComboBoxCellEditor$2.widgetDefault Selected(ComboBoxCellEditor.java:146)
>
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:112)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:7 06)
> at org.eclipse.swt.custom.CCombo.textEvent(CCombo.java:1497)
> at org.eclipse.swt.custom.CCombo$1.handleEvent(CCombo.java:102)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:975)
> at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1299)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:971)
> at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1285)
> at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3772)
> at org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:2018)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3672 )
> at org.eclipse.swt.widgets.Text.windowProc(Text.java:2013)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4351 )
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:22 65)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3291)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> 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: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>
>
> I think this a technical bug, may be a logical bug in the specification,
> i don't know, because the intention of this required event-attribute is
> not clear to me.
>
> Thx
> Timothy
Re: Required Event attribute is missing [message #582253 is a reply to message #469775] Thu, 26 March 2009 18:57 Go to previous message
Yann Tanguy is currently offline Yann TanguyFriend
Messages: 80
Registered: July 2009
Member
You should report the exception on the UML2 newsgroup.

Timothy Marc a écrit :
> Hey all,
>
> i've started to work with Papyrus right now, and i have a really good
> feeling by working with it. But i have a question concerning sequence
> diagrams.
>
> When create an BehaviorExecutionOccurrence, the start and finish
> ExecutionOccorrenceSpecifications are created automatically, and due to
> the UML spec, every EOS had to redefine the event association. But in
> Papyrus it is neither possible to set this event, nor will this event be
> set automatically.
>
> I tried to manipulate the uml-file directly, bu that causes an
> IllegalArgumentException with the following trace:
>
> java.lang.IllegalArgumentException:
> org.eclipse.uml2.uml.internal.impl.ReceiveOperationEventImpl @15c80a4
> (name: RecvEvt1, visibility: <unset>) (visibility: public)
> at
> org.eclipse.uml2.uml.internal.impl.ExecutionOccurrenceSpecif icationImpl.setEvent(ExecutionOccurrenceSpecificationImpl.ja va:177)
>
> at
> org.eclipse.uml2.uml.internal.impl.ExecutionOccurrenceSpecif icationImpl.eSet(ExecutionOccurrenceSpecificationImpl.java:3 08)
>
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjec tImpl.java:1061)
>
> at
> org.eclipse.emf.edit.command.SetCommand.doExecute(SetCommand .java:705)
> at
> org.eclipse.emf.edit.command.AbstractOverrideableCommand.exe cute(AbstractOverrideableCommand.java:129)
>
> at
> org.eclipse.emf.common.command.BasicCommandStack.execute(Bas icCommandStack.java:92)
>
> at
> org.eclipse.emf.edit.provider.ItemPropertyDescriptor.setProp ertyValue(ItemPropertyDescriptor.java:1400)
>
> at
> org.eclipse.uml2.uml.editor.presentation.UMLEditor$UMLProper tySource.setPropertyValue(UMLEditor.java:1850)
>
> at
> org.eclipse.ui.views.properties.PropertySheetEntry.valueChan ged(PropertySheetEntry.java:782)
>
> at
> org.eclipse.ui.views.properties.PropertySheetEntry.setValue( PropertySheetEntry.java:723)
>
> at
> org.eclipse.ui.views.properties.PropertySheetEntry.applyEdit orValue(PropertySheetEntry.java:146)
>
> at
> org.eclipse.ui.views.properties.PropertySheetEntry$1.applyEd itorValue(PropertySheetEntry.java:103)
>
> at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:3 05)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:857)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 9)
> at
> org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(Ce llEditor.java:303)
>
> at
> org.eclipse.jface.viewers.ComboBoxCellEditor.applyEditorValu eAndDeactivate(ComboBoxCellEditor.java:267)
>
> at
> org.eclipse.jface.viewers.ComboBoxCellEditor$2.widgetDefault Selected(ComboBoxCellEditor.java:146)
>
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:112)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:7 06)
> at org.eclipse.swt.custom.CCombo.textEvent(CCombo.java:1497)
> at org.eclipse.swt.custom.CCombo$1.handleEvent(CCombo.java:102)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:975)
> at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1299)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:971)
> at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1285)
> at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3772)
> at org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:2018)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3672 )
> at org.eclipse.swt.widgets.Text.windowProc(Text.java:2013)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4351 )
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:22 65)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3291)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> 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: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>
>
> I think this a technical bug, may be a logical bug in the specification,
> i don't know, because the intention of this required event-attribute is
> not clear to me.
>
> Thx
> Timothy
Previous Topic:Problem applying a Profile
Next Topic:Static profiles from 3rd party for Papyrus
Goto Forum:
  


Current Time: Mon Aug 10 12:25:51 GMT 2020

Powered by FUDForum. Page generated in 0.02110 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top