eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

IllegalArgumentException in ValuesFactoryImpl.create #1897

Open eclipse-ocl-bot opened 1 month ago

eclipse-ocl-bot commented 1 month ago

| --- | --- | | Bugzilla Link | 522708 | | Status | UNCONFIRMED | | Importance | P3 normal | | Reported | Sep 25, 2017 05:11 EDT | | Modified | Sep 25, 2017 05:30 EDT | | Reporter | EPP Error Reports |

Description

The following problem was reported via the automated error reporting:

Message: Problems occurred when invoking code from plug-in: "org.eclipse.jface".\ java.lang.IllegalArgumentException: The class 'IntegerValue' is not a valid classifier\ at org.eclipse.ocl.pivot.internal.values.ValuesFactoryImpl.create(ValuesFactoryImpl.java:68)\ at org.eclipse.emf.ecp.spi.common.ui.MEClassLabelProvider.getImage(MEClassLabelProvider.java:61)\ at org.eclipse.jface.viewers.WrappedViewerLabelProvider.getImage(WrappedViewerLabelProvider.java:101)\ at org.eclipse.jface.viewers.WrappedViewerLabelProvider.update(WrappedViewerLabelProvider.java:146)\ at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:141)\ at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:946)\ at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:117)\ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\ at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44)\ at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)\ at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:1025)\ at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:475)\ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\ at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44)\ at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)\ at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2159)\ at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:840)\ at org.eclipse.jface.viewers.AbstractTreeViewer.lambda$0(AbstractTreeViewer.java:817)\ at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)\ at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:792)\ at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:595)\ at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandToLevel(AbstractTreeViewer.java:1744)\ at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandToLevel(AbstractTreeViewer.java:1754)\ at org.eclipse.jface.viewers.AbstractTreeViewer.expandToLevel(AbstractTreeViewer.java:1067)\ at org.eclipse.jface.viewers.AbstractTreeViewer.expandToLevel(AbstractTreeViewer.java:1048)\ at org.eclipse.emf.ecp.spi.common.ui.SelectModelElementWizard$WizardPageExtension.createControl(SelectModelElementWizard.java:56)\ at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:176)\ at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:688)\ at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:580)\ at org.eclipse.jface.window.Window.create(Window.java:426)\ at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1096)\ at org.eclipse.jface.window.Window.open(Window.java:783)\ at org.eclipse.emf.ecp.spi.ui.util.ECPHandlerHelper.openSelectModelElementWizard(ECPHandlerHelper.java:272)\ at org.eclipse.emf.ecp.spi.ui.util.ECPHandlerHelper.addModelElement(ECPHandlerHelper.java:195)\ at org.eclipse.emf.ecp.ui.commands.NewModelElementWizardHandler.execute(NewModelElementWizardHandler.java:42)\ at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291)\ at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:92)\ at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)\ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\ at java.lang.reflect.Method.invoke(Method.java:498)\ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)

Bundles:\ | org.eclipse.core.runtime | 3.13.0.v20170207-1030 | 3.13.0.v20170207-1030 |\ | org.eclipse.e4.core.di | 1.6.100.v20170421-1418 | 1.6.100.v20170421-1418 |\ | org.eclipse.emf | 2.6.0.v20170609-0928 | 2.6.0.v20170609-0928 |\ | org.eclipse.emf.ecp.ui | 1.13.0.20170606-0951 | 1.13.0.20170606-0951 |\ | org.eclipse.jface | 3.13.0.v20170503-1507 | 3.13.0.v20170503-1507 |\ | org.eclipse.ocl.pivot | 1.3.0.v20170522-1753 | 1.3.0.v20170522-1753 |\ | org.eclipse.swt | 3.106.0.v20170608-0516 | 3.106.0.v20170608-0516 |\ | org.eclipse.ui | 3.109.0.v20170411-1742 | 3.109.0.v20170411-1742 |

Operating Systems:\ | Linux | 4.12.12 | 4.12.12 |

The above information is a snapshot of the collected data. Visit https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/59c870fce4b02aaf8b19a2ca for the latest data.

Thank you for your assistance.\ Your friendly error-reports-inbox.

eclipse-ocl-bot commented 1 month ago

By Ed Willink on Sep 25, 2017 05:30

Probably ECP should not be allowing this error through to AERI, but...

It looks as if some model with a Pivot IntegerValue element has been displayed by an EMF tool that expects more EMF compliance for Values than is currently provided. ValuesFactoryImpl.create has no support.

Currently primitive Value instances are immutable singletons making argument-less construction pointless. Should dummy value-less instances be created for the benefit of the EMF createChildren API? Should IntegerValue have revealed that it had no children and so avoided the problem?