Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » .genmodel that opened in 3.3M4 fails to open in 3.3M5
.genmodel that opened in 3.3M4 fails to open in 3.3M5 [message #408369] Mon, 09 April 2007 22:05 Go to next message
John Yotka is currently offline John YotkaFriend
Messages: 144
Registered: July 2009
Senior Member
I'm working in GMF and upgraded from GMF M4 to GMF M5. A model
..genmodel file that opened ok under eclipse 3.3M4 (EMF
2.3.0.vv200612211251) now fails to open (EMF 2.3.0.v200703291501), with
the following error:

Unable to create editor ID
org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel EditorID:
Invalid boolean value: ''

org.eclipse.emf.ecore.xml.type.InvalidDatatypeValueException : Invalid
boolean value: ''
at
org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.boole anValueOf(XMLTypeFactoryImpl.java:2886)
at
org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eBooleanObject(XMLTypeFactoryImpl.java:169)
at
org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eBooleanFromString(XMLTypeFactoryImpl.java:1958)
at
org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eFromString(XMLTypeFactoryImpl.java:1602)
at
org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getDefault Value(EStructuralFeatureImpl.java:134)
at org.eclipse.emf.ecore.impl.EAttributeImpl.eIsSet(EAttributeI mpl.java:434)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:1225)
at
org.eclipse.emf.ecore.util.EObjectValidator.validate_DataVal ueConforms(EObjectValidator.java:432)
at
org.eclipse.emf.ecore.util.EObjectValidator.validate_EveryDa taValueConforms(EObjectValidator.java:420)
at
org.eclipse.emf.ecore.util.EcoreValidator.validateEAttribute (EcoreValidator.java:481)
at
org.eclipse.emf.ecore.util.EcoreValidator.validate(EcoreVali dator.java:365)
at
org.eclipse.emf.ecore.util.EObjectValidator.validate(EObject Validator.java:170)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:127)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
at
org.eclipse.emf.ecore.util.Diagnostician.doValidateContents( Diagnostician.java:146)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
at
org.eclipse.emf.ecore.util.Diagnostician.doValidateContents( Diagnostician.java:146)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:87)
at
org.eclipse.emf.codegen.ecore.genmodel.impl.GenModelImpl.dia gnose(GenModelImpl.java:2514)
at
org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.validate(GenModelEditor.java:1838)
at
org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.initialize(GenModelEditor.java:636)
at
org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.createPages(GenModelEditor.java:1147)
at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:278)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:662)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:421)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:586)
at
org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:257)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2598)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2524)
at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPag e.java:2516)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2501)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2496)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2480)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2471)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:638)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:597)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:285)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:138)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:19 5)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:17 6)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:268)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:244)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:318)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:584)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:819)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:850)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:52)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:15 3)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:817)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1078)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1177)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3490)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3104)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2264)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2228)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 03)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:457)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:452)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:101)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:146)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:354)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
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: 476)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
at org.eclipse.equinox.launcher.Main.run(Main.java:1124)
at org.eclipse.equinox.launcher.Main.main(Main.java:1099)
Re: .genmodel that opened in 3.3M4 fails to open in 3.3M5 [message #408370 is a reply to message #408369] Mon, 09 April 2007 22:48 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
John,

Try opening the .ecore file directly and invoking "Validate" from the
popup menu on the package. It sounds like there's an attribute of type
"boolean" that has an empty string as its default value. I'll try to
reproduce this problem tomorrow since such an program should just result
in a validation diagnostic, not a failure to load the .genmodel...


John Yotka wrote:
> I'm working in GMF and upgraded from GMF M4 to GMF M5. A model
> ..genmodel file that opened ok under eclipse 3.3M4 (EMF
> 2.3.0.vv200612211251) now fails to open (EMF 2.3.0.v200703291501),
> with the following error:
>
> Unable to create editor ID
> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel EditorID:
> Invalid boolean value: ''
>
> org.eclipse.emf.ecore.xml.type.InvalidDatatypeValueException : Invalid
> boolean value: ''
> at
> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.boole anValueOf(XMLTypeFactoryImpl.java:2886)
>
> at
> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eBooleanObject(XMLTypeFactoryImpl.java:169)
>
> at
> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eBooleanFromString(XMLTypeFactoryImpl.java:1958)
>
> at
> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eFromString(XMLTypeFactoryImpl.java:1602)
>
> at
> org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getDefault Value(EStructuralFeatureImpl.java:134)
>
> at
> org.eclipse.emf.ecore.impl.EAttributeImpl.eIsSet(EAttributeI mpl.java:434)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:1225)
>
> at
> org.eclipse.emf.ecore.util.EObjectValidator.validate_DataVal ueConforms(EObjectValidator.java:432)
>
> at
> org.eclipse.emf.ecore.util.EObjectValidator.validate_EveryDa taValueConforms(EObjectValidator.java:420)
>
> at
> org.eclipse.emf.ecore.util.EcoreValidator.validateEAttribute (EcoreValidator.java:481)
>
> at
> org.eclipse.emf.ecore.util.EcoreValidator.validate(EcoreVali dator.java:365)
>
> at
> org.eclipse.emf.ecore.util.EObjectValidator.validate(EObject Validator.java:170)
>
> at
> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:127)
> at
> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
> at
> org.eclipse.emf.ecore.util.Diagnostician.doValidateContents( Diagnostician.java:146)
>
> at
> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
> at
> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
> at
> org.eclipse.emf.ecore.util.Diagnostician.doValidateContents( Diagnostician.java:146)
>
> at
> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
> at
> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
> at
> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:87)
> at
> org.eclipse.emf.codegen.ecore.genmodel.impl.GenModelImpl.dia gnose(GenModelImpl.java:2514)
>
> at
> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.validate(GenModelEditor.java:1838)
>
> at
> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.initialize(GenModelEditor.java:636)
>
> at
> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.createPages(GenModelEditor.java:1147)
>
> at
> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:278)
>
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:662)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:421)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:586)
>
> at
> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:257)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2598)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2524)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPag e.java:2516)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2501)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2496)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2480)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2471)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:638)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:597)
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:285)
>
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:138)
>
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:19 5)
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:17 6)
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:268)
>
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:244)
>
> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:318)
>
> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:584)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:819)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:850)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:52)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:15 3)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:817)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1078)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1177)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3490)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3104)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2264)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2228)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 03)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:457)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:452)
>
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:101)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:146)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:354)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
>
> 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: 476)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1124)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1099)


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: .genmodel that opened in 3.3M4 fails to open in 3.3M5 [message #408371 is a reply to message #408370] Mon, 09 April 2007 23:23 Go to previous messageGo to next message
John Yotka is currently offline John YotkaFriend
Messages: 144
Registered: July 2009
Senior Member
Ed Merks wrote:
> John,
>
> Try opening the .ecore file directly and invoking "Validate" from the
> popup menu on the package. It sounds like there's an attribute of type
> "boolean" that has an empty string as its default value. I'll try to
> reproduce this problem tomorrow since such an program should just result
> in a validation diagnostic, not a failure to load the .genmodel...
>
>
> John Yotka wrote:
>> I'm working in GMF and upgraded from GMF M4 to GMF M5. A model
>> ..genmodel file that opened ok under eclipse 3.3M4 (EMF
>> 2.3.0.vv200612211251) now fails to open (EMF 2.3.0.v200703291501),
>> with the following error:
>>
>> Unable to create editor ID
>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel EditorID:
>> Invalid boolean value: ''
>>
>> org.eclipse.emf.ecore.xml.type.InvalidDatatypeValueException : Invalid
>> boolean value: ''
>> at
>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.boole anValueOf(XMLTypeFactoryImpl.java:2886)
>>
>> at
>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eBooleanObject(XMLTypeFactoryImpl.java:169)
>>
>> at
>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eBooleanFromString(XMLTypeFactoryImpl.java:1958)
>>
>> at
>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eFromString(XMLTypeFactoryImpl.java:1602)
>>
>> at
>> org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getDefault Value(EStructuralFeatureImpl.java:134)
>>
>> at
>> org.eclipse.emf.ecore.impl.EAttributeImpl.eIsSet(EAttributeI mpl.java:434)
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:1225)
>>
>> at
>> org.eclipse.emf.ecore.util.EObjectValidator.validate_DataVal ueConforms(EObjectValidator.java:432)
>>
>> at
>> org.eclipse.emf.ecore.util.EObjectValidator.validate_EveryDa taValueConforms(EObjectValidator.java:420)
>>
>> at
>> org.eclipse.emf.ecore.util.EcoreValidator.validateEAttribute (EcoreValidator.java:481)
>>
>> at
>> org.eclipse.emf.ecore.util.EcoreValidator.validate(EcoreVali dator.java:365)
>>
>> at
>> org.eclipse.emf.ecore.util.EObjectValidator.validate(EObject Validator.java:170)
>>
>> at
>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:127)
>> at
>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
>> at
>> org.eclipse.emf.ecore.util.Diagnostician.doValidateContents( Diagnostician.java:146)
>>
>> at
>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
>> at
>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
>> at
>> org.eclipse.emf.ecore.util.Diagnostician.doValidateContents( Diagnostician.java:146)
>>
>> at
>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
>> at
>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
>> at
>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:87)
>> at
>> org.eclipse.emf.codegen.ecore.genmodel.impl.GenModelImpl.dia gnose(GenModelImpl.java:2514)
>>
>> at
>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.validate(GenModelEditor.java:1838)
>>
>> at
>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.initialize(GenModelEditor.java:636)
>>
>> at
>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.createPages(GenModelEditor.java:1147)
>>
>> at
>> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:278)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:662)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:421)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:586)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:257)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2598)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2524)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPag e.java:2516)
>> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2501)
>> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2496)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2480)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2471)
>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:638)
>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:597)
>> at
>> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:285)
>>
>> at
>> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:138)
>>
>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:19 5)
>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:17 6)
>> at
>> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:268)
>>
>> at
>> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:244)
>>
>> at
>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:318)
>>
>> at
>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:584)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:819)
>>
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:850)
>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:52)
>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:15 3)
>> at
>> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:817)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1078)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1177)
>>
>> at
>> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
>> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
>> at
>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3490)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3104)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2264)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2228)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 03)
>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:457)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:452)
>>
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:101)
>>
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:146)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:354)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
>>
>> 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: 476)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1124)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1099)
Ed,

