Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [Epsilon] Problem with HUTN and sqlmodel
[Epsilon] Problem with HUTN and sqlmodel [message #383957] Thu, 17 July 2008 07:57 Go to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hello,
I'm trying to use HUTN in order to define a SQL model, but when I save the
file I just get this error:
org.epsilon.hutn.exceptions.HutnGenerationException:
java.lang.NullPointerException

The URI of the metamodel I'm using is 'http:///SQLModel.ecore', from the
main package of the ecore file (it has child packages). First I thougth it
failed because of the chidren packages, but I managed to define a QVT
model and another I made for proofs (both with child packages).

My code where I specify de metamodel is just:
=================================================
@Spec{
MetaModel "sqmodel"{
nsUri = "http:///SQLModel.ecore"
}
}
=================================================

Do you know something about this error?

Thanks,
Héctor.
Re: [Epsilon] Problem with HUTN and sqlmodel [message #383958 is a reply to message #383957] Thu, 17 July 2008 10:59 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

I suspect that this problem is fixed in some recent changes made to
HUTN. I will investigate your problem this afternoon and post an update.

Cheers,
Louis.

Héctor Iturria wrote:
> Hello,
> I'm trying to use HUTN in order to define a SQL model, but when I save
> the file I just get this error:
> org.epsilon.hutn.exceptions.HutnGenerationException:
> java.lang.NullPointerException
>
> The URI of the metamodel I'm using is 'http:///SQLModel.ecore', from the
> main package of the ecore file (it has child packages). First I thougth
> it failed because of the chidren packages, but I managed to define a QVT
> model and another I made for proofs (both with child packages).
>
> My code where I specify de metamodel is just:
> =================================================
> @Spec{
> MetaModel "sqmodel"{
> nsUri = "http:///SQLModel.ecore"
> }
> } =================================================
>
> Do you know something about this error?
>
> Thanks,
> Héctor.
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384228 is a reply to message #383958] Thu, 17 July 2008 19:32 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi again,

Recently, we have performing some migration activities on Epsilon, and
the HUTN test suite is currently being migrated. I aim to finish this
tomorrow, and will have a better idea of the cause of your problem then.

In the meantime, here are some things to check:

1) Ensure that your metamodel is registered with Epsilon. (Right-click
the Ecore file and click Register EPackages).

2) Ensure that you specify a body after your HUTN header. For example:

SqModelPackage {
Table "sample" {
name: "Sample"
}
}

(The above example assumes that a Table classifier exists in your
metamodel, and that the Table classifier defines a String attribute
called name).

Finally, if you could send me your metamodel and HUTN source, I will
continue to investigate your problem over the next few days.

Many thanks,
Louis.

Louis Rose wrote:
> Hi Héctor,
>
> I suspect that this problem is fixed in some recent changes made to
> HUTN. I will investigate your problem this afternoon and post an update.
>
> Cheers,
> Louis.
>
> Héctor Iturria wrote:
>> Hello,
>> I'm trying to use HUTN in order to define a SQL model, but when I save
>> the file I just get this error:
>> org.epsilon.hutn.exceptions.HutnGenerationException:
>> java.lang.NullPointerException
>>
>> The URI of the metamodel I'm using is 'http:///SQLModel.ecore', from
>> the main package of the ecore file (it has child packages). First I
>> thougth it failed because of the chidren packages, but I managed to
>> define a QVT model and another I made for proofs (both with child
>> packages).
>>
>> My code where I specify de metamodel is just:
>> =================================================
>> @Spec{
>> MetaModel "sqmodel"{
>> nsUri = "http:///SQLModel.ecore"
>> }
>> } =================================================
>>
>> Do you know something about this error?
>>
>> Thanks,
>> Héctor.
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384239 is a reply to message #384228] Fri, 18 July 2008 06:55 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------030401080703080603070203
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi!

Both things are done. I registered the main package and after its
children. The feedback I got when I did it was that the main package was
registered succesfully. Even for the children packages.

I have tried the HUNT file with and without body and I get the same
error, so I think the problem should be with the meta model. However,
when I define the body, HUTN recognises the classifiers and the types of
its attributes. I have already tried another HUTN model without body
with another ecore, and it works.

I send you the metamodel and the HUTN file.

Thanks!
H
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384244 is a reply to message #384239] Fri, 18 July 2008 19:05 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

Many thanks for the debug information. I now suspect that you may have a
buggy version of HUTN.

Could you tell us what version of HUTN you are running?

This information can be obtained by:

1) Selecting the Help | About Eclipse option from Eclipse.
2) Clicking the Plugin Details button.
3) Locating the table row with plugin ID
"org.eclipse.epsilon.hutn.engine" or "org.epsilon.hutn.engine"
4) Noting the version number in the version column.

Many thanks,
Louis.

