Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Re-Generation orm annotation file(Generation orm annotation file)
Re-Generation orm annotation file [message #986403] Tue, 20 November 2012 10:36 Go to next message
gabriele boldrin is currently offline gabriele boldrin
Messages: 19
Registered: December 2009
Junior Member
Problem with the generation orm annotation file
I created my ecore file (test.ecore)
Then I created the file ORM (test-orm.annotationsmodel) using the action "Generate ORM Annotation Model"
It is operating correctly.
However, if I modify the model without deleting ORM file (because I don't want to lose the changes made)
and I try to regenerate the ORM file, the system gives me this error:


org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: 
Package with uri 'http://www.eclipse.org/emf/texo/orm/ormannotations' not found. (file:/C:/Users/Gabriele%20Boldrin/workspace/Test/test-orm.annotationsmodel, 5, 465)


In the older version this worked.
Is this a bug?


Enviroment :
Eclipse Java EE IDE Juno Build id: 20120920-0800
EMF 2.8.1
JPA eclipselink 2.4
EMFT Texo (Incubation) 0.1.0.v201211192133

[Updated on: Tue, 20 November 2012 10:36]

Report message to a moderator

Re: Re-Generation orm annotation file [message #986407 is a reply to message #986403] Tue, 20 November 2012 10:44 Go to previous messageGo to next message
Martin Taal is currently offline Martin Taal
Messages: 5334
Registered: July 2009
Senior Member
Hi Gabriele,
I am not sure if there is another underlying error. I worked on the epackage loading before, because I got unwanted
caching, but the orm annotations model should be there.

Can you describe the exact steps? If you delete the orm.xml file then it works? (afaics the error is unrelated to the
orm.xml file being there)

gr. Martin

On 11/20/2012 11:36 AM, gabriele boldrin wrote:
> Problem with the generation orm annotation file
> I created my ecore file (test.ecore)
> Then I created the file ORM (test-orm.annotationsmodel) using the action "Generate ORM Annotation Model" It is operating
> correctly.
> However, if I modify the model without deleting ORM file (because I don't want to lose the changes made)
> and I try to regenerate the ORM file, the system gives me this error:
>
>
>
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http://www.eclipse.org/emf/texo/orm/ormannotations' not found.
> (file:/C:/Users/Gabriele%20Boldrin/workspace/Test/test-orm.annotationsmodel, 5, 465)
>
>
> In the older version this worked. Is this a bug?
>
>
> Enviroment :
> Eclipse Java EE IDE Juno Build id: 20120920-0800
> EMF 2.8.1
> JPA eclipselink 2.4
> EMFT Texo (Incubation) 0.1.0.v201211192133
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: Re-Generation orm annotation file [message #986422 is a reply to message #986407] Tue, 20 November 2012 11:33 Go to previous messageGo to next message
Martin Taal is currently offline Martin Taal
Messages: 5334
Registered: July 2009
Senior Member
Okay I can reproduce this one, will solve it.

gr. Martin

On 11/20/2012 11:44 AM, Martin Taal wrote:
> Hi Gabriele,
> I am not sure if there is another underlying error. I worked on the epackage loading before, because I got unwanted
> caching, but the orm annotations model should be there.
>
> Can you describe the exact steps? If you delete the orm.xml file then it works? (afaics the error is unrelated to the
> orm.xml file being there)
>
> gr. Martin
>
> On 11/20/2012 11:36 AM, gabriele boldrin wrote:
>> Problem with the generation orm annotation file
>> I created my ecore file (test.ecore)
>> Then I created the file ORM (test-orm.annotationsmodel) using the action "Generate ORM Annotation Model" It is operating
>> correctly.
>> However, if I modify the model without deleting ORM file (because I don't want to lose the changes made)
>> and I try to regenerate the ORM file, the system gives me this error:
>>
>>
>>
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
>> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
>> 'http://www.eclipse.org/emf/texo/orm/ormannotations' not found.
>> (file:/C:/Users/Gabriele%20Boldrin/workspace/Test/test-orm.annotationsmodel, 5, 465)
>>
>>
>> In the older version this worked. Is this a bug?
>>
>>
>> Enviroment :
>> Eclipse Java EE IDE Juno Build id: 20120920-0800
>> EMF 2.8.1
>> JPA eclipselink 2.4
>> EMFT Texo (Incubation) 0.1.0.v201211192133
>>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: Re-Generation orm annotation file [message #986425 is a reply to message #986407] Tue, 20 November 2012 11:41 Go to previous messageGo to next message
Martin Taal is currently offline Martin Taal
Messages: 5334
Registered: July 2009
Senior Member
I could not stop myself and entered bugzilla for the things you noted:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=394640
https://bugs.eclipse.org/bugs/show_bug.cgi?id=394639
https://bugs.eclipse.org/bugs/show_bug.cgi?id=394638

The multitenant and java annotations I have solved locally, will commit/push later.
The exception on regenerating the annotations model is still there. Checking that later.

gr. Martin

On 11/20/2012 11:44 AM, Martin Taal wrote:
> Hi Gabriele,
> I am not sure if there is another underlying error. I worked on the epackage loading before, because I got unwanted
> caching, but the orm annotations model should be there.
>
> Can you describe the exact steps? If you delete the orm.xml file then it works? (afaics the error is unrelated to the
> orm.xml file being there)
>
> gr. Martin
>
> On 11/20/2012 11:36 AM, gabriele boldrin wrote:
>> Problem with the generation orm annotation file
>> I created my ecore file (test.ecore)
>> Then I created the file ORM (test-orm.annotationsmodel) using the action "Generate ORM Annotation Model" It is operating
>> correctly.
>> However, if I modify the model without deleting ORM file (because I don't want to lose the changes made)
>> and I try to regenerate the ORM file, the system gives me this error:
>>
>>
>>
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
>> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
>> 'http://www.eclipse.org/emf/texo/orm/ormannotations' not found.
>> (file:/C:/Users/Gabriele%20Boldrin/workspace/Test/test-orm.annotationsmodel, 5, 465)
>>
>>
>> In the older version this worked. Is this a bug?
>>
>>
>> Enviroment :
>> Eclipse Java EE IDE Juno Build id: 20120920-0800
>> EMF 2.8.1
>> JPA eclipselink 2.4
>> EMFT Texo (Incubation) 0.1.0.v201211192133
>>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: Re-Generation orm annotation file [message #986508 is a reply to message #986425] Tue, 20 November 2012 16:57 Go to previous messageGo to next message
Martin Taal is currently offline Martin Taal
Messages: 5334
Registered: July 2009
Senior Member
Hi Gabriele,
I published a new build which should solve all these issues.

Let me know if you encounter any remaining/other issues.

gr. Martin

On 11/20/2012 12:41 PM, Martin Taal wrote:
> I could not stop myself and entered bugzilla for the things you noted:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=394640
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=394639
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=394638
>
> The multitenant and java annotations I have solved locally, will commit/push later.
> The exception on regenerating the annotations model is still there. Checking that later.
>
> gr. Martin
>
> On 11/20/2012 11:44 AM, Martin Taal wrote:
>> Hi Gabriele,
>> I am not sure if there is another underlying error. I worked on the epackage loading before, because I got unwanted
>> caching, but the orm annotations model should be there.
>>
>> Can you describe the exact steps? If you delete the orm.xml file then it works? (afaics the error is unrelated to the
>> orm.xml file being there)
>>
>> gr. Martin
>>
>> On 11/20/2012 11:36 AM, gabriele boldrin wrote:
>>> Problem with the generation orm annotation file
>>> I created my ecore file (test.ecore)
>>> Then I created the file ORM (test-orm.annotationsmodel) using the action "Generate ORM Annotation Model" It is operating
>>> correctly.
>>> However, if I modify the model without deleting ORM file (because I don't want to lose the changes made)
>>> and I try to regenerate the ORM file, the system gives me this error:
>>>
>>>
>>>
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
>>> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
>>> 'http://www.eclipse.org/emf/texo/orm/ormannotations' not found.
>>> (file:/C:/Users/Gabriele%20Boldrin/workspace/Test/test-orm.annotationsmodel, 5, 465)
>>>
>>>
>>> In the older version this worked. Is this a bug?
>>>
>>>
>>> Enviroment :
>>> Eclipse Java EE IDE Juno Build id: 20120920-0800
>>> EMF 2.8.1
>>> JPA eclipselink 2.4
>>> EMFT Texo (Incubation) 0.1.0.v201211192133
>>>
>>
>>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: Re-Generation orm annotation file [message #986584 is a reply to message #986508] Wed, 21 November 2012 04:28 Go to previous messageGo to next message
Pradeep Badiger is currently offline Pradeep Badiger
Messages: 53
Registered: November 2012
Member
Hi Martin,

I ran an update and i get the below error

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.emf.texo,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.annotations.model,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.annotations.model.edit,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.annotations.model.edit.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.annotations.model.editor,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.annotations.model.editor.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.annotations.model.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.datagenerator,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.datagenerator.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.eclipse,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.eclipse.generator,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.eclipse.generator.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.eclipse.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.generator,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.generator.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.json,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.json.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.modelgenerator,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.modelgenerator.edit,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.modelgenerator.edit.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.modelgenerator.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.orm,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.orm.edit,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.orm.edit.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.orm.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.server,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.server.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.source,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.xml,0.1.0.v201211192133
No repository found containing: osgi.bundle,org.eclipse.emf.texo.xml.source,0.1.0.v201211192133
No repository found containing: org.eclipse.update.feature,org.eclipse.emf.texo,0.1.0.v201211192133
No repository found containing: org.eclipse.update.feature,org.eclipse.emf.texo.runtime.core,0.1.0.v201211192133
No repository found containing: org.eclipse.update.feature,org.eclipse.emf.texo.sdk,0.1.0.v201211192133
No repository found containing: org.eclipse.update.feature,org.eclipse.emf.texo.source,0.1.0.v201211192133

Do you know what is the problem?

thanks,
Pradeep V.B.
Re: Re-Generation orm annotation file [message #986620 is a reply to message #986584] Wed, 21 November 2012 08:40 Go to previous messageGo to next message
Martin Taal is currently offline Martin Taal
Messages: 5334
Registered: July 2009
Senior Member
Hi Pradeep,
Hmm, often these things are network connections. I published (a few mins ago) the latest build on the update site (the
latest build is from yesterday). Can you retry?

gr. Martin

On 11/21/2012 05:28 AM, Pradeep Badiger wrote:
> Hi Martin,
>
> I ran an update and i get the below error
>
> An error occurred while collecting items to be installed
> session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
> action=).
> No repository found containing: osgi.bundle,org.eclipse.emf.texo,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.annotations.model,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.annotations.model.edit,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.annotations.model.edit.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.annotations.model.editor,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.annotations.model.editor.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.annotations.model.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.datagenerator,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.datagenerator.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.eclipse,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.eclipse.generator,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.eclipse.generator.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.eclipse.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.generator,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.generator.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.json,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.json.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.modelgenerator,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.modelgenerator.edit,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.modelgenerator.edit.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.modelgenerator.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.orm,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.orm.edit,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.orm.edit.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.orm.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.server,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.server.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.source,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.xml,0.1.0.v201211192133
> No repository found containing: osgi.bundle,org.eclipse.emf.texo.xml.source,0.1.0.v201211192133
> No repository found containing: org.eclipse.update.feature,org.eclipse.emf.texo,0.1.0.v201211192133
> No repository found containing: org.eclipse.update.feature,org.eclipse.emf.texo.runtime.core,0.1.0.v201211192133
> No repository found containing: org.eclipse.update.feature,org.eclipse.emf.texo.sdk,0.1.0.v201211192133
> No repository found containing: org.eclipse.update.feature,org.eclipse.emf.texo.source,0.1.0.v201211192133
>
> Do you know what is the problem?
>
> thanks,
> Pradeep V.B.


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: Re-Generation orm annotation file [message #986742 is a reply to message #986620] Wed, 21 November 2012 14:02 Go to previous messageGo to next message
Pradeep Badiger is currently offline Pradeep Badiger
Messages: 53
Registered: November 2012
Member
Hi Martin,

yes, it was a problem with network connections. I was able to update the texo packages to the latest build. I noticed one more issue. If for example, i have added a new EClass model to the emf model and generated the orm annotation model and then later in the time i removed/renamed this new model, then if i regenerate the orm annotation model, it still has reference to this model with null as the name. I think this applies to all the other types in EMF.Is that the default behaviour? Can we make it sync?

[Updated on: Wed, 21 November 2012 14:03]

Report message to a moderator

Re: Re-Generation orm annotation file [message #986764 is a reply to message #986742] Wed, 21 November 2012 15:00 Go to previous messageGo to next message
Martin Taal is currently offline Martin Taal
Messages: 5334
Registered: July 2009
Senior Member
Hi Pradeep,
I am afraid that this is a missing feature, it should be great to do this automatically. Can you enter a bugzilla for
it? But I am afraid that it will be some time before we get to it..

gr. Martin

On 11/21/2012 03:02 PM, Pradeep Badiger wrote:
> Hi Martin,
>
> yes, it was a problem with network connections. I was able to update the texo packages to the latest build. I noticed
> one more issue. If for example, i have added a new EClass model to the emf model and generated the orm annotation model
> and then later in the time i removed/renamed this new model, then if i regenerate the orm annotation model, it still has
> reference to this model with null as the name. is that the default behaviour? Can we make it sync?


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: Re-Generation orm annotation file [message #986778 is a reply to message #986764] Wed, 21 November 2012 15:37 Go to previous message
Pradeep Badiger is currently offline Pradeep Badiger
Messages: 53
Registered: November 2012
Member
ok.. i have entered a bug for this
https://bugs.eclipse.org/bugs/show_bug.cgi?id=394795

thanks,
Pradeep V.B.
Previous Topic:[Texo] Generation Code
Next Topic:Texo - Roadmap and releases
Goto Forum:
  


Current Time: Mon Sep 22 18:18:54 GMT 2014

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

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