Home » Modeling » EMF » "Initialize by loading" & DocumentRoot
|
Re: "Initialize by loading" & DocumentRoot [message #423114 is a reply to message #423098] |
Tue, 23 September 2008 14:13 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
Fabrice,
I tried this with the Library.xsd could run the generated example just
fine, i.e., load the model from the XSD, set Initialize by Loading to
true, General All, and run LibraryExample.java as a Java application...
The editor works too. What could I try to reproduce the problem?
Fabrice Dubach wrote:
> Hi,
>
> I saw a strange behavior with my EMF model since I used 2.5M1 (I was
> previously using EMF 2.4) :
>
> The generated code cannot instanciate any more objets because the
> getESTructuralFeature method seems to return bad initialized
> EStructuralFeature objects (For exemple, the createInitialModel of the
> generated editor fails).
>
> After looking about this bug, I found that this is happening when an ecore
> model is generated from a schema which have elements (so that there is a
> generated documentRoot), and when setting the "intialize by loading" to
> true (My model is quite large, but it is reproducible with a little one).
>
> I'm very confused with this tricky trouble... How could I manage it ?
>
> Fabrice Dubach
>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| | |
Re: "Initialize by loading" & DocumentRoot [message #423133 is a reply to message #423124] |
Tue, 23 September 2008 16:18 |
Fabrice Dubach Messages: 43 Registered: July 2009 |
Member |
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_006B_01C91DA8.C60B4B70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I forgot to say that I generate an RCP version, but it seem's to doesn't =
matter anyway...
I made a new clean install and I tried with your file. I did have the =
same issue.=20
My install was made from the Eclipse Ganymede 3.5M1 build 200808071402, =
and the emf- sdo-xsd pack 2.5.0 M1.
I created a new emtpy EMF project, copy & past your xsd file. I =
generated a library.genmodel file loading this xsd in the wizard. I =
modified the "Rich Client Platform" and the "Initialize by loading" =
flags both to true. Than I generated the model code, than the edit code, =
than the Editor Code.
I run the app using the link in the plugin.xml of the generated editor, =
I launched the wizard to create a new library file, than it failed with =
an "FileNotFoudException" (in fact, when I debug it, it failed in the =
createInitialModel method with a null pointer exception)
If I finally changed the "Initialize by loading" flag to false, than =
re-generated the code and it was running good...
What am I doing wrong ? I don't know what to say or to do more... I can =
perhaps send the project in attachment ?
------=_NextPart_000_006B_01C91DA8.C60B4B70
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.6000.16705" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I forgot to say that I generate an RCP =
version, but=20
it seem's to doesn't matter anyway...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I made a new clean install and I tried =
with your=20
file. I did have the same issue. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>My install was made from the Eclipse =
Ganymede 3.5M1=20
build 200808071402, and the emf- sdo-xsd pack 2.5.0 M1.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I created a new emtpy EMF project, copy =
& past=20
your xsd file. I generated a library.genmodel file loading this xsd in =
the=20
wizard. I modified the "Rich Client Platform" and the "Initialize by =
loading"=20
flags both to true. Than I generated the model code, than the edit code, =
than=20
the Editor Code.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I run the app using the link in the =
plugin.xml of=20
the generated editor, I launched the wizard to create a new library =
file, than=20
it failed with an "FileNotFoudException" (in fact, when I debug it, it =
failed in=20
the createInitialModel method with a null pointer =
exception)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>If I finally changed the "Initialize by =
loading"=20
flag to false, than re-generated the code and it was running=20
good...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>What am I doing wrong ? I don't know =
what to say or=20
to do more... I can perhaps send the project in attachment =
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_006B_01C91DA8.C60B4B70--
|
|
|
Re: "Initialize by loading" & DocumentRoot [message #423138 is a reply to message #423133] |
Tue, 23 September 2008 17:28 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------090300050900040408060806
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Fabrice,
I've seen situations where the .ecore file isn't copied to the bin
folder... This sounds like that kind of case. Can you see the *.ecore
in the bin folder where the .class files are?
Fabrice Dubach wrote:
> I forgot to say that I generate an RCP version, but it seem's to
> doesn't matter anyway...
>
> I made a new clean install and I tried with your file. I did have the
> same issue.
> My install was made from the Eclipse Ganymede 3.5M1 build
> 200808071402, and the emf- sdo-xsd pack 2.5.0 M1.
>
> I created a new emtpy EMF project, copy & past your xsd file. I
> generated a library.genmodel file loading this xsd in the wizard. I
> modified the "Rich Client Platform" and the "Initialize by loading"
> flags both to true. Than I generated the model code, than the edit
> code, than the Editor Code.
>
> I run the app using the link in the plugin.xml of the generated
> editor, I launched the wizard to create a new library file, than it
> failed with an "FileNotFoudException" (in fact, when I debug it, it
> failed in the createInitialModel method with a null pointer exception)
>
> If I finally changed the "Initialize by loading" flag to false, than
> re-generated the code and it was running good...
>
> What am I doing wrong ? I don't know what to say or to do more... I
> can perhaps send the project in attachment ?
>
--------------090300050900040408060806
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">
Fabrice,<br>
<br>
I've seen situations where the .ecore file isn't copied to the bin
folder... This sounds like that kind of case. Can you see the *.ecore
in the bin folder where the .class files are?<br>
<br>
<br>
Fabrice Dubach wrote:
<blockquote cite="mid:gbb4sk$2vh$1@build.eclipse.org" type="cite">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<meta content="MSHTML 6.00.6000.16705" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">I forgot to say that I generate an
RCP version, but it seem's to doesn't matter anyway...</font></div>
<div> </div>
<div><font face="Arial" size="2">I made a new clean install and I
tried with your file. I did have the same issue. </font></div>
<div><font face="Arial" size="2">My install was made from the Eclipse
Ganymede 3.5M1 build 200808071402, and the emf- sdo-xsd pack 2.5.0 M1.</font></div>
<div> </div>
<div><font face="Arial" size="2">I created a new emtpy EMF project,
copy & past your xsd file. I generated a library.genmodel file
loading this xsd in the wizard. I modified the "Rich Client Platform"
and the "Initialize by loading" flags both to true. Than I generated
the model code, than the edit code, than the Editor Code.</font></div>
<div> </div>
<div><font face="Arial" size="2">I run the app using the link in the
plugin.xml of the generated editor, I launched the wizard to create a
new library file, than it failed with an "FileNotFoudException" (in
fact, when I debug it, it failed in the createInitialModel method with
a null pointer exception)</font></div>
<div> </div>
<div><font face="Arial" size="2">If I finally changed the "Initialize
by loading" flag to false, than re-generated the code and it was
running good...</font></div>
<div> </div>
<div><font face="Arial" size="2">What am I doing wrong ? I don't know
what to say or to do more... I can perhaps send the project in
attachment ?</font></div>
<div> </div>
</blockquote>
</body>
</html>
--------------090300050900040408060806--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| | | | | | | | | |
Goto Forum:
Current Time: Thu Mar 28 13:13:46 GMT 2024
Powered by FUDForum. Page generated in 0.06381 seconds
|