Héctor Iturria wrote:
> Hi!
>
> Both things are done. I registered the main package and after its
> children. The feedback I got when I did it was that the main package was
> registered succesfully. Even for the children packages.
>
> I have tried the HUNT file with and without body and I get the same
> error, so I think the problem should be with the meta model. However,
> when I define the body, HUTN recognises the classifiers and the types of
> its attributes. I have already tried another HUTN model without body
> with another ecore, and it works.
>
> I send you the metamodel and the HUTN file.
>
> Thanks!
> Héctor
>
>
>
>
> Louis Rose escribió:
>> Hi again,
>>
>> Recently, we have performing some migration activities on Epsilon, and
>> the HUTN test suite is currently being migrated. I aim to finish this
>> tomorrow, and will have a better idea of the cause of your problem then.
>>
>> In the meantime, here are some things to check:
>>
>> 1) Ensure that your metamodel is registered with Epsilon. (Right-click
>> the Ecore file and click Register EPackages).
>>
>> 2) Ensure that you specify a body after your HUTN header. For example:
>>
>> SqModelPackage {
>> Table "sample" {
>> name: "Sample"
>> }
>> }
>>
>> (The above example assumes that a Table classifier exists in your
>> metamodel, and that the Table classifier defines a String attribute
>> called name).
>>
>> Finally, if you could send me your metamodel and HUTN source, I will
>> continue to investigate your problem over the next few days.
>>
>> Many thanks,
>> Louis.
>>
>> Louis Rose wrote:
>>> Hi Héctor,
>>>
>>> I suspect that this problem is fixed in some recent changes made to
>>> HUTN. I will investigate your problem this afternoon and post an update.
>>>
>>> Cheers,
>>> Louis.
>>>
>>> Héctor Iturria wrote:
>>>> Hello,
>>>> I'm trying to use HUTN in order to define a SQL model, but when I
>>>> save the file I just get this error:
>>>> org.epsilon.hutn.exceptions.HutnGenerationException:
>>>> java.lang.NullPointerException
>>>>
>>>> The URI of the metamodel I'm using is 'http:///SQLModel.ecore', from
>>>> the main package of the ecore file (it has child packages). First I
>>>> thougth it failed because of the chidren packages, but I managed to
>>>> define a QVT model and another I made for proofs (both with child
>>>> packages).
>>>>
>>>> My code where I specify de metamodel is just:
>>>> =================================================
>>>> @Spec{
>>>> MetaModel "sqmodel"{
>>>> nsUri = "http:///SQLModel.ecore"
>>>> }
>>>> } =================================================
>>>>
>>>> Do you know something about this error?
>>>>
>>>> Thanks,
>>>> Héctor.
>
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384248 is a reply to message #384244] Mon, 21 July 2008 06:37 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi Louis,

The version number of the HUTN engine is 1.0.1

Best regards,
Héctor


Louis Rose escribió:
> Hi Héctor,
>
> Many thanks for the debug information. I now suspect that you may have a
> buggy version of HUTN.
>
> Could you tell us what version of HUTN you are running?
>
> This information can be obtained by:
>
> 1) Selecting the Help | About Eclipse option from Eclipse.
> 2) Clicking the Plugin Details button.
> 3) Locating the table row with plugin ID
> "org.eclipse.epsilon.hutn.engine" or "org.epsilon.hutn.engine"
> 4) Noting the version number in the version column.
>
> Many thanks,
> Louis.
>
> Héctor Iturria wrote:
>> Hi!
>>
>> Both things are done. I registered the main package and after its
>> children. The feedback I got when I did it was that the main package
>> was registered succesfully. Even for the children packages.
>>
>> I have tried the HUNT file with and without body and I get the same
>> error, so I think the problem should be with the meta model. However,
>> when I define the body, HUTN recognises the classifiers and the types
>> of its attributes. I have already tried another HUTN model without
>> body with another ecore, and it works.
>>
>> I send you the metamodel and the HUTN file.
>>
>> Thanks!
>> Héctor
>>
>>
>>
>>
>> Louis Rose escribió:
>>> Hi again,
>>>
>>> Recently, we have performing some migration activities on Epsilon,
>>> and the HUTN test suite is currently being migrated. I aim to finish
>>> this tomorrow, and will have a better idea of the cause of your
>>> problem then.
>>>
>>> In the meantime, here are some things to check:
>>>
>>> 1) Ensure that your metamodel is registered with Epsilon.
>>> (Right-click the Ecore file and click Register EPackages).
>>>
>>> 2) Ensure that you specify a body after your HUTN header. For example:
>>>
>>> SqModelPackage {
>>> Table "sample" {
>>> name: "Sample"
>>> }
>>> }
>>>
>>> (The above example assumes that a Table classifier exists in your
>>> metamodel, and that the Table classifier defines a String attribute
>>> called name).
>>>
>>> Finally, if you could send me your metamodel and HUTN source, I will
>>> continue to investigate your problem over the next few days.
>>>
>>> Many thanks,
>>> Louis.
>>>
>>> Louis Rose wrote:
>>>> Hi Héctor,
>>>>
>>>> I suspect that this problem is fixed in some recent changes made to
>>>> HUTN. I will investigate your problem this afternoon and post an
>>>> update.
>>>>
>>>> Cheers,
>>>> Louis.
>>>>
>>>> Héctor Iturria wrote:
>>>>> Hello,
>>>>> I'm trying to use HUTN in order to define a SQL model, but when I
>>>>> save the file I just get this error:
>>>>> org.epsilon.hutn.exceptions.HutnGenerationException:
>>>>> java.lang.NullPointerException
>>>>>
>>>>> The URI of the metamodel I'm using is 'http:///SQLModel.ecore',
>>>>> from the main package of the ecore file (it has child packages).
>>>>> First I thougth it failed because of the chidren packages, but I
>>>>> managed to define a QVT model and another I made for proofs (both
>>>>> with child packages).
>>>>>
>>>>> My code where I specify de metamodel is just:
>>>>> =================================================
>>>>> @Spec{
>>>>> MetaModel "sqmodel"{
>>>>> nsUri = "http:///SQLModel.ecore"
>>>>> }
>>>>> } =================================================
>>>>>
>>>>> Do you know something about this error?
>>>>>
>>>>> Thanks,
>>>>> Héctor.
>>
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384250 is a reply to message #384248] Mon, 21 July 2008 09:03 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi again!

The plugin version I'm using is 1.0.1, but it has been patched for working
properly with UML and the search of URIs. Is the one you gave to Pau Giner.

