Bug 528005 - Visible exception when user cancels an EEF-based dialog or wizard
Summary: Visible exception when user cancels an EEF-based dialog or wizard
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Properties (show other bugs)
Version: 5.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 6.0.0   Edit
Assignee: Pierre-Charles David CLA
QA Contact: Julien Dupont CLA
URL:
Whiteboard: need_test
Keywords: triaged
Depends on:
Blocks: 530222
  Show dependency tree
 
Reported: 2017-12-01 04:47 EST by EPP Error Reports CLA
Modified: 2018-06-27 11:55 EDT (History)
3 users (show)

See Also:


Attachments
Sample project to reproduce the issue (3.43 KB, application/zip)
2017-12-01 05:49 EST, Pierre-Charles David CLA
no flags Details
Video of the reproduction scenario (229.91 KB, video/mp4)
2017-12-01 05:49 EST, Pierre-Charles David CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description EPP Error Reports CLA 2017-12-01 04:47:30 EST
The following problem was reported via the automated error reporting:

Message: An issue has occurred during the evaluation of 'aql:input.executeOperation(self, 'platform:/plugin/org.obeonetwork.dsl.uml2.design/description/uml2.odesign#//@extensions.0/@categories.0/@groups.0/@controls.0/@ifs.5/@widget/@onClickOperation')'.
executeOperation(org.eclipse.sirius.properties.core.api.SiriusInputDescriptor,org.eclipse.emf.ecore.EObject,java.lang.String) with arguments [org.eclipse.sirius.properties.core.api.SiriusInputDescriptor@54dcc3b8, org.eclipse.uml2.uml.internal.impl.PropertyImpl@3603c205 (name: nbCredits, visibility: <unset>) (isLeaf: false) (isStatic: false) (isOrdered: false, isUnique: true, isReadOnly: false) (aggregation: none, isDerived: false, isDerivedUnion: false, isID: false), platform:/plugin/org.obeonetwork.dsl.uml2.design/description/uml2.odesign#//@extensions.0/@categories.0/@groups.0/@controls.0/@ifs.5/@widget/@onClickOperation] failed:
	null

org.eclipse.core.runtime.OperationCanceledException: null
    at org.eclipse.sirius.ui.properties.internal.dialog.DialogTask.lambda$0(DialogTask.java:128)
    at java.util.Optional.ifPresent(Optional.java:159)
    at org.eclipse.sirius.ui.properties.internal.dialog.DialogTask.execute(DialogTask.java:103)
    at org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:127)
    at org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:138)
    at org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:138)
    at org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:138)
    at org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.execute(ExecuteToolOperationTask.java:111)
    at org.eclipse.sirius.business.api.helper.task.TaskExecutor.execute(TaskExecutor.java:64)
    at org.eclipse.sirius.tools.api.command.SiriusCommand.doExecute(SiriusCommand.java:80)
    at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
    at org.eclipse.sirius.properties.core.internal.SiriusToolServices.executeOperation(SiriusToolServices.java:69)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.acceleo.query.runtime.impl.JavaMethodService.internalInvoke(JavaMethodService.java:162)
    at org.eclipse.acceleo.query.runtime.impl.AbstractService.invoke(AbstractService.java:135)
    at org.eclipse.acceleo.query.runtime.impl.EvaluationServices.callService(EvaluationServices.java:129)
    at org.eclipse.acceleo.query.runtime.impl.EvaluationServices.call(EvaluationServices.java:172)
    at org.eclipse.acceleo.query.runtime.impl.EvaluationServices.callOrApply(EvaluationServices.java:208)
    at org.eclipse.acceleo.query.parser.AstEvaluator.caseCall(AstEvaluator.java:192)
    at org.eclipse.acceleo.query.ast.util.AstSwitch.doSwitch(AstSwitch.java:119)
    at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
    at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
    at org.eclipse.acceleo.query.parser.AstEvaluator.eval(AstEvaluator.java:112)
    at org.eclipse.acceleo.query.runtime.impl.QueryEvaluationEngine.eval(QueryEvaluationEngine.java:52)
    at org.eclipse.sirius.common.acceleo.aql.business.internal.AQLSiriusInterpreter.evaluateExpression(AQLSiriusInterpreter.java:212)
    at org.eclipse.sirius.tools.internal.interpreter.SessionInterpreter.evaluateExpression(SessionInterpreter.java:150)
    at org.eclipse.sirius.properties.core.api.SiriusInterpreter.evaluateExpression(SiriusInterpreter.java:64)
    at org.eclipse.eef.core.api.utils.EvalFactory$Eval.call(EvalFactory.java:204)
    at org.eclipse.eef.core.api.utils.EvalFactory$Eval.call(EvalFactory.java:181)
    at org.eclipse.eef.core.api.controllers.AbstractEEFOnClickController.lambda$0(AbstractEEFOnClickController.java:58)
    at org.eclipse.sirius.ui.properties.internal.TransactionalEditingDomainContextAdapter$1.doExecute(TransactionalEditingDomainContextAdapter.java:118)
    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:488)
    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.sirius.ui.properties.internal.TransactionalEditingDomainContextAdapter.performModelChange(TransactionalEditingDomainContextAdapter.java:124)
    at org.eclipse.eef.core.api.controllers.AbstractEEFOnClickController.onClick(AbstractEEFOnClickController.java:50)
    at org.eclipse.eef.ide.ui.api.widgets.EEFHyperlinkListener.mouseDown(EEFHyperlinkListener.java:102)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:193)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)



