Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Problems with Papyrus 0.9.0
Problems with Papyrus 0.9.0 [message #876272] Thu, 24 May 2012 09:34 Go to next message
Benjamin Schmeling is currently offline Benjamin SchmelingFriend
Messages: 2
Registered: June 2010
Junior Member
Hi,

I tried different Versions (M6 and RC1) of Papyrus. In both Versions there is a problem with Activity Diagrams. In M6 I was not able to connect nodes with control flow, e.g. Opaque Actions with other Opaque Actions. In RC1 I cannot even create an Activity Diagram via the Papyrus Model Wizard. It creates a model.di file but I cannot open this file (I guess because the other files are not generated).

The stacktrace is:

java.lang.NullPointerException
at org.eclipse.papyrus.infra.core.utils.ServiceUtilsForActionHandlers.getServiceRegistry(ServiceUtilsForActionHandlers.java:70)
at org.eclipse.papyrus.infra.core.utils.ServiceUtilsForActionHandlers.getTransactionalEditingDomain(ServiceUtilsForActionHandlers.java:88)
at org.eclipse.papyrus.infra.emf.utils.EMFHelper.resolveEditingDomain(EMFHelper.java:190)
at org.eclipse.papyrus.uml.diagram.common.helper.PreferenceInitializerForElementHelper.initBackgroundFromPrefs(PreferenceInitializerForElementHelper.java:102)
at org.eclipse.papyrus.uml.diagram.activity.providers.UMLViewProvider.createActivity_2001(UMLViewProvider.java:547)
at org.eclipse.papyrus.uml.diagram.activity.providers.UMLViewProvider.createNode(UMLViewProvider.java:322)
at org.eclipse.gmf.runtime.diagram.core.services.view.CreateNodeViewOperation.execute(CreateNodeViewOperation.java:67)
at org.eclipse.gmf.runtime.common.core.service.ExecutionStrategy$1.execute(ExecutionStrategy.java:70)
at org.eclipse.gmf.runtime.common.core.service.Service.execute(Service.java:651)
at org.eclipse.gmf.runtime.diagram.core.services.ViewService.execute(ViewService.java:184)
at org.eclipse.gmf.runtime.diagram.core.services.ViewService.createNode(ViewService.java:499)
at org.eclipse.gmf.runtime.diagram.core.services.ViewService.createView(ViewService.java:265)
at org.eclipse.papyrus.uml.diagram.common.commands.CreateBehavioredClassifierDiagramCommand.createBehaviorView(CreateBehavioredClassifierDiagramCommand.java:98)
at org.eclipse.papyrus.uml.diagram.common.commands.CreateBehavioredClassifierDiagramCommand.initializeDiagram(CreateBehavioredClassifierDiagramCommand.java:48)
at org.eclipse.papyrus.uml.diagram.common.commands.CreateBehavioredClassifierDiagramCommand.createDiagram(CreateBehavioredClassifierDiagramCommand.java:117)
at org.eclipse.papyrus.infra.gmfdiag.common.AbstractPapyrusGmfCreateDiagramCommandHandler$2.doExecuteWithResult(AbstractPapyrusGmfCreateDiagramCommandHandler.java:318)
at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand.doExecute(AbstractTransactionalCommand.java:247)
at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:403)
at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:134)
at org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper.execute(GMFtoEMFCommandWrapper.java:118)
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:513)
at org.eclipse.papyrus.commands.CheckedOperationHistory.execute(CheckedOperationHistory.java:182)
at org.eclipse.papyrus.commands.NotifyingWorkspaceCommandStack.doExecute(NotifyingWorkspaceCommandStack.java:252)
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.infra.gmfdiag.common.AbstractPapyrusGmfCreateDiagramCommandHandler.runAsTransaction(AbstractPapyrusGmfCreateDiagramCommandHandler.java:125)
at org.eclipse.papyrus.infra.gmfdiag.common.AbstractPapyrusGmfCreateDiagramCommandHandler$1.doExecute(AbstractPapyrusGmfCreateDiagramCommandHandler.java:279)
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:513)
at org.eclipse.papyrus.commands.CheckedOperationHistory.execute(CheckedOperationHistory.java:182)
at org.eclipse.papyrus.commands.NotifyingWorkspaceCommandStack.doExecute(NotifyingWorkspaceCommandStack.java:252)
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.infra.gmfdiag.common.AbstractPapyrusGmfCreateDiagramCommandHandler.createDiagram(AbstractPapyrusGmfCreateDiagramCommandHandler.java:282)
at org.eclipse.papyrus.uml.diagram.wizards.CreateModelWizard.initDiagrams(CreateModelWizard.java:440)
at org.eclipse.papyrus.uml.diagram.wizards.InitModelWizard.initDiagrams(InitModelWizard.java:192)
at org.eclipse.papyrus.uml.diagram.wizards.CreateModelWizard.initDiagramModel(CreateModelWizard.java:398)
at org.eclipse.papyrus.uml.diagram.wizards.CreateModelWizard.createAndOpenPapyrusModel(CreateModelWizard.java:179)
at org.eclipse.papyrus.uml.diagram.wizards.CreateModelWizard.performFinish(CreateModelWizard.java:156)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
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:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:259)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:279)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
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:229)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:210)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:492)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
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:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1021)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:915)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

