aspose file tools*
The moose likes Other Java Products and Servers and the fly likes java.lang.StackOverflowError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "java.lang.StackOverflowError" Watch "java.lang.StackOverflowError" New topic
Author

java.lang.StackOverflowError

mohammed rafeeq
Greenhorn

Joined: Oct 17, 2003
Posts: 3
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

Joined: Jul 08, 2003
Posts: 24166
    
  30

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.


[Jess in Action][AskingGoodQuestions]
Serkan Demir
Ranch Hand

Joined: Feb 03, 2005
Posts: 61
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 .


A guy from Turkey<br /><a href="http://blogspot.serkandemir.com" target="_blank" rel="nofollow">http://blogspot.serkandemir.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.StackOverflowError
 
Similar Threads
Large JSPs don't compile
java.lang.StackOverflowError
xmlc
Problem in renameTo() method
Thread stack memory vs heap memory