Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext Grannar(method exceeding the 65535 bytes limit)
Xtext Grannar [message #1015346] Thu, 28 February 2013 09:57 Go to next message
rohit ahuja is currently offline rohit ahujaFriend
Messages: 27
Registered: February 2013
Junior Member
Hi All,

I am writing a DSL which has now grown quiet a bit and m getting the below error message:
"The code of method init(IGrammarAccess) is exceeding the 65535 bytes limit" in the Sequencer.java file of the Serializer Folder of the src-gen.

I read in the forum that this was an error, but that is a very old post. Can this be resolved somehow? I dont think i can split the DSL.

I am using Eclipse Indigo.

Thanks,
Rohit Ahuja
Re: Xtext Grannar [message #1015552 is a reply to message #1015346] Fri, 01 March 2013 08:52 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3063
Registered: July 2009
Senior Member
Am 28.02.13 10:58, schrieb rohit ahuja:
> Hi All,
>
> I am writing a DSL which has now grown quiet a bit and m getting the
> below error message:
> "The code of method init(IGrammarAccess) is exceeding the 65535 bytes
> limit" in the Sequencer.java file of the Serializer Folder of the src-gen.
>
> I read in the forum that this was an error, but that is a very old post.
> Can this be resolved somehow? I dont think i can split the DSL.
>
> I am using Eclipse Indigo.
>
> Thanks,
> Rohit Ahuja

Please file a ticket with a reproduceable sample attached. Thanks.

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: Xtext Grannar [message #1015569 is a reply to message #1015552] Fri, 01 March 2013 09:12 Go to previous messageGo to next message
rohit ahuja is currently offline rohit ahujaFriend
Messages: 27
Registered: February 2013
Junior Member
Hi Sebastian,

I am sorry, but i don't think i can attach a sample here, as the DSL is company specific info and i cannot share it on a public forum.
Is there any other way?

Thanks,
Rohit Ahuja
Re: Xtext Grannar [message #1590779 is a reply to message #1015569] Thu, 29 January 2015 06:11 Go to previous messageGo to next message
Puneet Patwari is currently offline Puneet PatwariFriend
Messages: 27
Registered: November 2014
Junior Member
Hi All,

I am facing the exact nature of the problem: "The code of method init(IGrammarAccess) is exceeding the 65535 bytes limit" in the Sequencer.java file of the Serializer Folder of the src-gen.
The reason for the error is because of the JVM specification of a method not exceeding the 640K size. But my grammar is getting inflated and I dont want to split it. Moreover, I cannot attach the project or the grammar as it is company restricted. Sad

Please help in some way.

Regards
Puneet Patwari
Re: Xtext Grannar [message #1590836 is a reply to message #1590779] Thu, 29 January 2015 06:56 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 7406
Registered: July 2009
Senior Member
Hi,

i filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=458705 for that
Re: Xtext Grannar [message #1590838 is a reply to message #1590836] Thu, 29 January 2015 06:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 7406
Registered: July 2009
Senior Member
P.S: see https://www.eclipse.org/forums/index.php/m/1590837 for some opimization tips
Re: Xtext Grannar [message #1590869 is a reply to message #1590838] Thu, 29 January 2015 07:23 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 7406
Registered: July 2009
Senior Member
P.P.S: it would be nice if you could attach a snippet of the generated sequencer to the bug
Re: Xtext Grannar [message #1591027 is a reply to message #1590869] Thu, 29 January 2015 09:20 Go to previous messageGo to next message
Puneet Patwari is currently offline Puneet PatwariFriend
Messages: 27
Registered: November 2014
Junior Member
Hi Christian,

I have attached the conmplete sequencer.java file in the bug. It would be great to hear a solution from you.

Regards
Puneet
Re: Xtext Grannar [message #1591028 is a reply to message #1591027] Thu, 29 January 2015 09:24 Go to previous messageGo to next message
Puneet Patwari is currently offline Puneet PatwariFriend
Messages: 27
Registered: November 2014
Junior Member
Hi Christian

The link that you gave for optimization tips in the message #1590838 above open to a GMF forum. Is that the right link you meant? Surprised

-Puneet
Re: Xtext Grannar [message #1591041 is a reply to message #1591028] Thu, 29 January 2015 09:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 7406
Registered: July 2009
Senior Member
No i mean this one https://www.eclipse.org/forums/index.php/t/944228/
Re: Xtext Grannar [message #1591078 is a reply to message #1591041] Thu, 29 January 2015 09:59 Go to previous message
Puneet Patwari is currently offline Puneet PatwariFriend
Messages: 27
Registered: November 2014
Junior Member
hi Christian

Yeah I had a look at the link and left a question for you there. Wink

Regards
Puneet
Previous Topic:Unresolved cross references with cyclic project references
Next Topic:Method createSequence is exceeding the 65535 bytes limit
Goto Forum:
  


Current Time: Tue Jul 28 08:32:01 GMT 2015

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

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