Thanks!
Héctor
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384254 is a reply to message #384250] Mon, 21 July 2008 16:13 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

There are a couple of small problems in HUTN version 1.0.1 (as you have
noticed!) Dimitrios and I are currently assembling a new release of
Epsilon and HUTN that should fix your problem. We hope to have the
release ready in the next couple of days.

I'll post here once it's available.

Many thanks,
Louis.

Héctor Iturria wrote:
> Hi again!
>
> The plugin version I'm using is 1.0.1, but it has been patched for
> working properly with UML and the search of URIs. Is the one you gave to
> Pau Giner.
>
> Thanks!
> Héctor
>
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384259 is a reply to message #384254] Tue, 22 July 2008 07:10 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Ok, I wait for it.

Thanks,
Héctor
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384370 is a reply to message #384259] Wed, 23 July 2008 14:17 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Héctor Iturria wrote:
> Ok, I wait for it.
>
> Thanks,
> Héctor
>

Hi Héctor,

Dimitrios and I have finalised most of the details for the new release.
We've fixed the null pointer exception that you were encountering with HUTN.

We're going to investigate a further problem related to the nesting of
packages in your metamodel before we make a new release of Epsilon and
HUTN available.

I'll update this thread as soon as we have more information.

Cheers,
Louis.
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384372 is a reply to message #384370] Thu, 24 July 2008 06:33 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Many thanks, I'll be here :)

Best regards,
Héctor
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384374 is a reply to message #384372] Fri, 25 July 2008 13:55 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

Dimitrios has just released a new version of HUTN. The version number is
0.7.0. Apologies if this seems a little counter-intuitive (the last
version was 1.3.6), but we've had to change the version numbers of all
Epsilon features to comply with the Eclipse incubation process.

Please update your installation of Epsilon and HUTN from the new update
manager site: http://download.eclipse.org/technology/gmt/epsilon/updates/

You should find that the NullPointerException that you were encountering
no longer occurs.

However, we have had some problems instantiating your sqlmodel.ecore
metamodel using the built-in EMF editor. Could you try it too? If you
manage to successfully instantiate your model with the built-in editor,
and the same model cannot be constructed with HUTN, please let us know.

Many thanks,
Louis.
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384375 is a reply to message #384374] Mon, 28 July 2008 09:21 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------080403070308060801050600
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit


Hi Louis,

I updated all the epsilon plugins and the UML Null point exception
doesn't apperar any more, but continued in the sqlmodel. I changed some
references of the metamodel to other ecores and now the error I get is
this one:

org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Could not
parse transformation: [Line: 267, Column: 15, Reason: mismatched input
'Sequence' expecting NAME]

I send you the changed metamodel too.

Many thanks,
H
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384376 is a reply to message #384375] Mon, 28 July 2008 10:00 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

Sorry to hear you're still experiencing problems.

Could you also send the HUTN source from which you're trying to
construct a model?

Many thanks,
Louis.


Héctor Iturria wrote:
>
> Hi Louis,
>
> I updated all the epsilon plugins and the UML Null point exception
> doesn't apperar any more, but continued in the sqlmodel. I changed some
> references of the metamodel to other ecores and now the error I get is
> this one:
>
> org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Could not
> parse transformation: [Line: 267, Column: 15, Reason: mismatched input
> 'Sequence' expecting NAME]
>
> I send you the changed metamodel too.
>
> Many thanks,
> Héctor
>
>
>
>
> Louis Rose escribió:
>> Hi Héctor,
>>
>> Dimitrios has just released a new version of HUTN. The version number
>> is 0.7.0. Apologies if this seems a little counter-intuitive (the last
>> version was 1.3.6), but we've had to change the version numbers of all
>> Epsilon features to comply with the Eclipse incubation process.
>>
>> Please update your installation of Epsilon and HUTN from the new
>> update manager site:
>> http://download.eclipse.org/technology/gmt/epsilon/updates/
>>
>> You should find that the NullPointerException that you were
>> encountering no longer occurs.
>>
>> However, we have had some problems instantiating your sqlmodel.ecore
>> metamodel using the built-in EMF editor. Could you try it too? If you
>> manage to successfully instantiate your model with the built-in
>> editor, and the same model cannot be constructed with HUTN, please let
>> us know.
>>
>> Many thanks,
>> Louis.
>>
>
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384377 is a reply to message #384376] Mon, 28 July 2008 11:00 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------060207020001050700000208
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Of course. This is simple one.

Thanks.
H
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384378 is a reply to message #384376] Mon, 28 July 2008 11:06 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Héctor,

Regardless of the potential HUTN issue, the sqlmodel.ecore still appears
to be somewhat problematic. If I select sqlmodel->schema->Database in
the built-in EMF tree editor, right click and select "Create dynamic
instance", EMF raises an exception and complains that
"java.lang.IllegalArgumentException: The class 'ENamedElement' is not a
valid classifier". I'm not sure why this happens - perhaps the EMF
newsgroup would be a good place to ask. In any case, I believe we should
first resolve this issue before looking into HUTN.

If you have control over the metamodel (i.e. you are not required to use
it as-is) I would suggest removing all references to ECore (e.g.
extending the ECore ENamedElement class in SQLObject / using
EAnnotations) and trying again.

Cheers,
Dimitrios

