Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360627 - Not possible to apply a profile to a model - Unhandled event loop exception
Summary: Not possible to apply a profile to a model - Unhandled event loop exception
Status: CLOSED WORKSFORME
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.8.1   Edit
Hardware: All Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Camille Letavernier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-12 04:47 EDT by yirco CLA
Modified: 2011-10-12 10:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yirco CLA 2011-10-12 04:47:29 EDT
Reproduction:

*) Create a Papyrus project and model.
*) Select the model in the Model Explorer.
*) In the Properties View select Profile tab.
*) Click Apply Registered Profile.
*) Select Standard profile.

It causes the following error:

null
Error
Wed Oct 12 10:43:43 CEST 2011
Unhandled event loop exception

java.lang.IllegalArgumentException: org.eclipse.uml2.uml.internal.impl.ProfileImpl@1492242 (name: UseCases, visibility: <unset>)
	at org.eclipse.uml2.uml.internal.operations.PackageOperations.unapplyProfile(PackageOperations.java:665)
	at org.eclipse.uml2.uml.internal.impl.PackageImpl.unapplyProfile(PackageImpl.java:1068)
	at org.eclipse.papyrus.properties.uml.databinding.command.UnapplyProfileCommand.execute(UnapplyProfileCommand.java:67)
	at org.eclipse.emf.common.command.CompoundCommand.execute(CompoundCommand.java:267)
	at org.eclipse.papyrus.properties.uml.databinding.ProfileApplicationObservableList$2.execute(ProfileApplicationObservableList.java:141)
	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:169)
	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.papyrus.properties.uml.databinding.ProfileApplicationObservableList.commit(ProfileApplicationObservableList.java:181)
	at org.eclipse.papyrus.widgets.editors.AbstractEditor.commit(AbstractEditor.java:231)
	at org.eclipse.papyrus.widgets.editors.MultipleValueEditor.commit(MultipleValueEditor.java:391)
	at org.eclipse.papyrus.properties.uml.widgets.ProfileApplicationEditor.addRegisteredAction(ProfileApplicationEditor.java:161)
	at org.eclipse.papyrus.properties.uml.widgets.ProfileApplicationEditor.widgetSelected(ProfileApplicationEditor.java:168)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
	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:4165)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	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:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Comment 1 Camille Letavernier CLA 2011-10-12 08:13:49 EDT
I cannot reproduce the bug.

Which version of Papyrus are you using ?
Comment 2 yirco CLA 2011-10-12 09:33:18 EDT
(In reply to comment #1)
> I cannot reproduce the bug.
> 
> Which version of Papyrus are you using ?

I updated this morning from:
Development update sites (version 0.8.2):

    http://download.eclipse.org/modeling/mdt/papyrus/updates/nightly/indigo
    (Eclipse Indigo Update)

But now I uninstalled the Papyrus and installed it again from the site and the bug is not longer there.
Comment 3 Camille Letavernier CLA 2011-10-12 10:06:03 EDT
Ok, I close the bug
Comment 4 yirco CLA 2011-10-12 10:44:33 EDT
(In reply to comment #3)
> Ok, I close the bug

OK