Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [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 #1792658] Fri, 20 July 2018 14:55 Go to next message
Pratiksha Dalal is currently offline Pratiksha DalalFriend
Messages: 21
Registered: May 2018
Junior Member
Hello,
I posted this originally in Sirius forum only to realize that this is actually EMF problem.
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).

The problem is that the genmodel tries to initialize all the variables defined in main package and sub-package in the same method and that's creating problems. In my opinion, the genmodel should have created separate methods to initialize variables in subpackages.

Pointers to any solution or section of any tutorial that touches these aspects, would greatly appreciated!
-Pratiksha

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

Report message to a moderator

Re: Hello, I have hit the "...exceeding the 65535 bytes limit". Any help? [message #1792663 is a reply to message #1792658] Fri, 20 July 2018 15:54 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 1176
Registered: July 2009
Location: Canada
Senior Member

You need to use the genmodel option to "Initialize by loading" (in the Model category of the properties IIRC).

See the org.eclipse.uml2.uml plug-in for an example.

HTH,
Christian
Re: Hello, I have hit the "...exceeding the 65535 bytes limit". Any help? [message #1792665 is a reply to message #1792658] Fri, 20 July 2018 15:58 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6111
Registered: July 2009
Senior Member
Hi

A couple of options may help.

Set Model->Literals Interface to false.
Set Model->Initialize by Loading to true.

Regards

Ed Willink
Re: Hello, I have hit the "...exceeding the 65535 bytes limit". Any help? [message #1792714 is a reply to message #1792663] Mon, 23 July 2018 06:49 Go to previous messageGo to next message
Pratiksha Dalal is currently offline Pratiksha DalalFriend
Messages: 21
Registered: May 2018
Junior Member
Thanks for ur reply will try and let you know
Pratiksha

[Updated on: Mon, 23 July 2018 06:55]

Report message to a moderator

Re: Hello, I have hit the "...exceeding the 65535 bytes limit". Any help? [message #1792730 is a reply to message #1792663] Mon, 23 July 2018 09:52 Go to previous message
Pratiksha Dalal is currently offline Pratiksha DalalFriend
Messages: 21
Registered: May 2018
Junior Member
Thanks Christian and Ed! It solved the issue. Whew!
Previous Topic:Rollback to a previous state of the model
Next Topic:What is EObjectValidator.DynamicEClassValidator good for
Goto Forum:
  


Current Time: Sat Nov 17 01:06:00 GMT 2018

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

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

Back to the top