p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Java > Java and JDK > J2EE
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 10th, 2006, 01:52 PM
Registered User
 
Join Date: Aug 2006
Location: , , .
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.
java.lang.StackOverflowError
     [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.

-rafeeq(md_rafeeq@yahoo.com)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old August 10th, 2006, 04:34 PM
Friend of Wrox
 
Join Date: Jan 2006
Location: San Francisco, CA, USA.
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
http://www.jonemerson.net/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
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 01:51 PM
java.lang.Runtime mudasirw J2EE 1 August 2nd, 2005 03:14 AM
Root Cause:java.lang.NoSuchMethodError: java.util. anees81 JSP Basics 2 January 22nd, 2004 01:49 AM



All times are GMT -4. The time now is 01:13 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc