Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » eInvoke fails
eInvoke fails [message #991607] Wed, 19 December 2012 21:01 Go to next message
Markus Riedl is currently offline Markus RiedlFriend
Messages: 20
Registered: November 2012
Junior Member
Hello,

it's me again . For my project I have to use the eInvoke-method to call an Operation for a certain EObject.
But no matter which method I want to invoke it always fails with the Exception:

java.lang.UnsupportedOperationException: eInvoke not implemented for getAllSuperClassifiers

I honestly don't have any clue what goes wrong, the internet doesn't show that much detail
for what "eInvoke not implemented for XZY" means.

Any help would be appreciated.

Greetings
Markus
Re: eInvoke fails [message #991915 is a reply to message #991607] Thu, 20 December 2012 13:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Markus,

Did you generate the model to support "Operation Reflection"?

On 19/12/2012 1:01 PM, Markus Riedl wrote:
> Hello,
>
> it's me again . For my project I have to use the eInvoke-method to
> call an Operation for a certain EObject.
> But no matter which method I want to invoke it always fails with the
> Exception:
>
> java.lang.UnsupportedOperationException: eInvoke not implemented for
> getAllSuperClassifiers
>
> I honestly don't have any clue what goes wrong, the internet doesn't
> show that much detail
> for what "eInvoke not implemented for XZY" means.
>
> Any help would be appreciated.
>
> Greetings
> Markus


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: eInvoke fails [message #991937 is a reply to message #991915] Thu, 20 December 2012 14:05 Go to previous messageGo to next message
Markus Riedl is currently offline Markus RiedlFriend
Messages: 20
Registered: November 2012
Junior Member
Ahhh that seems to be the problem.. quite hidden in fact..

Greetings
Re: eInvoke fails [message #991944 is a reply to message #991937] Thu, 20 December 2012 14:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Markus,

With Xcore-based models, it defaults to true...

On 20/12/2012 6:05 AM, Markus Riedl wrote:
> Ahhh that seems to be the problem.. quite hidden in fact..
>
> Greetings


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: eInvoke fails [message #991952 is a reply to message #991944] Thu, 20 December 2012 14:39 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Ed

Is it easy for OCLinEcore to change this default too, or is this only
possible once genmodel is integrated into the model model?

Regards

Ed Willink

On 20/12/2012 14:19, Ed Merks wrote:
> Markus,
>
> With Xcore-based models, it defaults to true...
>
> On 20/12/2012 6:05 AM, Markus Riedl wrote:
>> Ahhh that seems to be the problem.. quite hidden in fact..
>>
>> Greetings
>
Re: eInvoke fails [message #991967 is a reply to message #991952] Thu, 20 December 2012 15:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Ed,

I added the method
org.eclipse.emf.codegen.ecore.genmodel.GenModel.initialize(boolean) in
2.8 and it's called by when creating new models, i.e.,
org.eclipse.emf.importer.ModelImporter.adjustGenModel(Monitor), and when
a GenModel is inferred from an Xcore model.


On 20/12/2012 6:39 AM, Ed Willink wrote:
> Hi Ed
>
> Is it easy for OCLinEcore to change this default too, or is this only
> possible once genmodel is integrated into the model model?
>
> Regards
>
> Ed Willink
>
> On 20/12/2012 14:19, Ed Merks wrote:
>> Markus,
>>
>> With Xcore-based models, it defaults to true...
>>
>> On 20/12/2012 6:05 AM, Markus Riedl wrote:
>>> Ahhh that seems to be the problem.. quite hidden in fact..
>>>
>>> Greetings
>>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: eInvoke fails [message #991999 is a reply to message #991967] Thu, 20 December 2012 16:25 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Ed

Great. So it's fixed for everything; I had a vague feeling that things
had got better here.

Regards

Ed


On 20/12/2012 15:08, Ed Merks wrote:
> Ed,
>
> I added the method
> org.eclipse.emf.codegen.ecore.genmodel.GenModel.initialize(boolean) in
> 2.8 and it's called by when creating new models, i.e.,
> org.eclipse.emf.importer.ModelImporter.adjustGenModel(Monitor), and
> when a GenModel is inferred from an Xcore model.
>
>
> On 20/12/2012 6:39 AM, Ed Willink wrote:
>> Hi Ed
>>
>> Is it easy for OCLinEcore to change this default too, or is this only
>> possible once genmodel is integrated into the model model?
>>
>> Regards
>>
>> Ed Willink
>>
>> On 20/12/2012 14:19, Ed Merks wrote:
>>> Markus,
>>>
>>> With Xcore-based models, it defaults to true...
>>>
>>> On 20/12/2012 6:05 AM, Markus Riedl wrote:
>>>> Ahhh that seems to be the problem.. quite hidden in fact..
>>>>
>>>> Greetings
>>>
>>
>
Re: eInvoke fails [message #992007 is a reply to message #991999] Thu, 20 December 2012 16:42 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Ed,

Yes, I have to balance keeping things stable for the established user
base, while making useful improvements for the new user base. This
approach of keeping defaults such that the base is stable while setting
improved defaults for new models seemed like a good way to balance those
conflicting needs.


On 20/12/2012 8:25 AM, Ed Willink wrote:
> Hi Ed
>
> Great. So it's fixed for everything; I had a vague feeling that things
> had got better here.
>
> Regards
>
> Ed
>
>
> On 20/12/2012 15:08, Ed Merks wrote:
>> Ed,
>>
>> I added the method
>> org.eclipse.emf.codegen.ecore.genmodel.GenModel.initialize(boolean)
>> in 2.8 and it's called by when creating new models, i.e.,
>> org.eclipse.emf.importer.ModelImporter.adjustGenModel(Monitor), and
>> when a GenModel is inferred from an Xcore model.
>>
>>
>> On 20/12/2012 6:39 AM, Ed Willink wrote:
>>> Hi Ed
>>>
>>> Is it easy for OCLinEcore to change this default too, or is this
>>> only possible once genmodel is integrated into the model model?
>>>
>>> Regards
>>>
>>> Ed Willink
>>>
>>> On 20/12/2012 14:19, Ed Merks wrote:
>>>> Markus,
>>>>
>>>> With Xcore-based models, it defaults to true...
>>>>
>>>> On 20/12/2012 6:05 AM, Markus Riedl wrote:
>>>>> Ahhh that seems to be the problem.. quite hidden in fact..
>>>>>
>>>>> Greetings
>>>>
>>>
>>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: eInvoke fails [message #992750 is a reply to message #992007] Sat, 22 December 2012 13:54 Go to previous messageGo to next message
Markus Riedl is currently offline Markus RiedlFriend
Messages: 20
Registered: November 2012
Junior Member
It maybe default, but the genmodel which I referred to was not under my control (not until now), there they intentionally or not set Operation Reflection to false and even in IBM RSA 8.5 the default is false


Greetings
Re: eInvoke fails [message #992836 is a reply to message #992750] Sat, 22 December 2012 19:41 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Markus,

Yes, unfortunately a model needs to generate support for that and if a
model doesn't do that, your extension of it isn't going to be able to
support operation reflection either.

On 22/12/2012 5:54 AM, Markus Riedl wrote:
> It maybe default, but the genmodel which I referred to was not under
> my control (not until now), there they intentionally or not set
> Operation Reflection to false and even in IBM RSA 8.5 the default is
> false
>
>
> Greetings


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EMF and Java Templates
Next Topic:How to avoid an EMF Object in XMI serialisation
Goto Forum:
  


Current Time: Fri Mar 29 07:04:22 GMT 2024

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

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

Back to the top