Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 10th, 2006, 12:52 PM
Registered User
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default java.lang.StackOverFlowError

Dear all
I am using enhydra framework for my webdevelopment.I t compiles all the .html files into .java files.

When I run the ant task to compile it throws an exception like below.

The system is out of resources.
Consult the following stack trace for details.
     [xmlc] Error: compile of generated java code failed
     [xmlc] org.enhydra.xml.xmlc.XMLCException: compile of generated java code failed

On researching I found out that the java stack is getting overflown. I tried to increase the java stack size and os stack size by mentioning

%JAVA% -Xms256M -Xmx512M -Xss1000K -Xoss5000K -cp %CLASSPATH% .........

in %ENHYDRA_HOME%/bin/ant.bat

but this did not solve the problem.

I am using jdk 1.4.2.

any leads for solution will be much appreciated.

Old August 10th, 2006, 03:34 PM
Friend of Wrox
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts

Most of the time, stack overflow errors are due to infinite looping, such as having one function call itself ad infinitum. Is there any chance there's a recursive loop in one of your source files? E.g. a file that includes itself?

Jon Emerson

Similar Threads
Thread Thread Starter Forum Replies Last Post
Root Cause:java.lang.NoSuchMethodError: java.util. anees81 JSP Basics 3 March 1st, 2011 08:55 AM
java.lang.OutOfMemoryError: Java heap space meetkotresh J2EE 1 February 2nd, 2008 01:52 AM
java.lang.StackOverflowError ravi_sri24 XSLT 31 February 1st, 2008 09:48 AM
java.lang.StackOverFlowError mrafeeq Pro Java 0 August 10th, 2006 12:51 PM
java.lang.Runtime mudasirw J2EE 1 August 2nd, 2005 02:14 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.