Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » EMF Migration - EDataType error
EMF Migration - EDataType error [message #385159] Fri, 10 July 2009 07:59 Go to next message
Eclipse UserFriend
Originally posted by: aurelien.pupier.esial.net

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_server FactoryImpl.java:132)
at org.ow2.jasmine.design.model.middleware.provider.DomainItemP rovider.collectNewChildDescriptors(DomainItemProvider.java:1 82)
at org.ow2.jasmine.design.model.jonas.provider.JOnASDomainItemP rovider.collectNewChildDescriptors(JOnASDomainItemProvider.j ava:173)
at org.eclipse.emf.edit.provider.ItemProviderAdapter.getNewChil dDescriptors(ItemProviderAdapter.java:765)
at org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain.getN ewChildDescriptors(AdapterFactoryEditingDomain.java:746)
at org.ow2.jasmine.design.model.jasmine.presentation.JasmineAct ionBarContributor.selectionChanged(JasmineActionBarContribut or.java:299)
at org.ow2.jasmine.design.model.jasmine.presentation.JasmineEdi tor.setSelection(JasmineEditor.java:1745)
at org.ow2.jasmine.design.model.jasmine.presentation.JasmineEdi tor$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:17 5)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:160)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(S tructuredViewer.java:2132)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(Stru cturedViewer.java:1160)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer.java:1190)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:228)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:222)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.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.ja va:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
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(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.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(EFa ctoryImpl.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
Re: EMF Migration - EDataType error [message #385160 is a reply to message #385159] Fri, 10 July 2009 08:25 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26283
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090104030502040906050206
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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(EFa ctoryImpl.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_server FactoryImpl.java:132)
>
> at
> org.ow2.jasmine.design.model.middleware.provider.DomainItemP rovider.collectNewChildDescriptors(DomainItemProvider.java:1 82)
>
> at
> org.ow2.jasmine.design.model.jonas.provider.JOnASDomainItemP rovider.collectNewChildDescriptors(JOnASDomainItemProvider.j ava:173)
>
> at
> org.eclipse.emf.edit.provider.ItemProviderAdapter.getNewChil dDescriptors(ItemProviderAdapter.java:765)
>
> at
> org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain.getN ewChildDescriptors(AdapterFactoryEditingDomain.java:746)
>
> at
> org.ow2.jasmine.design.model.jasmine.presentation.JasmineAct ionBarContributor.selectionChanged(JasmineActionBarContribut or.java:299)
>
> at
> org.ow2.jasmine.design.model.jasmine.presentation.JasmineEdi tor.setSelection(JasmineEditor.java:1745)
>
> at
> org.ow2.jasmine.design.model.jasmine.presentation.JasmineEdi tor$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:17 5)
> at
> org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:160)
> at
> org.eclipse.jface.viewers.StructuredViewer.updateSelection(S tructuredViewer.java:2132)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handleSelect(Stru cturedViewer.java:1160)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer.java:1190)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:228)
>
> at
> org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:222)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.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.ja va:3880)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> 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(Work bench.java:493)
>
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:368)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.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(EFa ctoryImpl.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

--------------090104030502040906050206
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Aurelien,<br>
<br>
Please ask EMF questions on the EMF newsgroup, which I've added to the
"to" list of the reply.&nbsp; Mind you, I don't know where a "Migrate to EMF
2.5" pop-up menu item comes from...<br>
<br>
My guess would be that you overwrote specialized code in when you
regenerated because you didn't change it to @generated not<br>
<blockquote> org.ow2.jasmine.design.model.jasmine.impl.JasmineFactoryImpl .createPortFromString(JasmineFactoryImpl.java:236)
<br>
</blockquote>
So now it calls<br>
<blockquote> org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFa ctoryImpl.java:439)
<br>
</blockquote>
which is not able reflectively to produce a value of the data type.&nbsp;
What is the Java wrapped by your Port EDataType, by the way?<br>
<br>
<br>
Aurelien Pupier wrote:
<blockquote cite="mid:h36scl$clr$1@build.eclipse.org" type="cite">Hi,
<br>
<br>
I want to migrate to the latest EMF version.
<br>
<br>
I used the Migrate to EMF 2.5 pop-up menu and regenerate code.
<br>
<br>
All works fine except that at the runtime, this exeception is thrown
when one of my element is initialized with an EDataType :
<br>
<br>
!ENTRY org.eclipse.jface 4 2 2009-07-10 09:37:47.785
<br>
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
<br>
!STACK 0
<br>
java.lang.ExceptionInInitializerError
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.apache_http_server.impl.Apache_ http_serverFactoryImpl.createApache_HTTPd(Apache_http_server FactoryImpl.java:132)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.middleware.provider.DomainItemP rovider.collectNewChildDescriptors(DomainItemProvider.java:1 82)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.jonas.provider.JOnASDomainItemP rovider.collectNewChildDescriptors(JOnASDomainItemProvider.j ava:173)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.emf.edit.provider.ItemProviderAdapter.getNewChil dDescriptors(ItemProviderAdapter.java:765)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain.getN ewChildDescriptors(AdapterFactoryEditingDomain.java:746)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.jasmine.presentation.JasmineAct ionBarContributor.selectionChanged(JasmineActionBarContribut or.java:299)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.jasmine.presentation.JasmineEdi tor.setSelection(JasmineEditor.java:1745)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.jasmine.presentation.JasmineEdi tor$6.selectionChanged(JasmineEditor.java:938)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.core.runtime.Platform.run(Platform.java:888)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:160)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(S tructuredViewer.java:2132)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.viewers.StructuredViewer.handleSelect(Stru cturedViewer.java:1160)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer.java:1190)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:228)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:222)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:389)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at java.lang.reflect.Method.invoke(Unknown Source)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
<br>
Caused by: java.lang.IllegalArgumentException: The value '80' is
invalid.
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFa ctoryImpl.java:439)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.jasmine.impl.JasmineFactoryImpl .createPortFromString(JasmineFactoryImpl.java:236)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.jasmine.impl.JasmineFactoryImpl .createFromString(JasmineFactoryImpl.java:117)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.apache_http_server.impl.Apache_ HTTPdImpl.&lt;clinit&gt;(Apache_HTTPdImpl.java:139)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;... 45 more
<br>
<br>
<br>
thanks by advance for any help
<br>
<br>
Aurelien Pupier
<br>
</blockquote>
</body>
</html>

