Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » MARTE and SysML stereotypes brake OCL text editor(Failed to create context Error)
MARTE and SysML stereotypes brake OCL text editor [message #1201925] Fri, 22 November 2013 00:29 Go to next message
Damjan Temelkovski is currently offline Damjan TemelkovskiFriend
Messages: 16
Registered: November 2013
Junior Member
Hi,

I may be doing something wrong, but I wanted to use OCL and the text editor brakes as soon as I add a MARTE <<clock>> or a SysML <<satisfy>> for example. I made sure I added the context from the properties and even with a context link edge. Can someone please enlighten me, am I doing something wrong or is this a bug?

index.php/fa/16793/0/
index.php/fa/16794/0/

Thank you for your time,

Damjan
Re: MARTE and SysML stereotypes brake OCL text editor [message #1202471 is a reply to message #1201925] Fri, 22 November 2013 06:50 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6772
Registered: July 2009
Senior Member
Hi

Your picture shows an entry in the Error Log.

What is the stack trace?

Regards

Ed Willink


On 22/11/2013 00:29, Damjan Temelkovski wrote:
> Hi,
>
> I may be doing something wrong, but I wanted to use OCL and the text editor brakes as soon as I add a MARTE <<clock>> or a SysML <<satisfy>> for example. I made sure I added the context from the properties and even with a context link edge. Can someone please enlighten me, am I doing something wrong or is this a bug?
>
>
>
>
> Thank you for your time,
>
> Damjan
>
Re: MARTE and SysML stereotypes brake OCL text editor [message #1203159 is a reply to message #1202471] Fri, 22 November 2013 14:09 Go to previous messageGo to next message
Damjan Temelkovski is currently offline Damjan TemelkovskiFriend
Messages: 16
Registered: November 2013
Junior Member
Hi,

Sorry for not posting the stack trace. Here it is:
org.eclipse.core.commands.ExecutionException: Failed to create context for org.eclipse.uml2.uml.internal.impl.ConstraintImpl@bb4701 (name: PedalPressureActuatorMode3ReactionConstraint, visibility: <unset>)
	at org.eclipse.papyrus.uml.textedit.constraintwithessentialocl.xtext.EssentialOCLPopupEditorConfiguration$Reconciler.configureResource(EssentialOCLPopupEditorConfiguration.java:75)
	at org.eclipse.papyrus.uml.textedit.constraintwithessentialocl.xtext.EssentialOCLPartialModelEditor.createResource(EssentialOCLPartialModelEditor.java:58)
	at org.eclipse.papyrus.infra.gmfdiag.xtext.glue.partialEditing.PartialModelEditor.setModel(PartialModelEditor.java:65)
	at org.eclipse.papyrus.infra.gmfdiag.xtext.glue.partialEditing.SourceViewerHandle.createPartialEditor(SourceViewerHandle.java:107)
	at org.eclipse.papyrus.infra.gmfdiag.xtext.glue.edit.part.PopupXtextEditorHelper.createXtextEditor(PopupXtextEditorHelper.java:264)
	at org.eclipse.papyrus.infra.gmfdiag.xtext.glue.edit.part.PopupXtextEditorHelper.showEditor(PopupXtextEditorHelper.java:203)
	at org.eclipse.papyrus.uml.diagram.clazz.edit.parts.ConstraintNameEditPart.performDirectEditRequest(ConstraintNameEditPart.java:411)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.performRequest(GraphicalEditPart.java:1119)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.TopGraphicEditPart.performDirectEditRequest(TopGraphicEditPart.java:130)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.performRequest(GraphicalEditPart.java:1119)
	at org.eclipse.papyrus.uml.diagram.common.handlers.RenamedElementHandler.execute(RenamedElementHandler.java:50)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
	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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:285)
	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:504)
	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:555)
	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:376)
	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:322)
	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:84)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1056)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1108)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
	at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1827)
	at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4975)
	at org.eclipse.swt.widgets.Canvas.WM_KEYDOWN(Canvas.java:429)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4643)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4990)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	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:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
	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:636)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
Caused by: org.eclipse.ocl.examples.pivot.ParserException: Failed to load 'pivot:/platform/resource/uml/model.uml' : null
	at org.eclipse.ocl.examples.pivot.uml.UML2Pivot$Outer.getPivotRoot(UML2Pivot.java:548)
	at org.eclipse.ocl.examples.pivot.uml.UML2Pivot$Factory.getPivotOf(UML2Pivot.java:126)
	at org.eclipse.ocl.examples.pivot.manager.MetaModelManager.getPivotOf(MetaModelManager.java:1911)
	at org.eclipse.ocl.examples.pivot.utilities.PivotUtil.setParserContext(PivotUtil.java:1272)
	at org.eclipse.papyrus.uml.textedit.constraintwithessentialocl.xtext.EssentialOCLPopupEditorConfiguration$Reconciler.configureResource(EssentialOCLPopupEditorConfiguration.java:71)
	... 67 more
Caused by: java.lang.NullPointerException
	at org.eclipse.ocl.examples.pivot.uml.UML2Pivot$Outer.installStereotypes(UML2Pivot.java:766)
	at org.eclipse.ocl.examples.pivot.uml.UML2Pivot$Outer.getPivotRoot(UML2Pivot.java:538)
	... 71 more


Thank you for looking into this,

Damjan
Re: MARTE and SysML stereotypes brake OCL text editor [message #1203537 is a reply to message #1203159] Fri, 22 November 2013 18:13 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6772
Registered: July 2009
Senior Member
Hi

This is https://bugs.eclipse.org/bugs/show_bug.cgi?id=413532. Try
installing the latest MDT/OCL from
http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/4.2.0 or
http://www.eclipse.org/modeling/mdt/downloads/?project=ocl.

Regards

Ed Willink

On 22/11/2013 14:09, Damjan Temelkovski wrote:
> Hi,
>
> Sorry for not posting the stack trace. Here it is:
>
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.ocl.examples.pivot.uml.UML2Pivot$Outer.installStereotypes(UML2Pivot.java:766)
> at
> org.eclipse.ocl.examples.pivot.uml.UML2Pivot$Outer.getPivotRoot(UML2Pivot.java:538)
> ... 71 more
>
>
> Thank you for looking into this,
>
> Damjan
Re: MARTE and SysML stereotypes brake OCL text editor [message #1203619 is a reply to message #1203537] Fri, 22 November 2013 19:06 Go to previous message
Damjan Temelkovski is currently offline Damjan TemelkovskiFriend
Messages: 16
Registered: November 2013
Junior Member
Thank you very much Ed Willink,

I installed the OCL-4.2.0M3 bundle from the first link you posted and now the OCL text editor works.
I really should search through reported bugs before posting, but thank you so much for helping me out

Damjan
Previous Topic:Unexpected Error by the Properties View
Next Topic:Integrating custom OCL rules with the Papyrus editor
Goto Forum:
  


Current Time: Sat Jul 11 09:20:22 GMT 2020

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

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

Back to the top