When I run the validation I get several errors.

1) "The instance type name '' is not well formed"
I get this for 3 enumerated types - this seems strange in that I don't
see why I should have to set the Instance Name Type for an enumerated
type and when I do a restore to default value it has no effect.

2) There may not two operations 'added(Container) and 'Added(Schematic)'
with the same signature.
I don't understand this one in that Container and Schematic are clearly
different types, so the signature is different!

let me know if you want a copy of my .ecore and .genmodel
Re: .genmodel that opened in 3.3M4 fails to open in 3.3M5 [message #408377 is a reply to message #408371] Tue, 10 April 2007 12:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
John,

For the enum problem, you must have an empty string as the instance type
name. Please open a bugzilla and I'll change the code so that it's not
possible via the GUI to set the instance type name to the empty string
(which happens accidentally just from activating the cell editor). Use
the property view's toolbar's "Restore Default Value" button to set it
back to null.

I could reproduce the bogus operation complaint as well, so please open
a bugzilla for that too and well have a fix for it by Thursday's build.
I'm looking into the cause now...


John Yotka wrote:
> Ed Merks wrote:
>> John,
>>
>> Try opening the .ecore file directly and invoking "Validate" from the
>> popup menu on the package. It sounds like there's an attribute of
>> type "boolean" that has an empty string as its default value. I'll
>> try to reproduce this problem tomorrow since such an program should
>> just result in a validation diagnostic, not a failure to load the
>> .genmodel...
>>
>>
>> John Yotka wrote:
>>> I'm working in GMF and upgraded from GMF M4 to GMF M5. A model
>>> ..genmodel file that opened ok under eclipse 3.3M4 (EMF
>>> 2.3.0.vv200612211251) now fails to open (EMF 2.3.0.v200703291501),
>>> with the following error:
>>>
>>> Unable to create editor ID
>>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel EditorID:
>>> Invalid boolean value: ''
>>>
>>> org.eclipse.emf.ecore.xml.type.InvalidDatatypeValueException :
>>> Invalid boolean value: ''
>>> at
>>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.boole anValueOf(XMLTypeFactoryImpl.java:2886)
>>>
>>> at
>>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eBooleanObject(XMLTypeFactoryImpl.java:169)
>>>
>>> at
>>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eBooleanFromString(XMLTypeFactoryImpl.java:1958)
>>>
>>> at
>>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eFromString(XMLTypeFactoryImpl.java:1602)
>>>
>>> at
>>> org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getDefault Value(EStructuralFeatureImpl.java:134)
>>>
>>> at
>>> org.eclipse.emf.ecore.impl.EAttributeImpl.eIsSet(EAttributeI mpl.java:434)
>>>
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:1225)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.EObjectValidator.validate_DataVal ueConforms(EObjectValidator.java:432)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.EObjectValidator.validate_EveryDa taValueConforms(EObjectValidator.java:420)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.EcoreValidator.validateEAttribute (EcoreValidator.java:481)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.EcoreValidator.validate(EcoreVali dator.java:365)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.EObjectValidator.validate(EObject Validator.java:170)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:127)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.Diagnostician.doValidateContents( Diagnostician.java:146)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.Diagnostician.doValidateContents( Diagnostician.java:146)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
>>>
>>> at
>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:87)
>>>
>>> at
>>> org.eclipse.emf.codegen.ecore.genmodel.impl.GenModelImpl.dia gnose(GenModelImpl.java:2514)
>>>
>>> at
>>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.validate(GenModelEditor.java:1838)
>>>
>>> at
>>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.initialize(GenModelEditor.java:636)
>>>
>>> at
>>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.createPages(GenModelEditor.java:1147)
>>>
>>> at
>>> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:278)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:662)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:421)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:586)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:257)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2598)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2524)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPag e.java:2516)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2501)
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2496)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2480)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2471)
>>>
>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:638)
>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:597)
>>> at
>>> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:285)
>>>
>>> at
>>> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:138)
>>>
>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:19 5)
>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:17 6)
>>> at
>>> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:268)
>>>
>>> at
>>> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:244)
>>>
>>> at
>>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:318)
>>>
>>> at
>>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:584)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:819)
>>>
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:850)
>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:52)
>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:15 3)
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:817)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1078)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1177)
>>>
>>> at
>>> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
>>>
>>> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
>>> at
>>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
>>>
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
>>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3490)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3104)
>>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2264)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2228)
>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 03)
>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:457)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>>
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:452)
>>>
>>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
>>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:101)
>>>
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:146)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:354)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
>>>
>>> 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: 476)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1124)
>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1099)
> Ed,
>
> When I run the validation I get several errors.
>
> 1) "The instance type name '' is not well formed"
> I get this for 3 enumerated types - this seems strange in that I
> don't see why I should have to set the Instance Name Type for an
> enumerated type and when I do a restore to default value it has no
> effect.
>
> 2) There may not two operations 'added(Container) and
> 'Added(Schematic)' with the same signature.
> I don't understand this one in that Container and Schematic are
> clearly different types, so the signature is different!
>
> let me know if you want a copy of my .ecore and .genmodel


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: .genmodel that opened in 3.3M4 fails to open in 3.3M5 [message #408389 is a reply to message #408377] Tue, 10 April 2007 15:06 Go to previous messageGo to next message
John Yotka is currently offline John YotkaFriend
Messages: 144
Registered: July 2009
Senior Member
Ed Merks wrote:
> John,
>
> For the enum problem, you must have an empty string as the instance type
> name. Please open a bugzilla and I'll change the code so that it's not
> possible via the GUI to set the instance type name to the empty string
> (which happens accidentally just from activating the cell editor). Use
> the property view's toolbar's "Restore Default Value" button to set it
> back to null.
>
> I could reproduce the bogus operation complaint as well, so please open
> a bugzilla for that too and well have a fix for it by Thursday's build.
> I'm looking into the cause now...
>
>
> John Yotka wrote:
>> Ed Merks wrote:
>>> John,
>>>
>>> Try opening the .ecore file directly and invoking "Validate" from the
>>> popup menu on the package. It sounds like there's an attribute of
>>> type "boolean" that has an empty string as its default value. I'll
>>> try to reproduce this problem tomorrow since such an program should
>>> just result in a validation diagnostic, not a failure to load the
>>> .genmodel...
>>>
>>>
>>> John Yotka wrote:
>>>> I'm working in GMF and upgraded from GMF M4 to GMF M5. A model
>>>> ..genmodel file that opened ok under eclipse 3.3M4 (EMF
>>>> 2.3.0.vv200612211251) now fails to open (EMF 2.3.0.v200703291501),
>>>> with the following error:
>>>>
>>>> Unable to create editor ID
>>>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel EditorID:
>>>> Invalid boolean value: ''
>>>>
>>>> org.eclipse.emf.ecore.xml.type.InvalidDatatypeValueException :
>>>> Invalid boolean value: ''
>>>> at
>>>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.boole anValueOf(XMLTypeFactoryImpl.java:2886)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eBooleanObject(XMLTypeFactoryImpl.java:169)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eBooleanFromString(XMLTypeFactoryImpl.java:1958)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eFromString(XMLTypeFactoryImpl.java:1602)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getDefault Value(EStructuralFeatureImpl.java:134)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.EAttributeImpl.eIsSet(EAttributeI mpl.java:434)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:1225)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.EObjectValidator.validate_DataVal ueConforms(EObjectValidator.java:432)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.EObjectValidator.validate_EveryDa taValueConforms(EObjectValidator.java:420)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.EcoreValidator.validateEAttribute (EcoreValidator.java:481)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.EcoreValidator.validate(EcoreVali dator.java:365)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.EObjectValidator.validate(EObject Validator.java:170)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:127)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.Diagnostician.doValidateContents( Diagnostician.java:146)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.Diagnostician.doValidateContents( Diagnostician.java:146)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:87)
>>>>
>>>> at
>>>> org.eclipse.emf.codegen.ecore.genmodel.impl.GenModelImpl.dia gnose(GenModelImpl.java:2514)
>>>>
>>>> at
>>>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.validate(GenModelEditor.java:1838)
>>>>
>>>> at
>>>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.initialize(GenModelEditor.java:636)
>>>>
>>>> at
>>>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.createPages(GenModelEditor.java:1147)
>>>>
>>>> at
>>>> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:278)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:662)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:421)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:586)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:257)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2598)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2524)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPag e.java:2516)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2501)
>>>> at
>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2496)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2480)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2471)
>>>>
>>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:638)
>>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:597)
>>>> at
>>>> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:285)
>>>>
>>>> at
>>>> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:138)
>>>>
>>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:19 5)
>>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:17 6)
>>>> at
>>>> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:268)
>>>>
>>>> at
>>>> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:244)
>>>>
>>>> at
>>>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:318)
>>>>
>>>> at
>>>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:584)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:819)
>>>>
>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:850)
>>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:52)
>>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:15 3)
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:817)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1078)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1177)
>>>>
>>>> at
>>>> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
>>>>
>>>> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
>>>> at
>>>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
>>>>
>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
>>>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3490)
>>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3104)
>>>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2264)
>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2228)
>>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 03)
>>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:457)
>>>> at
>>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:452)
>>>>
>>>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>> at
>>>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:101)
>>>>
>>>> at
>>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:146)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:354)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
>>>>
>>>> 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: 476)
>>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
>>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1124)
>>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1099)
>> Ed,
>>
>> When I run the validation I get several errors.
>>
>> 1) "The instance type name '' is not well formed"
>> I get this for 3 enumerated types - this seems strange in that I
>> don't see why I should have to set the Instance Name Type for an
>> enumerated type and when I do a restore to default value it has no
>> effect.
>>
>> 2) There may not two operations 'added(Container) and
>> 'Added(Schematic)' with the same signature.
>> I don't understand this one in that Container and Schematic are
>> clearly different types, so the signature is different!
>>
>> let me know if you want a copy of my .ecore and .genmodel
Ed,