Louis Rose wrote:
> Hi Héctor,
>
> Sorry to hear you're still experiencing problems.
>
> Could you also send the HUTN source from which you're trying to
> construct a model?
>
> Many thanks,
> Louis.
>
>
> Héctor Iturria wrote:
>>
>> Hi Louis,
>>
>> I updated all the epsilon plugins and the UML Null point exception
>> doesn't apperar any more, but continued in the sqlmodel. I changed
>> some references of the metamodel to other ecores and now the error I
>> get is this one:
>>
>> org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Could not
>> parse transformation: [Line: 267, Column: 15, Reason: mismatched input
>> 'Sequence' expecting NAME]
>>
>> I send you the changed metamodel too.
>>
>> Many thanks,
>> Héctor
>>
>>
>>
>>
>> Louis Rose escribió:
>>> Hi Héctor,
>>>
>>> Dimitrios has just released a new version of HUTN. The version number
>>> is 0.7.0. Apologies if this seems a little counter-intuitive (the
>>> last version was 1.3.6), but we've had to change the version numbers
>>> of all Epsilon features to comply with the Eclipse incubation process.
>>>
>>> Please update your installation of Epsilon and HUTN from the new
>>> update manager site:
>>> http://download.eclipse.org/technology/gmt/epsilon/updates/
>>>
>>> You should find that the NullPointerException that you were
>>> encountering no longer occurs.
>>>
>>> However, we have had some problems instantiating your sqlmodel.ecore
>>> metamodel using the built-in EMF editor. Could you try it too? If you
>>> manage to successfully instantiate your model with the built-in
>>> editor, and the same model cannot be constructed with HUTN, please
>>> let us know.
>>>
>>> Many thanks,
>>> Louis.
>>>
>>
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384379 is a reply to message #384378] Mon, 28 July 2008 12:21 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

The exception you mention was due to an unescaped character being
created in the final transformation to the target model. I have now
fixed this. The fix will appear in a new release later on in the week.
If you need the patch before then, please let me know. (I can provide
you with an overlay, like we did for Pau).

However, resolving this problem uncovered an issue with instantiating
your metamodel with EMF. The following exception was raised:

Caused by: java.lang.IllegalArgumentException: The class 'ENamedElement'
is not a valid classifier
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.create(EcoreFact oryImpl.java:104)
at org.eclipse.emf.ecore.impl.EFactoryImpl.create(EFactoryImpl. java:243)

This is the same exception that Dimitrios encountered. As Dimitrios
mentions below, HUTN will not be able to generate models with the
current version of the SQLModel metamodel. Once you can instantiate the
SQLModel metamodel with EMF reflexive editor, HUTN should be capable of
generating models too.

Cheers,
Louis.

Dimitrios Kolovos wrote:
> Hi Héctor,
>
> Regardless of the potential HUTN issue, the sqlmodel.ecore still appears
> to be somewhat problematic. If I select sqlmodel->schema->Database in
> the built-in EMF tree editor, right click and select "Create dynamic
> instance", EMF raises an exception and complains that
> "java.lang.IllegalArgumentException: The class 'ENamedElement' is not a
> valid classifier". I'm not sure why this happens - perhaps the EMF
> newsgroup would be a good place to ask. In any case, I believe we should
> first resolve this issue before looking into HUTN.
>
> If you have control over the metamodel (i.e. you are not required to use
> it as-is) I would suggest removing all references to ECore (e.g.
> extending the ECore ENamedElement class in SQLObject / using
> EAnnotations) and trying again.
>
> Cheers,
> Dimitrios
>
> Louis Rose wrote:
>> Hi Héctor,
>>
>> Sorry to hear you're still experiencing problems.
>>
>> Could you also send the HUTN source from which you're trying to
>> construct a model?
>>
>> Many thanks,
>> Louis.
>>
>>
>> Héctor Iturria wrote:
>>>
>>> Hi Louis,
>>>
>>> I updated all the epsilon plugins and the UML Null point exception
>>> doesn't apperar any more, but continued in the sqlmodel. I changed
>>> some references of the metamodel to other ecores and now the error I
>>> get is this one:
>>>
>>> org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Could
>>> not parse transformation: [Line: 267, Column: 15, Reason: mismatched
>>> input 'Sequence' expecting NAME]
>>>
>>> I send you the changed metamodel too.
>>>
>>> Many thanks,
>>> Héctor
>>>
>>>
>>>
>>>
>>> Louis Rose escribió:
>>>> Hi Héctor,
>>>>
>>>> Dimitrios has just released a new version of HUTN. The version
>>>> number is 0.7.0. Apologies if this seems a little counter-intuitive
>>>> (the last version was 1.3.6), but we've had to change the version
>>>> numbers of all Epsilon features to comply with the Eclipse
>>>> incubation process.
>>>>
>>>> Please update your installation of Epsilon and HUTN from the new
>>>> update manager site:
>>>> http://download.eclipse.org/technology/gmt/epsilon/updates/
>>>>
>>>> You should find that the NullPointerException that you were
>>>> encountering no longer occurs.
>>>>
>>>> However, we have had some problems instantiating your sqlmodel.ecore
>>>> metamodel using the built-in EMF editor. Could you try it too? If
>>>> you manage to successfully instantiate your model with the built-in
>>>> editor, and the same model cannot be constructed with HUTN, please
>>>> let us know.
>>>>
>>>> Many thanks,
>>>> Louis.
>>>>
>>>
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384382 is a reply to message #384379] Tue, 29 July 2008 06:43 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi!

I'm sorry but nowadays I'm not able to change the Sql metamodel. I'll wait
for the new release, although it would be great if I could have the
patched version as you have told me.

Many thanks for your help!
Héctor
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384383 is a reply to message #384382] Wed, 30 July 2008 17:28 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
This is a multi-part message in MIME format.
--------------030403080705040400000200
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi H
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384384 is a reply to message #384383] Thu, 31 July 2008 13:01 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Thanks for the patch, but when I try to unzip the file, it says than the
file is corrupted.
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384385 is a reply to message #384384] Thu, 31 July 2008 14:01 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
This is a multi-part message in MIME format.
--------------020805050706020202090507
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

H
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618237 is a reply to message #383957] Thu, 17 July 2008 10:59 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

I suspect that this problem is fixed in some recent changes made to
HUTN. I will investigate your problem this afternoon and post an update.

Cheers,
Louis.

Héctor Iturria wrote:
> Hello,
> I'm trying to use HUTN in order to define a SQL model, but when I save
> the file I just get this error:
> org.epsilon.hutn.exceptions.HutnGenerationException:
> java.lang.NullPointerException
>
> The URI of the metamodel I'm using is 'http:///SQLModel.ecore', from the
> main package of the ecore file (it has child packages). First I thougth
> it failed because of the chidren packages, but I managed to define a QVT
> model and another I made for proofs (both with child packages).
>
> My code where I specify de metamodel is just:
> =================================================
> @Spec{
> MetaModel "sqmodel"{
> nsUri = "http:///SQLModel.ecore"
> }
> } =================================================
>
> Do you know something about this error?
>
> Thanks,
> Héctor.
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618239 is a reply to message #383958] Thu, 17 July 2008 19:32 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi again,

Recently, we have performing some migration activities on Epsilon, and
the HUTN test suite is currently being migrated. I aim to finish this
tomorrow, and will have a better idea of the cause of your problem then.

In the meantime, here are some things to check:

1) Ensure that your metamodel is registered with Epsilon. (Right-click
the Ecore file and click Register EPackages).

2) Ensure that you specify a body after your HUTN header. For example:

SqModelPackage {
Table "sample" {
name: "Sample"
}
}

(The above example assumes that a Table classifier exists in your
metamodel, and that the Table classifier defines a String attribute
called name).

Finally, if you could send me your metamodel and HUTN source, I will
continue to investigate your problem over the next few days.

Many thanks,
Louis.

Louis Rose wrote:
> Hi Héctor,
>
> I suspect that this problem is fixed in some recent changes made to
> HUTN. I will investigate your problem this afternoon and post an update.
>
> Cheers,
> Louis.
>
> Héctor Iturria wrote:
>> Hello,
>> I'm trying to use HUTN in order to define a SQL model, but when I save
>> the file I just get this error:
>> org.epsilon.hutn.exceptions.HutnGenerationException:
>> java.lang.NullPointerException
>>
>> The URI of the metamodel I'm using is 'http:///SQLModel.ecore', from
>> the main package of the ecore file (it has child packages). First I
>> thougth it failed because of the chidren packages, but I managed to
>> define a QVT model and another I made for proofs (both with child
>> packages).
>>
>> My code where I specify de metamodel is just:
>> =================================================
>> @Spec{
>> MetaModel "sqmodel"{
>> nsUri = "http:///SQLModel.ecore"
>> }
>> } =================================================
>>
>> Do you know something about this error?
>>
>> Thanks,
>> Héctor.
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618240 is a reply to message #384228] Fri, 18 July 2008 06:55 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------030401080703080603070203
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi!

Both things are done. I registered the main package and after its
children. The feedback I got when I did it was that the main package was
registered succesfully. Even for the children packages.

I have tried the HUNT file with and without body and I get the same
error, so I think the problem should be with the meta model. However,
when I define the body, HUTN recognises the classifiers and the types of
its attributes. I have already tried another HUTN model without body
with another ecore, and it works.

I send you the metamodel and the HUTN file.

Thanks!
H
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618242 is a reply to message #384239] Fri, 18 July 2008 19:05 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

Many thanks for the debug information. I now suspect that you may have a
buggy version of HUTN.

Could you tell us what version of HUTN you are running?

This information can be obtained by:

1) Selecting the Help | About Eclipse option from Eclipse.
2) Clicking the Plugin Details button.
3) Locating the table row with plugin ID
"org.eclipse.epsilon.hutn.engine" or "org.epsilon.hutn.engine"
4) Noting the version number in the version column.

Many thanks,
Louis.

Héctor Iturria wrote:
> Hi!
>
> Both things are done. I registered the main package and after its
> children. The feedback I got when I did it was that the main package was
> registered succesfully. Even for the children packages.
>
> I have tried the HUNT file with and without body and I get the same
> error, so I think the problem should be with the meta model. However,
> when I define the body, HUTN recognises the classifiers and the types of
> its attributes. I have already tried another HUTN model without body
> with another ecore, and it works.
>
> I send you the metamodel and the HUTN file.
>
> Thanks!
> Héctor
>
>
>
>
> Louis Rose escribió:
>> Hi again,
>>
>> Recently, we have performing some migration activities on Epsilon, and
>> the HUTN test suite is currently being migrated. I aim to finish this
>> tomorrow, and will have a better idea of the cause of your problem then.
>>
>> In the meantime, here are some things to check:
>>
>> 1) Ensure that your metamodel is registered with Epsilon. (Right-click
>> the Ecore file and click Register EPackages).
>>
>> 2) Ensure that you specify a body after your HUTN header. For example:
>>
>> SqModelPackage {
>> Table "sample" {
>> name: "Sample"
>> }
>> }
>>
>> (The above example assumes that a Table classifier exists in your
>> metamodel, and that the Table classifier defines a String attribute
>> called name).
>>
>> Finally, if you could send me your metamodel and HUTN source, I will
>> continue to investigate your problem over the next few days.
>>
>> Many thanks,
>> Louis.
>>
>> Louis Rose wrote:
>>> Hi Héctor,
>>>
>>> I suspect that this problem is fixed in some recent changes made to
>>> HUTN. I will investigate your problem this afternoon and post an update.
>>>
>>> Cheers,
>>> Louis.
>>>
>>> Héctor Iturria wrote:
>>>> Hello,
>>>> I'm trying to use HUTN in order to define a SQL model, but when I
>>>> save the file I just get this error:
>>>> org.epsilon.hutn.exceptions.HutnGenerationException:
>>>> java.lang.NullPointerException
>>>>
>>>> The URI of the metamodel I'm using is 'http:///SQLModel.ecore', from
>>>> the main package of the ecore file (it has child packages). First I
>>>> thougth it failed because of the chidren packages, but I managed to
>>>> define a QVT model and another I made for proofs (both with child
>>>> packages).
>>>>
>>>> My code where I specify de metamodel is just:
>>>> =================================================
>>>> @Spec{
>>>> MetaModel "sqmodel"{
>>>> nsUri = "http:///SQLModel.ecore"
>>>> }
>>>> } =================================================
>>>>
>>>> Do you know something about this error?
>>>>
>>>> Thanks,
>>>> Héctor.
>
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618244 is a reply to message #384244] Mon, 21 July 2008 06:37 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi Louis,

