Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » OCL editor exception in eclipse (Thrown Exception when trying to open ecore file with OCL editor in eclipse)
OCL editor exception in eclipse [message #1808734] Sun, 30 June 2019 15:58 Go to next message
HAYTHAM DAHRI is currently offline HAYTHAM DAHRIFriend
Messages: 1
Registered: June 2019
Junior Member

Hi,
I am trying to build a model using ecore framework.
When i want to edit my OCL with OCLinEcore Editor, i always face the same exception.
I tried to reinstall the framework but still the same issue.
Even more, i looked anywhere for a solution but i didn't find.
It actually happend with all ecore files.

This is the exception:
org.eclipse.emf.common.util.WrappedException: org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.ocl.pivot.uml was unable to load class org.eclipse.ocl.pivot.uml.internal.resource.UMLASResourceFactory.
at org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescriptor.createInstance(RegistryReader.java:182)
at org.eclipse.ocl.pivot.internal.resource.ASResourceFactoryContribution$Descriptor.createContribution(ASResourceFactoryContribution.java:36)
at org.eclipse.ocl.pivot.internal.resource.ASResourceFactoryContribution$Descriptor.createContribution(ASResourceFactoryContribution.java:1)
at org.eclipse.ocl.pivot.internal.library.RegisteredContribution$AbstractDescriptor.getContribution(RegisteredContribution.java:61)
at org.eclipse.ocl.pivot.internal.resource.ASResourceFactoryContribution$Descriptor.getASResourceFactory(ASResourceFactoryContribution.java:42)
at org.eclipse.ocl.pivot.internal.resource.ASResourceFactoryRegistry$ContributionFunction.apply(ASResourceFactoryRegistry.java:46)
at org.eclipse.ocl.pivot.internal.resource.ASResourceFactoryRegistry$ContributionFunction.apply(ASResourceFactoryRegistry.java:1)
at com.google.common.collect.Iterators$9.transform(Iterators.java:893)
at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
at org.eclipse.ocl.pivot.internal.resource.ASResourceFactoryRegistry.getTechnology(ASResourceFactoryRegistry.java:204)
at org.eclipse.ocl.pivot.utilities.AbstractEnvironmentFactory.<init>(AbstractEnvironmentFactory.java:125)
at org.eclipse.ocl.pivot.internal.utilities.PivotEnvironmentFactory.<init>(PivotEnvironmentFactory.java:43)
at org.eclipse.ocl.pivot.internal.resource.ASResourceFactoryRegistry.createEnvironmentFactory(ASResourceFactoryRegistry.java:121)
at org.eclipse.ocl.pivot.internal.utilities.OCLInternal.newInstance(OCLInternal.java:68)
at org.eclipse.ocl.pivot.internal.utilities.OCLInternal.newInstance(OCLInternal.java:64)
at org.eclipse.ocl.pivot.internal.utilities.OCLInternal.newInstance(OCLInternal.java:57)
at org.eclipse.ocl.xtext.base.ui.model.BaseDocumentProvider.createOCL(BaseDocumentProvider.java:37)
at org.eclipse.ocl.xtext.base.ui.model.BaseDocumentProvider.getOCL(BaseDocumentProvider.java:57)
at org.eclipse.ocl.xtext.base.ui.model.BaseDocumentProvider.getEnvironmentFactory(BaseDocumentProvider.java:51)
at org.eclipse.ocl.xtext.base.ui.model.BaseDocumentProvider.setDocumentContent(BaseDocumentProvider.java:79)
at org.eclipse.ocl.xtext.base.ui.model.BaseCSorASDocumentProvider.setDocumentContent(BaseCSorASDocumentProvider.java:333)
at org.eclipse.ui.editors.text.StorageDocumentProvider.createDocument(StorageDocumentProvider.java:225)
at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.createDocument(XtextDocumentProvider.java:149)
at org.eclipse.ui.editors.text.FileDocumentProvider.createElementInfo(FileDocumentProvider.java:686)
at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.createElementInfo(XtextDocumentProvider.java:270)
at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvider.java:395)
at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4169)
at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:260)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1477)
at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:153)
at org.eclipse.xtext.ui.editor.XtextEditor.doSetInput(XtextEditor.java:248)
at org.eclipse.ui.texteditor.AbstractTextEditor.lambda$1(AbstractTextEditor.java:3136)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:438)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:354)
at org.eclipse.ui.internal.WorkbenchWindow.lambda$4(WorkbenchWindow.java:2249)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2247)
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3153)
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3178)
at org.eclipse.xtext.ui.editor.XtextEditor.init(XtextEditor.java:294)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:365)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:345)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:1001)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:966)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:139)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:411)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:333)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:1015)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:675)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:781)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:752)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:746)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:730)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:107)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:147)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:5927)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:219)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:233)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:132)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:177)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:652)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:616)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:791)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:404)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1240)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3317)
at org.eclipse.ui.internal.WorkbenchPage.lambda$9(WorkbenchPage.java:3216)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3213)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3177)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:326)
at org.eclipse.ui.actions.OpenWithMenu.lambda$0(OpenWithMenu.java:183)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5783)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1411)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5051)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4579)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:566)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:661)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
at org.eclipse.equinox.launcher.Main.run(Main.java:1476)
at org.eclipse.equinox.launcher.Main.main(Main.java:1449)
Caused by: org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.ocl.pivot.uml was unable to load class org.eclipse.ocl.pivot.uml.internal.resource.UMLASResourceFactory.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:216)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:198)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:934)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
at org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescriptor.createInstance(RegistryReader.java:178)
... 121 more
Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.ocl.pivot.uml (3170).
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:126)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:570)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:331)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:612)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:196)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:934)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
at org.eclipse.ocl.pivot.internal.plugin.LabelGeneratorRegistryReader.readElement(LabelGeneratorRegistryReader.java:78)
at org.eclipse.emf.ecore.plugin.RegistryReader.internalReadElement(RegistryReader.java:129)
at org.eclipse.emf.ecore.plugin.RegistryReader.readRegistry(RegistryReader.java:90)
at org.eclipse.ocl.pivot.labels.LabelGeneratorRegistry$Global.initialize(LabelGeneratorRegistry.java:73)
at org.eclipse.ocl.pivot.labels.LabelGeneratorRegistry$Global.install(LabelGeneratorRegistry.java:99)
at org.eclipse.ocl.pivot.internal.labels.BooleanLabelGenerator.initialize(BooleanLabelGenerator.java:22)
at org.eclipse.ocl.pivot.labels.LabelGeneratorRegistry.initialize(LabelGeneratorRegistry.java:126)
at org.eclipse.ocl.pivot.utilities.PivotStandaloneSetup.init(PivotStandaloneSetup.java:70)
at org.eclipse.ocl.pivot.utilities.PivotStandaloneSetup.createInjectorAndDoEMFRegistration(PivotStandaloneSetup.java:92)
at org.eclipse.ocl.pivot.utilities.PivotStandaloneSetup.doSetup(PivotStandaloneSetup.java:47)
at org.eclipse.ocl.pivot.util.PivotPlugin$Implementation.start(PivotPlugin.java:161)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:815)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:808)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:765)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1005)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:357)
at org.eclipse.osgi.container.Module.doStart(Module.java:589)
at org.eclipse.osgi.container.Module.start(Module.java:457)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:471)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:570)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:331)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.eclipse.ocl.xtext.oclinecore.OCLinEcoreStandaloneSetup.init(OCLinEcoreStandaloneSetup.java:40)
at org.eclipse.ocl.xtext.oclinecore.utilities.OCLinEcorePlugin$Implementation.start(OCLinEcorePlugin.java:99)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:815)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:808)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:765)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1005)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:357)
at org.eclipse.osgi.container.Module.doStart(Module.java:589)
at org.eclipse.osgi.container.Module.start(Module.java:457)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:471)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:570)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:331)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:39)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.eclipse.ocl.xtext.oclinecore.ui.internal.OCLinEcoreActivator.getRuntimeModule(OCLinEcoreActivator.java:84)
at org.eclipse.ocl.xtext.oclinecore.ui.internal.OCLinEcoreActivator.createInjector(OCLinEcoreActivator.java:70)
at org.eclipse.ocl.xtext.oclinecore.ui.internal.OCLinEcoreActivator.getInjector(OCLinEcoreActivator.java:62)
at org.eclipse.ocl.xtext.oclinecore.ui.OCLinEcoreExecutableExtensionFactory.getInjector(OCLinEcoreExecutableExtensionFactory.java:33)
at org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory.create(AbstractGuiceAwareExecutableExtensionFactory.java:53)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:265)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
at org.eclipse.ui.internal.WorkbenchPlugin.lambda$0(WorkbenchPlugin.java:291)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:288)
at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:235)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:332)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPart(CompatibilityPart.java:305)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPart(CompatibilityEditor.java:66)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:343)
... 80 more
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.ocl.pivot.uml.PivotUMLPlugin$Implementation.start() of bundle org.eclipse.ocl.pivot.uml.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:836)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:765)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1005)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:357)
at org.eclipse.osgi.container.Module.doStart(Module.java:589)
at org.eclipse.osgi.container.Module.start(Module.java:457)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:471)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
... 160 more
Caused by: java.lang.ExceptionInInitializerError
at org.eclipse.ocl.pivot.uml.PivotUMLPlugin$Implementation.start(PivotUMLPlugin.java:106)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:815)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:808)
... 167 more
Caused by: java.lang.NullPointerException
at org.eclipse.ocl.pivot.uml.internal.oclforuml.impl.OCLforUMLPackageImpl.initializePackageContents(OCLforUMLPackageImpl.java:675)
at org.eclipse.ocl.pivot.uml.internal.oclforuml.impl.OCLforUMLPackageImpl.init(OCLforUMLPackageImpl.java:175)
at org.eclipse.ocl.pivot.uml.internal.oclforuml.OCLforUMLPackage.<clinit>(OCLforUMLPackage.java:69)


Thank you in advance for help.
Re: OCL editor exception in eclipse [message #1808931 is a reply to message #1808734] Thu, 04 July 2019 16:41 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6440
Registered: July 2009
Senior Member
Hi

Quote:
Caused by: java.lang.NullPointerException
at org.eclipse.ocl.pivot.uml.internal.oclforuml.impl.OCLforUMLPackageImpl.initializePackageContents(OCLforUMLPackageImpl.java:675)
at org.eclipse.ocl.pivot.uml.internal.oclforuml.impl.OCLforUMLPackageImpl.init(OCLforUMLPackageImpl.java:175)


Looks like you neglected to call UMLResourceUtil.init() or equivalent. Although perhaps OCLforUMLPackageImpl could have done it for you.

If you provide a repro, I can see whether you have found a legitimate new way to bypass the automatic helpful initialization.

Regards

Ed Willink
Previous Topic:NPE while loading OCL file
Next Topic:OCL Classic vs OCL Pivot: IllegalArgumentException:
Goto Forum:
  


Current Time: Fri Aug 23 22:33:51 GMT 2019

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

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

Back to the top