Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » eInvoke fails
eInvoke fails [message #991607] Wed, 19 December 2012 16:01 Go to next message
Markus Riedl is currently offline Markus Riedl
Messages: 14
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 08:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25740
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
Re: eInvoke fails [message #991937 is a reply to message #991915] Thu, 20 December 2012 09:05 Go to previous messageGo to next message
Markus Riedl is currently offline Markus Riedl
Messages: 14
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 09:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25740
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
Re: eInvoke fails [message #991952 is a reply to message #991944] Thu, 20 December 2012 09:39 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 3841
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 10:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25740
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
>>
>
Re: eInvoke fails [message #991999 is a reply to message #991967] Thu, 20 December 2012 11:25 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 3841
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 11:42 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25740
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
>>>>
>>>
>>
>
Re: eInvoke fails [message #992750 is a reply to message #992007] Sat, 22 December 2012 08:54 Go to previous messageGo to next message
Markus Riedl is currently offline Markus Riedl
Messages: 14
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 14:41 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25740
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
Previous Topic:EMF and Java Templates
Next Topic:How to avoid an EMF Object in XMI serialisation
Goto Forum:
  


Current Time: Thu Apr 17 05:47:57 EDT 2014

Powered by FUDForum. Page generated in 0.10482 seconds