The version number of the HUTN engine is 1.0.1

Best regards,
Héctor


Louis Rose escribió:
> Hi Héctor,
>
> Many thanks for the debug information. I now suspect that you may have a
> buggy version of HUTN.
>
> Could you tell us what version of HUTN you are running?
>
> This information can be obtained by:
>
> 1) Selecting the Help | About Eclipse option from Eclipse.
> 2) Clicking the Plugin Details button.
> 3) Locating the table row with plugin ID
> "org.eclipse.epsilon.hutn.engine" or "org.epsilon.hutn.engine"
> 4) Noting the version number in the version column.
>
> Many thanks,
> Louis.
>
> Héctor Iturria wrote:
>> Hi!
>>
>> Both things are done. I registered the main package and after its
>> children. The feedback I got when I did it was that the main package
>> was registered succesfully. Even for the children packages.
>>
>> I have tried the HUNT file with and without body and I get the same
>> error, so I think the problem should be with the meta model. However,
>> when I define the body, HUTN recognises the classifiers and the types
>> of its attributes. I have already tried another HUTN model without
>> body with another ecore, and it works.
>>
>> I send you the metamodel and the HUTN file.
>>
>> Thanks!
>> Héctor
>>
>>
>>
>>
>> Louis Rose escribió:
>>> Hi again,
>>>
>>> Recently, we have performing some migration activities on Epsilon,
>>> and the HUTN test suite is currently being migrated. I aim to finish
>>> this tomorrow, and will have a better idea of the cause of your
>>> problem then.
>>>
>>> In the meantime, here are some things to check:
>>>
>>> 1) Ensure that your metamodel is registered with Epsilon.
>>> (Right-click the Ecore file and click Register EPackages).
>>>
>>> 2) Ensure that you specify a body after your HUTN header. For example:
>>>
>>> SqModelPackage {
>>> Table "sample" {
>>> name: "Sample"
>>> }
>>> }
>>>
>>> (The above example assumes that a Table classifier exists in your
>>> metamodel, and that the Table classifier defines a String attribute
>>> called name).
>>>
>>> Finally, if you could send me your metamodel and HUTN source, I will
>>> continue to investigate your problem over the next few days.
>>>
>>> Many thanks,
>>> Louis.
>>>
>>> Louis Rose wrote:
>>>> Hi Héctor,
>>>>
>>>> I suspect that this problem is fixed in some recent changes made to
>>>> HUTN. I will investigate your problem this afternoon and post an
>>>> update.
>>>>
>>>> Cheers,
>>>> Louis.
>>>>
>>>> Héctor Iturria wrote:
>>>>> Hello,
>>>>> I'm trying to use HUTN in order to define a SQL model, but when I
>>>>> save the file I just get this error:
>>>>> org.epsilon.hutn.exceptions.HutnGenerationException:
>>>>> java.lang.NullPointerException
>>>>>
>>>>> The URI of the metamodel I'm using is 'http:///SQLModel.ecore',
>>>>> from the main package of the ecore file (it has child packages).
>>>>> First I thougth it failed because of the chidren packages, but I
>>>>> managed to define a QVT model and another I made for proofs (both
>>>>> with child packages).
>>>>>
>>>>> My code where I specify de metamodel is just:
>>>>> =================================================
>>>>> @Spec{
>>>>> MetaModel "sqmodel"{
>>>>> nsUri = "http:///SQLModel.ecore"
>>>>> }
>>>>> } =================================================
>>>>>
>>>>> Do you know something about this error?
>>>>>
>>>>> Thanks,
>>>>> Héctor.
>>
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618245 is a reply to message #384248] Mon, 21 July 2008 09:03 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi again!

The plugin version I'm using is 1.0.1, but it has been patched for working
properly with UML and the search of URIs. Is the one you gave to Pau Giner.

Thanks!
Héctor
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618512 is a reply to message #384250] Mon, 21 July 2008 16:13 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

There are a couple of small problems in HUTN version 1.0.1 (as you have
noticed!) Dimitrios and I are currently assembling a new release of
Epsilon and HUTN that should fix your problem. We hope to have the
release ready in the next couple of days.

I'll post here once it's available.

Many thanks,
Louis.

Héctor Iturria wrote:
> Hi again!
>
> The plugin version I'm using is 1.0.1, but it has been patched for
> working properly with UML and the search of URIs. Is the one you gave to
> Pau Giner.
>
> Thanks!
> Héctor
>
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618521 is a reply to message #384254] Tue, 22 July 2008 07:10 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Ok, I wait for it.