Bundles:
| org.eclipse.acceleo.query | 6.0.2.201708211328 | 6.0.2.201708211328 |
| org.eclipse.core.commands | 3.9.0.v20170530-1048 | 3.9.0.v20170530-1048 |
| org.eclipse.eef.core | 2.0.0.201705311515 | 2.0.0.201705311515 |
| org.eclipse.eef.ide.ui | 2.0.0.201705311515 | 2.0.0.201705311515 |
| org.eclipse.emf.ecore | 2.13.0.v20170609-0707 | 2.13.0.v20170609-0707 |
| org.eclipse.emf.transaction | 1.9.0.201706061339 | 1.9.0.201706061339 |
| org.eclipse.emf.workspace | 1.5.1.201706061339 | 1.5.1.201706061339 |
| org.eclipse.sirius | 5.0.1.201706290936 | 5.0.2.201709080927 |
| org.eclipse.sirius.common.acceleo.aql | 5.0.1.201706290936 | 5.0.2.201709080927 |
| org.eclipse.sirius.properties.core | 5.0.1.201706290936 | 5.0.2.201709080927 |
| org.eclipse.sirius.ui.properties | 5.0.1.201706290936 | 5.0.2.201709080927 |
| org.eclipse.swt | 3.106.0.v20170608-0516 | 3.106.1.v20170926-0519 |

Operating Systems:
| Linux | 4.4.0 | 4.4.0 |
| MacOSX | 10.11.6 | 10.13.2 |
| Windows | 6.1.0 | 10.0.0 |


The above information is a snapshot of the collected data. Visit https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/59c3d51ae4b02aaf8b1956ae for the latest data.

Thank you for your assistance.
 Your friendly error-reports-inbox.
Comment 1 Pierre-Charles David CLA 2017-12-01 05:49:19 EST
Created attachment 271732 [details]
Sample project to reproduce the issue

Steps to reproduce:
* Import the attached project and open the session and diagram inside.
* Open both the Properties view and the Error Log; clear the error log.
* In the diagram, select one of the elements.
* In the properties view, click on the "Open dialog" button.
* Close the dialog box that opens (either using the "Cancel" button or by closing the window itself): the error appears in the error log.
Comment 2 Pierre-Charles David CLA 2017-12-01 05:49:43 EST
Created attachment 271733 [details]
Video of the reproduction scenario
Comment 3 Eclipse Genie CLA 2018-01-23 11:15:36 EST
New Gerrit change created: https://git.eclipse.org/r/115892
Comment 5 Pierre-Charles David CLA 2018-01-26 11:14:35 EST
Fixed by 11513c142681c32e22dc4df8fa2f0ef600c25e0b.
Comment 6 Laurent Redor CLA 2018-06-27 11:55:26 EDT
Available in Sirius 6.0.0, see https://wiki.eclipse.org/Sirius/6.0.0 for details