Bug 471564 - [MOKA] Unhelpful NPE when the element to be executed is not a factory
Summary: [MOKA] Unhelpful NPE when the element to be executed is not a factory
Status: UNCONFIRMED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Moka (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-01 06:06 EDT by Klaas Gadeyne CLA
Modified: 2016-10-03 05:38 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaas Gadeyne CLA 2015-07-01 06:06:17 EDT
eclipse.buildId=4.5.0.I20150603-2000
papyrus 1.1 nightly

How to reproduce:
- Follow the steps in the (embedded) moka documentation (I hope I did).  At some point, the doc mentions

[quote]
To start the execution, simply press the Debug button.
[/quote]

This is what happens

Following exception occurs (org.eclipse.papyrus.infra.core)

java.lang.NullPointerException
	at org.eclipse.papyrus.moka.composites.Semantics.Actions.IntermediateActions.CS_AddStructuralFeatureValueActionActivation.doActionDefault(CS_AddStructuralFeatureValueActionActivation.java:204)
	at org.eclipse.papyrus.moka.composites.Semantics.Actions.IntermediateActions.CS_AddStructuralFeatureValueActionActivation.doAction(CS_AddStructuralFeatureValueActionActivation.java:53)
	at org.eclipse.papyrus.moka.fuml.Semantics.Actions.BasicActions.ActionActivation.fire(ActionActivation.java:117)
	at org.eclipse.papyrus.moka.fuml.Semantics.Activities.IntermediateActivities.ActivityNodeActivation.receiveOffer(ActivityNodeActivation.java:85)
	at org.eclipse.papyrus.moka.fuml.Semantics.Actions.BasicActions.InputPinActivation.receiveOffer(InputPinActivation.java:24)
	at org.eclipse.papyrus.moka.fuml.Semantics.Activities.IntermediateActivities.ActivityEdgeInstance.sendOffer(ActivityEdgeInstance.java:66)
	at org.eclipse.papyrus.moka.fuml.Semantics.Activities.IntermediateActivities.ActivityNodeActivation.sendOffers(ActivityNodeActivation.java:117)
	at org.eclipse.papyrus.moka.fuml.Semantics.Activities.IntermediateActivities.ObjectNodeActivation.sendOffers(ObjectNodeActivation.java:43)
	at org.eclipse.papyrus.moka.fuml.Semantics.Activities.IntermediateActivities.ObjectNodeActivation.sendUnofferedTokens(ObjectNodeActivation.java:100)
	at org.eclipse.papyrus.moka.fuml.Semantics.Actions.BasicActions.ActionActivation.sendOffers(ActionActivation.java:188)
	at org.eclipse.papyrus.moka.fuml.Semantics.Actions.BasicActions.ActionActivation.completeAction(ActionActivation.java:136)
	at org.eclipse.papyrus.moka.fuml.Semantics.Actions.BasicActions.ActionActivation.fire(ActionActivation.java:118)
	at org.eclipse.papyrus.moka.fuml.Semantics.Activities.IntermediateActivities.ActivityNodeActivation.receiveOffer(ActivityNodeActivation.java:85)
	at org.eclipse.papyrus.moka.fuml.Semantics.Activities.IntermediateActivities.ActivityNodeActivationGroup.run(ActivityNodeActivationGroup.java:100)
	at org.eclipse.papyrus.moka.fuml.Semantics.Activities.IntermediateActivities.ActivityNodeActivationGroup.activate(ActivityNodeActivationGroup.java:141)
	at org.eclipse.papyrus.moka.fuml.Semantics.Activities.IntermediateActivities.ActivityExecution.execute(ActivityExecution.java:45)
	at org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.Executor.execute(Executor.java:48)
	at org.eclipse.papyrus.moka.async.fuml.FUMLAsyncExecutionEngine.start(FUMLAsyncExecutionEngine.java:72)
	at org.eclipse.papyrus.moka.async.fuml.FUMLAsyncExecutionEngine$1.run(FUMLAsyncExecutionEngine.java:121)
	at java.lang.Thread.run(Thread.java:745)

The last 2 lines seem strange to me.  However, the EE is set to PSCS Execution engine (multithreaded implementation) in the preferences.
Comment 1 Klaas Gadeyne CLA 2015-07-07 11:00:13 EDT
(forgot to add the motivation for classifying this one as "major")

AFAICT this bug causes MOKA to be completely dysfunctional, and MOKA has version 1.1.0 (not 0.7 as with some other extra plugins...)
Comment 2 Klaas Gadeyne CLA 2015-11-09 08:33:30 EST
(Retested after Remi's talk :-)
Seems to work fine using Mars SR1, papyrus v1.1.3 (nightly build).
Comment 3 Klaas Gadeyne CLA 2016-10-03 05:38:15 EDT
Reopening because of https://www.eclipse.org/forums/index.php?t=msg&th=1081400&goto=1744950&#msg_1744950 and lowering the priority