Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Validation Exception with Teneo 0.7.5 (April 22) when moving to EMF 2.2.2
Validation Exception with Teneo 0.7.5 (April 22) when moving to EMF 2.2.2 [message #85487] Mon, 04 June 2007 23:11 Go to next message
Eclipse UserFriend
Originally posted by: sprakash.tibco.com

Moved to EMF Ecore 2.2.2, and now when trying to save Resources, I get the
following StoreValidationException:

org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
com.tibco.matrix.models.componentmodel.impl.ResourcesTypeImp l@5b1426{hibernate://?dsname=amx50&query1=FROM
AdminCluster cluster left join fetch cluster.plugins plugin where
plugin.name = 'amxadministrator'#//@component/@resources}
The ID '1' of
' com.tibco.matrix.models.componentmodel.impl.UiResourceTypeIm pl@14af469{hibernate://?dsname=amx50&query1=FROM
AdminCluster cluster left join fetch cluster.plugins plugin where
plugin.name = 'amxadministrator'#1}' collides with that of
' com.tibco.matrix.models.administrationmodel.impl.MatrixAdmin InstanceImpl@154f77b{hibernate://?dsname=amx50&query1=FR OM
AdminCluster cluster left join fetch cluster.plugins plugin where
plugin.name = 'amxadministrator'#1}'

When I look at the code, the validation is being done by
org.eclipse.emf.teneo.resource.NonLoadingDiagnostician which extends (and
uses methods from) org.eclipse.emf.ecore.util.Diagnostician.

Is this a known problem in moving to EMF Ecore 2.2.2? Is there a
workaround? The two objects that are "conflicting" here are actually from
completely different tables i.e. they are not extended from the same model
base class - so it should be ok for them to have the same IDs.

Thanks,

Sundeep
Re: Validation Exception with Teneo 0.7.5 (April 22) when moving to EMF 2.2.2 [message #85502 is a reply to message #85487] Tue, 05 June 2007 07:12 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Is ID an eattribute with the ID property set to true? Afaik, in xml schema the ID attribute is used
to uniquely identify an instance in a xml document (without additional type information), so the id
needs to be unique accross all types in one xml document/resource. This constraint is checked by
emf. So this is more an emf/xml schema than a teneo/hibernate related topic.

gr. Martin

Sundeep Prakash wrote:
> Moved to EMF Ecore 2.2.2, and now when trying to save Resources, I get
> the following StoreValidationException:
>
> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
> com.tibco.matrix.models.componentmodel.impl.ResourcesTypeImp l@5b1426{hibernate://?dsname=amx50&query1=FROM
> AdminCluster cluster left join fetch cluster.plugins plugin where
> plugin.name = 'amxadministrator'#//@component/@resources}
> The ID '1' of
> ' com.tibco.matrix.models.componentmodel.impl.UiResourceTypeIm pl@14af469{hibernate://?dsname=amx50&query1=FROM
> AdminCluster cluster left join fetch cluster.plugins plugin where
> plugin.name = 'amxadministrator'#1}' collides with that of
> ' com.tibco.matrix.models.administrationmodel.impl.MatrixAdmin InstanceImpl@154f77b{hibernate://?dsname=amx50&query1=FR OM
> AdminCluster cluster left join fetch cluster.plugins plugin where
> plugin.name = 'amxadministrator'#1}'
>
> When I look at the code, the validation is being done by
> org.eclipse.emf.teneo.resource.NonLoadingDiagnostician which extends
> (and uses methods from) org.eclipse.emf.ecore.util.Diagnostician.
> Is this a known problem in moving to EMF Ecore 2.2.2? Is there a
> workaround? The two objects that are "conflicting" here are actually
> from completely different tables i.e. they are not extended from the
> same model base class - so it should be ok for them to have the same IDs.
> Thanks,
>
> Sundeep
>
>
>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Validation Exception with Teneo 0.7.5 (April 22) when moving to EMF 2.2.2 [message #85517 is a reply to message #85502] Tue, 05 June 2007 18:10 Go to previous message
Eclipse UserFriend
Originally posted by: sprakash.tibco.com

Thanks Martin, thats probably the cause. If I dont reply soon, my problem
is fixed

thanks again,

Sundeep
Re: Validation Exception with Teneo 0.7.5 (April 22) when moving to EMF 2.2.2 [message #606855 is a reply to message #85487] Tue, 05 June 2007 07:12 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Is ID an eattribute with the ID property set to true? Afaik, in xml schema the ID attribute is used
to uniquely identify an instance in a xml document (without additional type information), so the id
needs to be unique accross all types in one xml document/resource. This constraint is checked by
emf. So this is more an emf/xml schema than a teneo/hibernate related topic.

gr. Martin

Sundeep Prakash wrote:
> Moved to EMF Ecore 2.2.2, and now when trying to save Resources, I get
> the following StoreValidationException:
>
> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
> com.tibco.matrix.models.componentmodel.impl.ResourcesTypeImp l@5b1426{hibernate://?dsname=amx50&query1=FROM
> AdminCluster cluster left join fetch cluster.plugins plugin where
> plugin.name = 'amxadministrator'#//@component/@resources}
> The ID '1' of
> ' com.tibco.matrix.models.componentmodel.impl.UiResourceTypeIm pl@14af469{hibernate://?dsname=amx50&query1=FROM
> AdminCluster cluster left join fetch cluster.plugins plugin where
> plugin.name = 'amxadministrator'#1}' collides with that of
> ' com.tibco.matrix.models.administrationmodel.impl.MatrixAdmin InstanceImpl@154f77b{hibernate://?dsname=amx50&query1=FR OM
> AdminCluster cluster left join fetch cluster.plugins plugin where
> plugin.name = 'amxadministrator'#1}'
>
> When I look at the code, the validation is being done by
> org.eclipse.emf.teneo.resource.NonLoadingDiagnostician which extends
> (and uses methods from) org.eclipse.emf.ecore.util.Diagnostician.
> Is this a known problem in moving to EMF Ecore 2.2.2? Is there a
> workaround? The two objects that are "conflicting" here are actually
> from completely different tables i.e. they are not extended from the
> same model base class - so it should be ok for them to have the same IDs.
> Thanks,
>
> Sundeep
>
>
>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Validation Exception with Teneo 0.7.5 (April 22) when moving to EMF 2.2.2 [message #606857 is a reply to message #85502] Tue, 05 June 2007 18:10 Go to previous message
Sundeep Prakash is currently offline Sundeep PrakashFriend
Messages: 14
Registered: July 2009
Junior Member
Thanks Martin, thats probably the cause. If I dont reply soon, my problem
is fixed

thanks again,

Sundeep
Previous Topic:Validation Exception with Teneo 0.7.5 (April 22) when moving to EMF 2.2.2
Next Topic:[Teneo] Enhancement to provide a single base Exception class for all Teneo exceptions
Goto Forum:
  


Current Time: Mon Jan 25 14:57:25 GMT 2021

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

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

Back to the top