Home » Archived » GMT (Generative Modeling Technologies) » [Epsilon] Problem with HUTN and sqlmodel
| |
Re: [Epsilon] Problem with HUTN and sqlmodel [message #384228 is a reply to message #383958] |
Thu, 17 July 2008 19:32 |
Louis Rose 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 #384244 is a reply to message #384239] |
Fri, 18 July 2008 19:05 |
Louis Rose 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 |
Hector Iturria 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 #384376 is a reply to message #384375] |
Mon, 28 July 2008 10:00 |
Louis Rose 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 #384378 is a reply to message #384376] |
Mon, 28 July 2008 11:06 |
Dimitrios Kolovos 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 |
Louis Rose 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 #618239 is a reply to message #383958] |
Thu, 17 July 2008 19:32 |
Louis Rose 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 #618242 is a reply to message #384239] |
Fri, 18 July 2008 19:05 |
Louis Rose 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 |
Hector Iturria 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 #618616 is a reply to message #384375] |
Mon, 28 July 2008 10:00 |
Louis Rose 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 #618618 is a reply to message #384376] |
Mon, 28 July 2008 11:06 |
Dimitrios Kolovos 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 |
Louis Rose 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.
>>>>
>>>
|
|
| | | | |
Goto Forum:
Current Time: Wed Sep 25 06:28:47 GMT 2024
Powered by FUDForum. Page generated in 0.06314 seconds
|