Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Cannot open Papyrus model in eclipse model explorer
Cannot open Papyrus model in eclipse model explorer [message #1824532] Fri, 17 April 2020 05:10 Go to next message
Kamel Idir is currently offline Kamel IdirFriend
Messages: 6
Registered: April 2020
Junior Member
Hi,

After upgrading my eclipse IDE from Oxygen (4.7.3a) version to photon version (4.8), I' m not ale to open papyrus model in papyrus perspective model explorer. and not able to create papyrus model from uml file.

below is the stack trace when trying to open papyrus model .di file.

eclipse.buildId=4.8.0.I20180611-0500
java.version=1.8.0_171
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

org.eclipse.ui
Error
Wed Apr 15 00:34:38 EDT 2020
Unhandled event loop exception

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.papyrus.uml.decoratormodel.internal.resource.DecoratormodelIndex
at org.eclipse.papyrus.uml.decoratormodel.internal.resource.DecoratormodelReadOnlyHandler.anyReadOnly(DecoratormodelReadOnlyHandler.java:67)
at org.eclipse.papyrus.infra.emf.readonly.ReadOnlyManager.anyReadOnly(ReadOnlyManager.java:273)
at org.eclipse.papyrus.infra.emf.readonly.ReadOnlyManager.anyReadOnly(ReadOnlyManager.java:254)
at org.eclipse.papyrus.infra.emf.readonly.ReadOnlyOneFileApprover.proceedExecuting(ReadOnlyOneFileApprover.java:108)
at org.eclipse.papyrus.infra.emf.gmf.command.CheckedOperationHistory.getExecuteApproval(CheckedOperationHistory.java:157)
at org.eclipse.papyrus.infra.emf.gmf.command.CheckedOperationHistory.execute(CheckedOperationHistory.java:190)
at org.eclipse.papyrus.infra.emf.gmf.command.NotifyingWorkspaceCommandStack.doExecute(NotifyingWorkspaceCommandStack.java:264)
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.emf.gmf.command.NestingNotifyingWorkspaceCommandStack.execute(NestingNotifyingWorkspaceCommandStack.java:130)
at org.eclipse.papyrus.uml.diagram.wizards.wizards.InitmodelWizard.createpapyrusmodels(InitmodelWizard.java:163)
at org.eclipse.papyrus.uml.diagram.wizards.wizards.createmodelWizard.createAndOpenpapyrusmodel(createmodelWizard.java:321)
at org.eclipse.papyrus.uml.diagram.wizards.wizards.createmodelWizard.performFinish(createmodelWizard.java:281)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:772)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:411)
at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619)
at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:81)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4118)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3931)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3534)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
at org.eclipse.jface.window.Window.open(Window.java:794)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:269)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:290)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:93)
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:55)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:318)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:252)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:204)
at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:393)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:151)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4118)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3931)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3534)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1170)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1059)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:667)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:597)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
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:656)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
at org.eclipse.equinox.launcher.Main.run(Main.java:1498)

Appreciate your help to get a fix for this issue.

PS. Please note that this was working fine in Oxygen before I upgrade to Photon.
Thanks,

[Updated on: Sun, 19 April 2020 15:26]

Report message to a moderator