Are you already working on this issue? When will there be a Papyrus Version with a working Activity Diagram?

Regards,

Benjamin
Re: Problems with Papyrus 0.9.0 [message #891927 is a reply to message #876272] Tue, 26 June 2012 15:35 Go to previous messageGo to next message
Ronan B is currently offline Ronan BFriend
Messages: 249
Registered: July 2009
Senior Member
Hi,
I also cannot create simple constructs in Papyrus 0.9 on Juno build 20120606-2254/Windows Vista. I cannot even get a control flow connector to link to an initial node/opaque action/activity final. Is there something i'm missing here?
Regards,
Ronan
Re: Problems with Papyrus 0.9.0 [Activity Diagrams] [message #892744 is a reply to message #876272] Fri, 29 June 2012 13:16 Go to previous messageGo to next message
Ronan B is currently offline Ronan BFriend
Messages: 249
Registered: July 2009
Senior Member
Hi,
I have figured this out now. Papyrus doesn't always create Opaque Actions or Initial/Final elements correctly. Sometimes they have no owner defined. This means they cannot have Control Flow elements defined between them. An icon with a red stripe appears on such "orphan" elements.

This always seems to occur when one uses the Palette to place elements in the Activity. The elements get created correctly when I use the Model Explorer.

Very annoying bug. I'll file it to bugzilla.

Regards,
Ronan
Re: Problems with Papyrus 0.9.0 [Activity Diagrams] [message #892753 is a reply to message #892744] Fri, 29 June 2012 13:33 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 511
Registered: February 2011
Senior Member
Hello Ronan,

I think this has been fixed in the late revisions of Juno (Such as RC2 or RC3). This should work fine on the final version (Which has been released two days ago).


Regards,
Camille


Camille Letavernier
Papyrus developer
Re: Problems with Papyrus 0.9.0 [Activity Diagrams] [message #892757 is a reply to message #892753] Fri, 29 June 2012 13:51 Go to previous message
Ronan B is currently offline Ronan BFriend
Messages: 249
Registered: July 2009
Senior Member
Hi,
Okay great! This works fine now on Version: Juno Release, Build id: 20120620-1657. My models were created with the Papyrus build just before that one so I just deleted the elements and recreated them.
Regards,
Ronan
Previous Topic:how can we show properties of a stereotype in a diagram??
Next Topic:How to programmatically select an element in Papyrus Model Explorer
Goto Forum:
  


Current Time: Sat Dec 20 05:21:14 GMT 2014

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

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