Thanks,
Héctor
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618540 is a reply to message #384259] Wed, 23 July 2008 14:17 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Héctor Iturria wrote:
> Ok, I wait for it.
>
> Thanks,
> Héctor
>

Hi Héctor,

Dimitrios and I have finalised most of the details for the new release.
We've fixed the null pointer exception that you were encountering with HUTN.

We're going to investigate a further problem related to the nesting of
packages in your metamodel before we make a new release of Epsilon and
HUTN available.

I'll update this thread as soon as we have more information.

Cheers,
Louis.
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618543 is a reply to message #384370] Thu, 24 July 2008 06:33 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Many thanks, I'll be here :)

Best regards,
Héctor
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618547 is a reply to message #384372] Fri, 25 July 2008 13:55 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

Dimitrios has just released a new version of HUTN. The version number is
0.7.0. Apologies if this seems a little counter-intuitive (the last
version was 1.3.6), but we've had to change the version numbers of all
Epsilon features to comply with the Eclipse incubation process.

Please update your installation of Epsilon and HUTN from the new update
manager site: http://download.eclipse.org/technology/gmt/epsilon/updates/

You should find that the NullPointerException that you were encountering
no longer occurs.

However, we have had some problems instantiating your sqlmodel.ecore
metamodel using the built-in EMF editor. Could you try it too? If you
manage to successfully instantiate your model with the built-in editor,
and the same model cannot be constructed with HUTN, please let us know.

Many thanks,
Louis.
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618551 is a reply to message #384374] Mon, 28 July 2008 09:21 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------080403070308060801050600
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit


Hi Louis,

I updated all the epsilon plugins and the UML Null point exception
doesn't apperar any more, but continued in the sqlmodel. I changed some
references of the metamodel to other ecores and now the error I get is
this one:

org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Could not
parse transformation: [Line: 267, Column: 15, Reason: mismatched input
'Sequence' expecting NAME]

I send you the changed metamodel too.

Many thanks,
H
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618616 is a reply to message #384375] Mon, 28 July 2008 10:00 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

Sorry to hear you're still experiencing problems.

Could you also send the HUTN source from which you're trying to
construct a model?

Many thanks,
Louis.


Héctor Iturria wrote:
>
> Hi Louis,
>
> I updated all the epsilon plugins and the UML Null point exception
> doesn't apperar any more, but continued in the sqlmodel. I changed some
> references of the metamodel to other ecores and now the error I get is
> this one:
>
> org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Could not
> parse transformation: [Line: 267, Column: 15, Reason: mismatched input
> 'Sequence' expecting NAME]
>
> I send you the changed metamodel too.
>
> Many thanks,
> Héctor
>
>
>
>
> Louis Rose escribió:
>> Hi Héctor,
>>
>> Dimitrios has just released a new version of HUTN. The version number
>> is 0.7.0. Apologies if this seems a little counter-intuitive (the last
>> version was 1.3.6), but we've had to change the version numbers of all
>> Epsilon features to comply with the Eclipse incubation process.
>>
>> Please update your installation of Epsilon and HUTN from the new
>> update manager site:
>> http://download.eclipse.org/technology/gmt/epsilon/updates/
>>
>> You should find that the NullPointerException that you were
>> encountering no longer occurs.
>>
>> However, we have had some problems instantiating your sqlmodel.ecore
>> metamodel using the built-in EMF editor. Could you try it too? If you
>> manage to successfully instantiate your model with the built-in
>> editor, and the same model cannot be constructed with HUTN, please let
>> us know.
>>
>> Many thanks,
>> Louis.
>>
>
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618617 is a reply to message #384376] Mon, 28 July 2008 11:00 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------060207020001050700000208
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Of course. This is simple one.

Thanks.
H
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618618 is a reply to message #384376] Mon, 28 July 2008 11:06 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Héctor,

Regardless of the potential HUTN issue, the sqlmodel.ecore still appears
to be somewhat problematic. If I select sqlmodel->schema->Database in
the built-in EMF tree editor, right click and select "Create dynamic
instance", EMF raises an exception and complains that
"java.lang.IllegalArgumentException: The class 'ENamedElement' is not a
valid classifier". I'm not sure why this happens - perhaps the EMF
newsgroup would be a good place to ask. In any case, I believe we should
first resolve this issue before looking into HUTN.

If you have control over the metamodel (i.e. you are not required to use
it as-is) I would suggest removing all references to ECore (e.g.
extending the ECore ENamedElement class in SQLObject / using
EAnnotations) and trying again.

Cheers,
Dimitrios

Louis Rose wrote:
> Hi Héctor,
>
> Sorry to hear you're still experiencing problems.
>
> Could you also send the HUTN source from which you're trying to
> construct a model?
>
> Many thanks,
> Louis.
>
>
> Héctor Iturria wrote:
>>
>> Hi Louis,
>>
>> I updated all the epsilon plugins and the UML Null point exception
>> doesn't apperar any more, but continued in the sqlmodel. I changed
>> some references of the metamodel to other ecores and now the error I
>> get is this one:
>>
>> org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Could not
>> parse transformation: [Line: 267, Column: 15, Reason: mismatched input
>> 'Sequence' expecting NAME]
>>
>> I send you the changed metamodel too.
>>
>> Many thanks,
>> Héctor
>>
>>
>>
>>
>> Louis Rose escribió:
>>> Hi Héctor,
>>>
>>> Dimitrios has just released a new version of HUTN. The version number
>>> is 0.7.0. Apologies if this seems a little counter-intuitive (the
>>> last version was 1.3.6), but we've had to change the version numbers
>>> of all Epsilon features to comply with the Eclipse incubation process.
>>>
>>> Please update your installation of Epsilon and HUTN from the new
>>> update manager site:
>>> http://download.eclipse.org/technology/gmt/epsilon/updates/
>>>
>>> You should find that the NullPointerException that you were
>>> encountering no longer occurs.
>>>
>>> However, we have had some problems instantiating your sqlmodel.ecore
>>> metamodel using the built-in EMF editor. Could you try it too? If you
>>> manage to successfully instantiate your model with the built-in
>>> editor, and the same model cannot be constructed with HUTN, please
>>> let us know.
>>>
>>> Many thanks,
>>> Louis.
>>>
>>
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618619 is a reply to message #384378] Mon, 28 July 2008 12:21 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

