Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mohammad Danish
java.lang.StackOverflow Error while building service
November 13, 2012 8:47 PM
Answer

Mohammad Danish

Rank: Regular Member

Posts: 163

Join Date: March 5, 2012

Recent Posts

Hello everyone,
I am getting the java.lang.StackOverflow (attached) error while building the services.
My service.xml is having approximately 50 tables.
I have tried the http://issues.liferay.com/browse/LPS-19036 solution also but the problem still persist.
My eclipse.ini is also attached.
Please help me out .
Attachments: eclipse.ini (0.5k), log-error.txt (77.1k)
David H Nebinger
RE: java.lang.StackOverflow Error while building service
November 13, 2012 8:58 PM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 8927

Join Date: September 1, 2006

Recent Posts

Your eclipse ini file has no effect on the amount of memory used to invoke java via the ant task (which is used to run service builder).

You'll have to make the change in the ant build scripts to define the size of memory to allocate when building services.
Mohammad Danish
RE: java.lang.StackOverflow Error while building service
November 13, 2012 9:01 PM
Answer

Mohammad Danish

Rank: Regular Member

Posts: 163

Join Date: March 5, 2012

Recent Posts

Thank's for your prompt reply.
David H Nebinger:
You'll have to make the change in the ant build scripts to define the size of memory to allocate when building services.

I am new to this , can you help me out in making changes in ant script??
Vishal Panchal
RE: java.lang.StackOverflow Error while building service
November 15, 2012 10:11 PM
Answer

Vishal Panchal

Rank: Expert

Posts: 279

Join Date: May 20, 2012

Recent Posts

Varsha .:
Thank's for your prompt reply.
David H Nebinger:
You'll have to make the change in the ant build scripts to define the size of memory to allocate when building services.

I am new to this , can you help me out in making changes in ant script??


Hi Varsha ,

As per David's suggestion I think you have to set ANT_OPTS(ant memory allocation parameter).

You should set ANT_OPTS to your system variables under environment variables.

You have to add one new variable having values below.

variable name : ANT_OPTS
variable value : -Xmx1200m -Xms1200m -XX:MaxPermSize=256m

please find the attached snapshot for more details.

Thanks&Regards,
Vishal R. Panchal
Attachment

Attachments: Capture.PNG (84.5k)
Mohammad Danish
RE: java.lang.StackOverflow Error while building service
November 16, 2012 5:37 AM
Answer

Mohammad Danish

Rank: Regular Member

Posts: 163

Join Date: March 5, 2012

Recent Posts

Thanks Vishal Panchal it worked..
Vishal Panchal
RE: java.lang.StackOverflow Error while building service
November 17, 2012 5:22 AM
Answer

Vishal Panchal

Rank: Expert

Posts: 279

Join Date: May 20, 2012

Recent Posts

Varsha .:
Thanks Vishal Panchal it worked..


Varsha ,

Good to here ,,emoticon
Thanks to David as well..!



Thanks&Regards,
Vishal R. Panchal