Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Getting some parsing exceptions.....
Getting some parsing exceptions..... [message #16696] Fri, 27 January 2006 11:37 Go to next message
Shrawanika is currently offline ShrawanikaFriend
Messages: 12
Registered: July 2009
Junior Member
Hi,

Can you help why I am getting these type of errors while evaluating
some
Ocl expressions?....like-

Expression : self.attribute->product(self.attribute)
Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
Collection type conformance failure: (null).(product)
Please fix your code to add using
EClass.getEStructuralFeatures()
instead of EClass.getEReferences()

Expression : Set{self.attribute.name}->product(Set{self.attribute.name})
Error : org.eclipse.emf.ocl.helper.OclParsingException[1]: Collection
type conformance failure: (Set(null)).(product)
Please fix your code to add using
EClass.getEStructuralFeatures()
instead of EClass.getEAttributes()

Expression : Set{self.attribute}->product(Set{self.attribute})
Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
Collection type conformance failure: (Set(null)).(product)
Please fix your code to add using
EClass.getEStructuralFeatures()
instead of EClass.getEAttributes()

Thanks and Regards,
Shrawanika
Re: Getting some parsing exceptions..... [message #16726 is a reply to message #16696] Fri, 27 January 2006 12:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Shrawanika,

This should be changed. Please open a bugzilla to make sure it does.


Shrawanika wrote:

> Hi,
>
> Can you help why I am getting these type of errors while
> evaluating some Ocl expressions?....like-
>
> Expression : self.attribute->product(self.attribute) Error :
> org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (null).(product)
> Please fix your code to add using EClass.getEStructuralFeatures()
> instead of EClass.getEReferences()
>
> Expression : Set{self.attribute.name}->product(Set{self.attribute.name})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection
> type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Expression : Set{self.attribute}->product(Set{self.attribute})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Thanks and Regards,
> Shrawanika
>
>
>
>
Re: Getting some parsing exceptions..... [message #16735 is a reply to message #16696] Fri, 27 January 2006 13:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Shrawanika,

It appears from the OclParsingException that the "attribute" feature does
not have a type (the type is "null"). Is that the case?

Regarding the syserrs about Eclass.getEStructuralFeatures(), yes, please
open a bugzilla.

Thanks,

Christian


Shrawanika wrote:

> Hi,
>
> Can you help why I am getting these type of errors while evaluating
> some
> Ocl expressions?....like-
>
> Expression : self.attribute->product(self.attribute)
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (null).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEReferences()
>
> Expression : Set{self.attribute.name}->product(Set{self.attribute.name})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection
> type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Expression : Set{self.attribute}->product(Set{self.attribute})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Thanks and Regards,
> Shrawanika
Re: Getting some parsing exceptions..... [message #19796 is a reply to message #16726] Thu, 02 February 2006 06:20 Go to previous messageGo to next message
Shrawanika is currently offline ShrawanikaFriend
Messages: 16
Registered: July 2009
Junior Member
Thanks!

I filed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=126144
Re: Getting some parsing exceptions..... [message #19882 is a reply to message #16735] Thu, 02 February 2006 08:51 Go to previous messageGo to next message
Shrawanika is currently offline ShrawanikaFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Christian,

No, the "attribute" feature has type defined (the Type is not "null").
I instantiated UML 1.3 Metamodel. And the attributes have DataType as
their Object Type.
Then, what can be the possible reason for this error:

Expression : self.attribute->product(self.attribute)

Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
Collection type conformance failure: (null).(product)
----------------

Thanks and Regards,
Shrawanika
Re: Getting some parsing exceptions..... [message #20007 is a reply to message #19882] Thu, 02 February 2006 14:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Shrawanika,

If "attribute" is a DataType with multiplicity many, then this should
certainly work. Even if it was a scalar multiplicity, it should be coerced
to a Set type automatically. Looks like a bug, if you care to raise it.

Thanks,

Christian


Shrawanika wrote:

> Hi Christian,
>
> No, the "attribute" feature has type defined (the Type is not
> "null").
> I instantiated UML 1.3 Metamodel. And the attributes have DataType as
> their Object Type.
> Then, what can be the possible reason for this error:
>
> Expression : self.attribute->product(self.attribute)
>
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (null).(product)
> ----------------
>
> Thanks and Regards,
> Shrawanika
Re: Getting some parsing exceptions..... [message #21333 is a reply to message #20007] Fri, 03 February 2006 12:18 Go to previous message
Shrawanika is currently offline ShrawanikaFriend
Messages: 16
Registered: July 2009
Junior Member
I filed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=126336

Thanks,
Shrawanika
Re: Getting some parsing exceptions..... [message #564365 is a reply to message #16696] Fri, 27 January 2006 12:09 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32500
Registered: July 2009
Senior Member
Shrawanika,

This should be changed. Please open a bugzilla to make sure it does.


Shrawanika wrote:

> Hi,
>
> Can you help why I am getting these type of errors while
> evaluating some Ocl expressions?....like-
>
> Expression : self.attribute->product(self.attribute) Error :
> org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (null).(product)
> Please fix your code to add using EClass.getEStructuralFeatures()
> instead of EClass.getEReferences()
>
> Expression : Set{self.attribute.name}->product(Set{self.attribute.name})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection
> type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Expression : Set{self.attribute}->product(Set{self.attribute})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Thanks and Regards,
> Shrawanika
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Getting some parsing exceptions..... [message #564422 is a reply to message #16696] Fri, 27 January 2006 13:17 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Shrawanika,

It appears from the OclParsingException that the "attribute" feature does
not have a type (the type is "null"). Is that the case?

Regarding the syserrs about Eclass.getEStructuralFeatures(), yes, please
open a bugzilla.

Thanks,

Christian


Shrawanika wrote:

> Hi,
>
> Can you help why I am getting these type of errors while evaluating
> some
> Ocl expressions?....like-
>
> Expression : self.attribute->product(self.attribute)
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (null).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEReferences()
>
> Expression : Set{self.attribute.name}->product(Set{self.attribute.name})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection
> type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Expression : Set{self.attribute}->product(Set{self.attribute})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Thanks and Regards,
> Shrawanika
Re: Getting some parsing exceptions..... [message #565323 is a reply to message #16726] Thu, 02 February 2006 06:20 Go to previous message
Shrawanika is currently offline ShrawanikaFriend
Messages: 16
Registered: July 2009
Junior Member
Thanks!

I filed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=126144
Re: Getting some parsing exceptions..... [message #565357 is a reply to message #16735] Thu, 02 February 2006 08:51 Go to previous message
Shrawanika is currently offline ShrawanikaFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Christian,

No, the "attribute" feature has type defined (the Type is not "null").
I instantiated UML 1.3 Metamodel. And the attributes have DataType as
their Object Type.
Then, what can be the possible reason for this error:

Expression : self.attribute->product(self.attribute)

Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
Collection type conformance failure: (null).(product)
----------------

Thanks and Regards,
Shrawanika
Re: Getting some parsing exceptions..... [message #565446 is a reply to message #19882] Thu, 02 February 2006 14:09 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Shrawanika,

If "attribute" is a DataType with multiplicity many, then this should
certainly work. Even if it was a scalar multiplicity, it should be coerced
to a Set type automatically. Looks like a bug, if you care to raise it.

Thanks,

Christian


Shrawanika wrote:

> Hi Christian,
>
> No, the "attribute" feature has type defined (the Type is not
> "null").
> I instantiated UML 1.3 Metamodel. And the attributes have DataType as
> their Object Type.
> Then, what can be the possible reason for this error:
>
> Expression : self.attribute->product(self.attribute)
>
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (null).(product)
> ----------------
>
> Thanks and Regards,
> Shrawanika
Re: Getting some parsing exceptions..... [message #565590 is a reply to message #20007] Fri, 03 February 2006 12:18 Go to previous message
Shrawanika is currently offline ShrawanikaFriend
Messages: 16
Registered: July 2009
Junior Member
I filed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=126336

Thanks,
Shrawanika
Previous Topic:[Announce] EMFT TRANSACTION 1.0.0 I200602021008 is available
Next Topic:[Announce] EMFT OCL 1.0.0 I200602020906 is available
Goto Forum:
  


Current Time: Thu Sep 29 22:01:35 GMT 2022

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

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

Back to the top