Aurelien,
Please ask EMF questions on the EMF newsgroup, which I've added to the
"to" list of the reply. Mind you, I don't know where a "Migrate to EMF
2.5" pop-up menu item comes from...
My guess would be that you overwrote specialized code in when you
regenerated because you didn't change it to @generated not
org.ow2.jasmine.design.model.jasmine.impl.JasmineFactoryImpl.createPortFromString(JasmineFactoryImpl.java:236)
So now it calls
org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFactoryImpl.java:439)
which is not able reflectively to produce a value of the data type.
What is the Java wrapped by your Port EDataType, by the way?
Aurelien Pupier wrote:
Hi,
I want to migrate to the latest EMF version.
I used the Migrate to EMF 2.5 pop-up menu and regenerate code.
All works fine except that at the runtime, this exeception is thrown
when one of my element is initialized with an EDataType :
!ENTRY org.eclipse.jface 4 2 2009-07-10 09:37:47.785
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.ExceptionInInitializerError
at
org.ow2.jasmine.design.model.apache_http_server.impl.Apache_http_serverFactoryImpl.createApache_HTTPd(Apache_http_serverFactoryImpl.java:132)
at
org.ow2.jasmine.design.model.middleware.provider.DomainItemProvider.collectNewChildDescriptors(DomainItemProvider.java:182)
at
org.ow2.jasmine.design.model.jonas.provider.JOnASDomainItemProvider.collectNewChildDescriptors(JOnASDomainItemProvider.java:173)
at
org.eclipse.emf.edit.provider.ItemProviderAdapter.getNewChildDescriptors(ItemProviderAdapter.java:765)
at
org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain.getNewChildDescriptors(AdapterFactoryEditingDomain.java:746)
at
org.ow2.jasmine.design.model.jasmine.presentation.JasmineActionBarContributor.selectionChanged(JasmineActionBarContributor.java:299)
at
org.ow2.jasmine.design.model.jasmine.presentation.JasmineEditor.setSelection(JasmineEditor.java:1745)
at
org.ow2.jasmine.design.model.jasmine.presentation.JasmineEditor$6.selectionChanged(JasmineEditor.java:938)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at
org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2132)
at
org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1160)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1190)
at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:228)
at
org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:222)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:389)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: java.lang.IllegalArgumentException: The value '80' is
invalid.
at
org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFactoryImpl.java:439)
at
org.ow2.jasmine.design.model.jasmine.impl.JasmineFactoryImpl.createPortFromString(JasmineFactoryImpl.java:236)
at
org.ow2.jasmine.design.model.jasmine.impl.JasmineFactoryImpl.createFromString(JasmineFactoryImpl.java:117)
at
org.ow2.jasmine.design.model.apache_http_server.impl.Apache_HTTPdImpl.<clinit>(Apache_HTTPdImpl.java:139)
... 45 more
thanks by advance for any help
Aurelien Pupier
|