I submitted the 2 bugs. Did you make any progress on the original
problem with the .genmodel? Is it related to the instance type name
problem?
Re: .genmodel that opened in 3.3M4 fails to open in 3.3M5 [message #408396 is a reply to message #408389] Tue, 10 April 2007 16:47 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
John,

I've committed fixes for the two bugs you've opened and I've finally
been able to reproduce the other problem finally! Please open a
bugzilla for that problem as well. I already have a fix to avoid the
problem, but I need to think about adding a better constraint for the
default value literal conforming to the type of the feature (which is
tricky in general at development time since the specialized code for the
data type's createFromString/convertToString won't exist at development
time, so maybe it's not possible since a failure to convert to a value
might just reflect an inability to do that at development time rather
than a wrong value).


John Yotka wrote:
> Ed Merks wrote:
>> John,
>>
>> For the enum problem, you must have an empty string as the instance
>> type name. Please open a bugzilla and I'll change the code so that
>> it's not possible via the GUI to set the instance type name to the
>> empty string (which happens accidentally just from activating the
>> cell editor). Use the property view's toolbar's "Restore Default
>> Value" button to set it back to null.
>>
>> I could reproduce the bogus operation complaint as well, so please
>> open a bugzilla for that too and well have a fix for it by Thursday's
>> build. I'm looking into the cause now...
>>
>>
>> John Yotka wrote:
>>> Ed Merks wrote:
>>>> John,
>>>>
>>>> Try opening the .ecore file directly and invoking "Validate" from
>>>> the popup menu on the package. It sounds like there's an attribute
>>>> of type "boolean" that has an empty string as its default value.
>>>> I'll try to reproduce this problem tomorrow since such an program
>>>> should just result in a validation diagnostic, not a failure to
>>>> load the .genmodel...
>>>>
>>>>
>>>> John Yotka wrote:
>>>>> I'm working in GMF and upgraded from GMF M4 to GMF M5. A model
>>>>> ..genmodel file that opened ok under eclipse 3.3M4 (EMF
>>>>> 2.3.0.vv200612211251) now fails to open (EMF 2.3.0.v200703291501),
>>>>> with the following error:
>>>>>
>>>>> Unable to create editor ID
>>>>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel EditorID:
>>>>> Invalid boolean value: ''
>>>>>
>>>>> org.eclipse.emf.ecore.xml.type.InvalidDatatypeValueException :
>>>>> Invalid boolean value: ''
>>>>> at
>>>>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.boole anValueOf(XMLTypeFactoryImpl.java:2886)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eBooleanObject(XMLTypeFactoryImpl.java:169)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eBooleanFromString(XMLTypeFactoryImpl.java:1958)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.xml.type.impl.XMLTypeFactoryImpl.creat eFromString(XMLTypeFactoryImpl.java:1602)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getDefault Value(EStructuralFeatureImpl.java:134)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.EAttributeImpl.eIsSet(EAttributeI mpl.java:434)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:1225)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.EObjectValidator.validate_DataVal ueConforms(EObjectValidator.java:432)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.EObjectValidator.validate_EveryDa taValueConforms(EObjectValidator.java:420)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.EcoreValidator.validateEAttribute (EcoreValidator.java:481)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.EcoreValidator.validate(EcoreVali dator.java:365)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.EObjectValidator.validate(EObject Validator.java:170)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:127)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.Diagnostician.doValidateContents( Diagnostician.java:146)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.Diagnostician.doValidateContents( Diagnostician.java:146)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:130)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:107)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:87)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.codegen.ecore.genmodel.impl.GenModelImpl.dia gnose(GenModelImpl.java:2514)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.validate(GenModelEditor.java:1838)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.initialize(GenModelEditor.java:636)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel Editor.createPages(GenModelEditor.java:1147)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:278)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:662)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:421)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:586)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:257)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2598)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2524)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPag e.java:2516)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2501)
>>>>> at
>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2496)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2480)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2471)
>>>>>
>>>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:638)
>>>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:597)
>>>>> at
>>>>> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:285)
>>>>>
>>>>> at
>>>>> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:138)
>>>>>
>>>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:19 5)
>>>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:17 6)
>>>>> at
>>>>> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:268)
>>>>>
>>>>> at
>>>>> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:244)
>>>>>
>>>>> at
>>>>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:318)
>>>>>
>>>>> at
>>>>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:584)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:819)
>>>>>
>>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:850)
>>>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:52)
>>>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:15 3)
>>>>> at
>>>>> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:817)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1078)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1177)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
>>>>> at
>>>>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
>>>>>
>>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3490)
>>>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3104)
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2264)
>>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2228)
>>>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 03)
>>>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:457)
>>>>> at
>>>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:452)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>>> at
>>>>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:101)
>>>>>
>>>>> at
>>>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:146)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:354)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
>>>>>
>>>>> 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: 476)
>>>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
>>>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1124)
>>>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1099)
>>> Ed,
>>>
>>> When I run the validation I get several errors.
>>>
>>> 1) "The instance type name '' is not well formed"
>>> I get this for 3 enumerated types - this seems strange in that I
>>> don't see why I should have to set the Instance Name Type for an
>>> enumerated type and when I do a restore to default value it has no
>>> effect.
>>>
>>> 2) There may not two operations 'added(Container) and
>>> 'Added(Schematic)' with the same signature.
>>> I don't understand this one in that Container and Schematic are
>>> clearly different types, so the signature is different!
>>>
>>> let me know if you want a copy of my .ecore and .genmodel
> Ed,
>
> I submitted the 2 bugs. Did you make any progress on the original
> problem with the .genmodel? Is it related to the instance type name
> problem?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Accessing comments of the schema
Next Topic:JET settings bug ?
Goto Forum:
  


Current Time: Fri Apr 26 08:40:35 GMT 2024

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

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

Back to the top