Cannot open Papyrus model in eclipse model explorer [message #1824532] |
Fri, 17 April 2020 05:10 |
Kamel Idir 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 #1826516 is a reply to message #1826499] |
Sun, 26 April 2020 11:31 |
|
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
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03159 seconds