Re: Cannot open Papyrus model in eclipse model explorer [message #1826265 is a reply to message #1824532] Wed, 22 April 2020 13:13 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 281
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Hi,

I never had this problem with photon (which is already quite old). How did you migrate from oxygen? Can you try to setup Eclipse photon from scratch? Is it an option for you to use a current Eclipse version?
Re: Cannot open Papyrus model in eclipse model explorer [message #1826499 is a reply to message #1826265] Sat, 25 April 2020 22:38 Go to previous messageGo to next message
Kamel Idir is currently offline Kamel IdirFriend
Messages: 6
Registered: April 2020
Junior Member
Hi Ansgar,

My intention in the begining was to upgrade Oxygen rather then to go with an Install of Photon from scratch as I don't want to lose my current projects and the procedure I followed is
1- Added http://download.eclipse.org/releases/photon site Under Preferences -> Install/Update -> Available Software Sites
2- I went to Help -> Check for Updates.

If I'm not able to solve this issue definitely I will go with a fresh install of Eclipse 2020-03.

Thanks,
/Kamel

[Updated on: Sat, 25 April 2020 22:39]

Report message to a moderator

Re: Cannot open Papyrus model in eclipse model explorer [message #1826516 is a reply to message #1826499] Sun, 26 April 2020 11:31 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 273
Registered: May 2015
Location: Germany
Senior Member
Hi Kamel,
I highly recommend to always do a fresh installation of any Eclipse based IDE with a new, fresh workspace folder.
And import the projects to be used with the new release into the newly created workspace. Please do not forget to set the copy switch.
Following this procedure will keep the old installation completely untouched. Consequently you can use the old installation as fall back until you have completely validated the new installation.
The ability to set up a new installation while preserving the existing one is an IHMO big plus of Eclipse over most commercial IDEs. With IBM Rational Rhapsody for example I do a complete backup before installing a new release.
/Carsten

[Updated on: Sun, 26 April 2020 11:35]

Report message to a moderator

Re: Cannot open Papyrus model in eclipse model explorer [message #1826557 is a reply to message #1826516] Mon, 27 April 2020 05:47 Go to previous messageGo to next message
Kamel Idir is currently offline Kamel IdirFriend
Messages: 6
Registered: April 2020
Junior Member
Hi Ansgar and Carsten,

I have done a fresh install of eclipse 2020-03 using the installer, now the issue of creating a new papyrus model or opening the papyrus models from my old projects is fixed. however I noticed that the modeling perspective is not shown under perspectives.

What is the eclipse plugin responsible for that? I have Eclipse Modeling Framework SDK already installed.

Any idea on how to get it back.

/Kamel
Re: Cannot open Papyrus model in eclipse model explorer [message #1826595 is a reply to message #1826557] Mon, 27 April 2020 14:57 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 273
Registered: May 2015
Location: Germany
Senior Member
Hi Kamel,
"Eclipse Modeling Framework SDK" ist not Papyrus. Either you get the Papyrus all-in-one package or you have to install Papyrus on top of "Eclipse Modeling Framework SDK".
/carsten
Re: Cannot open Papyrus model in eclipse model explorer [message #1826626 is a reply to message #1826595] Mon, 27 April 2020 23:10 Go to previous messageGo to next message
Kamel Idir is currently offline Kamel IdirFriend
Messages: 6
Registered: April 2020
Junior Member
Hi Carsten,

After Eclispe 2020-03 fresh install, I have installed Papyrus plugin for Eclipse 202-03 (http://download.eclipse.org/modeling/mdt/papyrus/updates/releases/2020-03).

I'm attaching my eclipse perspectives.

Before I had Modeling perspective, don't understand why now is not appearing in the list of perspectives.

Thanks,
/Kamel

[Updated on: Mon, 27 April 2020 23:11]

Report message to a moderator

Re: Cannot open Papyrus model in eclipse model explorer [message #1826639 is a reply to message #1826626] Tue, 28 April 2020 06:13 Go to previous message
Kamel Idir is currently offline Kamel IdirFriend
Messages: 6
Registered: April 2020
Junior Member
Hi Carsten,

I have fixed my issue. Now I can see Modeling perspective in my eclipse perspectives list.
Basically I have installed Ecore Project modeling plugin for Eclipse 2020-03 on top of EMF SDK and after a restart it is added.

Thanks for your guidance.
/Kamel
Previous Topic:Custom palette set multiplicity
Next Topic:UMLLight add elements to palette
Goto Forum:
  


Current Time: Mon Jan 25 08:21:19 GMT 2021

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

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

Back to the top