Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.StackOverflowError

 
mohammed rafeeq
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a enhydra framework. (www.enhydra.org)
When I run the ant task to compile my html to .java files it throws an exception like below. ( i run a xmlc task)

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

I am using jdk 1.4.2

but this did not solve the problem. Any leads will be much appreciated
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post the same question to more than one forum; see our explanation here. I've deleted the other copy of this thread.

That said, I'm moving this to the "Other Java Products and Servers" forum, as neither of the places you posted this are appropriate. It just sounds like a bug in this Enhydra thing, and I'd suggest you go talk to them about it.
 
Serkan Demir
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why did you limit stack size of threads by giving a range?
The stack space might be small, eventually you will see an exception of java.lang.StackOverflowError .
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic