Community
Participate
Working Groups
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)
I cannot reproduce the bug. Which version of Papyrus are you using ?
(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.
Ok, I close the bug
(In reply to comment #3) > Ok, I close the bug OK