Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » [SOLVED] Hello, I have hit the "...exceeding the 65535 bytes limit". Any help?
[SOLVED] Hello, I have hit the "...exceeding the 65535 bytes limit". Any help? [message #1792648] Fri, 20 July 2018 13:56 Go to next message
Pratiksha Dalal is currently offline Pratiksha DalalFriend
Messages: 21
Registered: May 2018
Junior Member
Hello,
My project requires hundreds of variables and when I defined them in the ecore and generated the edit/editor codes, I am getting the error "The code of method <my package>.. is exceeding the 65535 bytes limit" error.
Has anybody come across this? Any possible solutions?
I tried splitting my ecore in to multiple, but looks too complex to define them in one genmodel (base classes in one ecore while derived classes in another etc).
Pointers to any solution or section of any tutorial that touches these aspects, would greatly appreciated!
-Pratiksha

[Updated on: Mon, 23 July 2018 09:54]

Report message to a moderator

Re: Hello, I have hit the "...exceeding the 65535 bytes limit". Any help? [message #1792650 is a reply to message #1792648] Fri, 20 July 2018 14:15 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 451
Registered: July 2009
Senior Member
Hi,

This is a pure EMF question that is not related to Sirius. The EMF forum is at https://www.eclipse.org/forums/index.php/f/108/

Regards,


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Hello, I have hit the "...exceeding the 65535 bytes limit". Any help? [message #1792651 is a reply to message #1792650] Fri, 20 July 2018 14:18 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 451
Registered: July 2009
Senior Member
I'm not sure this is exactly the same problem you have, but Ticket #422216 looks similar, and Ed Merk's answer may be of some help.

Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Hello, I have hit the "...exceeding the 65535 bytes limit". Any help? [message #1792652 is a reply to message #1792648] Fri, 20 July 2018 14:19 Go to previous messageGo to next message
Pierre Guilet is currently offline Pierre GuiletFriend
Messages: 176
Registered: June 2017
Senior Member
Hi,
It is not difficult to have many ecore in the same genmodel.
When using EMF generator model wizard in the "Ecore import page" just choose browse workspace and use the ctrl key to select all ecore file you need to be referenced in the genmodel.

Regards,


Pierre Guilet - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Hello, I have hit the "...exceeding the 65535 bytes limit". Any help? [message #1792654 is a reply to message #1792650] Fri, 20 July 2018 14:24 Go to previous messageGo to next message
Pratiksha Dalal is currently offline Pratiksha DalalFriend
Messages: 21
Registered: May 2018
Junior Member
I agree Pierre. Thanks for your quick response. I'll post the question under EMF as well!
Re: Hello, I have hit the "...exceeding the 65535 bytes limit". Any help? [message #1792656 is a reply to message #1792652] Fri, 20 July 2018 14:34 Go to previous messageGo to next message
Pratiksha Dalal is currently offline Pratiksha DalalFriend
Messages: 21
Registered: May 2018
Junior Member
Thanks Pierre. I tried that earlier. I have an enum defined in my original ecore that I'm trying to reference (to define the EType) in another ecore. Does this makes sense, or should I define them in both ecores?
Thanks in advance.

[Updated on: Fri, 20 July 2018 14:39]

Report message to a moderator

Re: Hello, I have hit the "...exceeding the 65535 bytes limit". Any help? [message #1792717 is a reply to message #1792656] Mon, 23 July 2018 07:52 Go to previous messageGo to next message
Pierre Guilet is currently offline Pierre GuiletFriend
Messages: 176
Registered: June 2017
Senior Member
HI,

If you want both your ecore to be independent and usable separatly you will have to duplicate.
If the second one is not to be used independtely but has the original one as a dependency, then using its EType makes sense.

Regards,


Pierre Guilet - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Hello, I have hit the "...exceeding the 65535 bytes limit". Any help? [message #1792718 is a reply to message #1792717] Mon, 23 July 2018 08:05 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6111
Registered: July 2009
Senior Member
Hi

Unless your two ecores will be 100% independent for all time, which is unlikely since you are working on both, I would recommend refactoring the Enum and other common stuff into a common ecore that the two share.

Regards

Ed Willink
Re: Hello, I have hit the "...exceeding the 65535 bytes limit". Any help? [message #1792732 is a reply to message #1792718] Mon, 23 July 2018 09:58 Go to previous message
Pratiksha Dalal is currently offline Pratiksha DalalFriend
Messages: 21
Registered: May 2018
Junior Member
Thanks guys for the help. Suggestions on the EMF thread solved the issue. Hence I am not going the way of two ecores :)

Pratiksha
Previous Topic:Custom node with Sirius
Next Topic:[Solved] Call to Service yields "Invalid" Result
Goto Forum:
  


Current Time: Sat Nov 17 20:25:48 GMT 2018

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

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

Back to the top