--------------090104030502040906050206--
Re: EMF Migration - EDataType error [message #617522 is a reply to message #385159] Fri, 10 July 2009 08:25 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26283
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090104030502040906050206
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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(EFa ctoryImpl.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_server FactoryImpl.java:132)
>
> at
> org.ow2.jasmine.design.model.middleware.provider.DomainItemP rovider.collectNewChildDescriptors(DomainItemProvider.java:1 82)
>
> at
> org.ow2.jasmine.design.model.jonas.provider.JOnASDomainItemP rovider.collectNewChildDescriptors(JOnASDomainItemProvider.j ava:173)
>
> at
> org.eclipse.emf.edit.provider.ItemProviderAdapter.getNewChil dDescriptors(ItemProviderAdapter.java:765)
>
> at
> org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain.getN ewChildDescriptors(AdapterFactoryEditingDomain.java:746)
>
> at
> org.ow2.jasmine.design.model.jasmine.presentation.JasmineAct ionBarContributor.selectionChanged(JasmineActionBarContribut or.java:299)
>
> at
> org.ow2.jasmine.design.model.jasmine.presentation.JasmineEdi tor.setSelection(JasmineEditor.java:1745)
>
> at
> org.ow2.jasmine.design.model.jasmine.presentation.JasmineEdi tor$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:17 5)
> at
> org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:160)
> at
> org.eclipse.jface.viewers.StructuredViewer.updateSelection(S tructuredViewer.java:2132)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handleSelect(Stru cturedViewer.java:1160)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer.java:1190)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:228)
>
> at
> org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:222)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.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.ja va:3880)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> 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(Work bench.java:493)
>
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:368)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.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(EFa ctoryImpl.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

--------------090104030502040906050206
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Aurelien,<br>
<br>
Please ask EMF questions on the EMF newsgroup, which I've added to the
"to" list of the reply.&nbsp; Mind you, I don't know where a "Migrate to EMF
2.5" pop-up menu item comes from...<br>
<br>
My guess would be that you overwrote specialized code in when you
regenerated because you didn't change it to @generated not<br>
<blockquote> org.ow2.jasmine.design.model.jasmine.impl.JasmineFactoryImpl .createPortFromString(JasmineFactoryImpl.java:236)
<br>
</blockquote>
So now it calls<br>
<blockquote> org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFa ctoryImpl.java:439)
<br>
</blockquote>
which is not able reflectively to produce a value of the data type.&nbsp;
What is the Java wrapped by your Port EDataType, by the way?<br>
<br>
<br>
Aurelien Pupier wrote:
<blockquote cite="mid:h36scl$clr$1@build.eclipse.org" type="cite">Hi,
<br>
<br>
I want to migrate to the latest EMF version.
<br>
<br>
I used the Migrate to EMF 2.5 pop-up menu and regenerate code.
<br>
<br>
All works fine except that at the runtime, this exeception is thrown
when one of my element is initialized with an EDataType :
<br>
<br>
!ENTRY org.eclipse.jface 4 2 2009-07-10 09:37:47.785
<br>
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
<br>
!STACK 0
<br>
java.lang.ExceptionInInitializerError
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.apache_http_server.impl.Apache_ http_serverFactoryImpl.createApache_HTTPd(Apache_http_server FactoryImpl.java:132)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.middleware.provider.DomainItemP rovider.collectNewChildDescriptors(DomainItemProvider.java:1 82)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.jonas.provider.JOnASDomainItemP rovider.collectNewChildDescriptors(JOnASDomainItemProvider.j ava:173)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.emf.edit.provider.ItemProviderAdapter.getNewChil dDescriptors(ItemProviderAdapter.java:765)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain.getN ewChildDescriptors(AdapterFactoryEditingDomain.java:746)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.jasmine.presentation.JasmineAct ionBarContributor.selectionChanged(JasmineActionBarContribut or.java:299)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.jasmine.presentation.JasmineEdi tor.setSelection(JasmineEditor.java:1745)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.jasmine.presentation.JasmineEdi tor$6.selectionChanged(JasmineEditor.java:938)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.core.runtime.Platform.run(Platform.java:888)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:160)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(S tructuredViewer.java:2132)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.viewers.StructuredViewer.handleSelect(Stru cturedViewer.java:1160)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer.java:1190)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:228)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:222)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:389)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at java.lang.reflect.Method.invoke(Unknown Source)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
<br>
Caused by: java.lang.IllegalArgumentException: The value '80' is
invalid.
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString(EFa ctoryImpl.java:439)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.jasmine.impl.JasmineFactoryImpl .createPortFromString(JasmineFactoryImpl.java:236)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.jasmine.impl.JasmineFactoryImpl .createFromString(JasmineFactoryImpl.java:117)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.ow2.jasmine.design.model.apache_http_server.impl.Apache_ HTTPdImpl.&lt;clinit&gt;(Apache_HTTPdImpl.java:139)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;... 45 more
<br>
<br>
<br>
thanks by advance for any help
<br>
<br>
Aurelien Pupier
<br>
</blockquote>
</body>
</html>

--------------090104030502040906050206--
Previous Topic:EMF Migration - EDataType error
Next Topic:cdo - unimplemented methods and missing repositories
Goto Forum:
  


Current Time: Sat Dec 20 08:52:17 GMT 2014

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

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