The exception you mention was due to an unescaped character being
created in the final transformation to the target model. I have now
fixed this. The fix will appear in a new release later on in the week.
If you need the patch before then, please let me know. (I can provide
you with an overlay, like we did for Pau).

However, resolving this problem uncovered an issue with instantiating
your metamodel with EMF. The following exception was raised:

Caused by: java.lang.IllegalArgumentException: The class 'ENamedElement'
is not a valid classifier
at
org.eclipse.emf.ecore.impl.EcoreFactoryImpl.create(EcoreFact oryImpl.java:104)
at org.eclipse.emf.ecore.impl.EFactoryImpl.create(EFactoryImpl. java:243)

This is the same exception that Dimitrios encountered. As Dimitrios
mentions below, HUTN will not be able to generate models with the
current version of the SQLModel metamodel. Once you can instantiate the
SQLModel metamodel with EMF reflexive editor, HUTN should be capable of
generating models too.

Cheers,
Louis.

Dimitrios Kolovos wrote:
> Hi Héctor,
>
> Regardless of the potential HUTN issue, the sqlmodel.ecore still appears
> to be somewhat problematic. If I select sqlmodel->schema->Database in
> the built-in EMF tree editor, right click and select "Create dynamic
> instance", EMF raises an exception and complains that
> "java.lang.IllegalArgumentException: The class 'ENamedElement' is not a
> valid classifier". I'm not sure why this happens - perhaps the EMF
> newsgroup would be a good place to ask. In any case, I believe we should
> first resolve this issue before looking into HUTN.
>
> If you have control over the metamodel (i.e. you are not required to use
> it as-is) I would suggest removing all references to ECore (e.g.
> extending the ECore ENamedElement class in SQLObject / using
> EAnnotations) and trying again.
>
> Cheers,
> Dimitrios
>
> Louis Rose wrote:
>> Hi Héctor,
>>
>> Sorry to hear you're still experiencing problems.
>>
>> Could you also send the HUTN source from which you're trying to
>> construct a model?
>>
>> Many thanks,
>> Louis.
>>
>>
>> Héctor Iturria wrote:
>>>
>>> Hi Louis,
>>>
>>> I updated all the epsilon plugins and the UML Null point exception
>>> doesn't apperar any more, but continued in the sqlmodel. I changed
>>> some references of the metamodel to other ecores and now the error I
>>> get is this one:
>>>
>>> org.eclipse.epsilon.hutn.exceptions.HutnGenerationException: Could
>>> not parse transformation: [Line: 267, Column: 15, Reason: mismatched
>>> input 'Sequence' expecting NAME]
>>>
>>> I send you the changed metamodel too.
>>>
>>> Many thanks,
>>> Héctor
>>>
>>>
>>>
>>>
>>> Louis Rose escribió:
>>>> Hi Héctor,
>>>>
>>>> Dimitrios has just released a new version of HUTN. The version
>>>> number is 0.7.0. Apologies if this seems a little counter-intuitive
>>>> (the last version was 1.3.6), but we've had to change the version
>>>> numbers of all Epsilon features to comply with the Eclipse
>>>> incubation process.
>>>>
>>>> Please update your installation of Epsilon and HUTN from the new
>>>> update manager site:
>>>> http://download.eclipse.org/technology/gmt/epsilon/updates/
>>>>
>>>> You should find that the NullPointerException that you were
>>>> encountering no longer occurs.
>>>>
>>>> However, we have had some problems instantiating your sqlmodel.ecore
>>>> metamodel using the built-in EMF editor. Could you try it too? If
>>>> you manage to successfully instantiate your model with the built-in
>>>> editor, and the same model cannot be constructed with HUTN, please
>>>> let us know.
>>>>
>>>> Many thanks,
>>>> Louis.
>>>>
>>>
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618622 is a reply to message #384379] Tue, 29 July 2008 06:43 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi!

I'm sorry but nowadays I'm not able to change the Sql metamodel. I'll wait
for the new release, although it would be great if I could have the
patched version as you have told me.

Many thanks for your help!
Héctor
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618623 is a reply to message #384382] Wed, 30 July 2008 17:28 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
This is a multi-part message in MIME format.
--------------030403080705040400000200
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi H
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618624 is a reply to message #384383] Thu, 31 July 2008 13:01 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Thanks for the patch, but when I try to unzip the file, it says than the
file is corrupted.
Re: [Epsilon] Problem with HUTN and sqlmodel [message #618625 is a reply to message #384384] Thu, 31 July 2008 14:01 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
This is a multi-part message in MIME format.
--------------020805050706020202090507
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

H
Previous Topic:OAW - Type Casting with XTend
Next Topic:oaW tutorial examples
Goto Forum:
  


Current Time: Fri Mar 29 05:50:19 GMT 2024

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

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

Back to the top