File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes StackOverflowError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "StackOverflowError" Watch "StackOverflowError" New topic
Author

StackOverflowError

Xinyi Zhang
Ranch Hand

Joined: Apr 28, 2001
Posts: 42
My program is facing StackOverflowError by a native method in Tomcat environment. When this error happens, Tomcat crashs. My program is not in a recursing structure. How to solve the problem?


Xinyi
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi,
had this too.
make sure you have TOMCAT_HOME and JAVA_HOME set and all the needed classes in your classpath. this helped with me ! it could also be your code.....
karl
Xinyi Zhang
Ranch Hand

Joined: Apr 28, 2001
Posts: 42
TOMCAT_HOME and JAVA_HOME are set correctly. I have checked others environment settings, no mistakes was found.
The error message is "An unexpected exception has been detected in native code outside the VM."
[This message has been edited by Xinyi Zhang (edited November 26, 2001).]
Naveen Kuppili
Greenhorn

Joined: Oct 19, 2001
Posts: 24
Can you post the entire stack trace.. that should give us info on the cause of this problem.
Xinyi Zhang
Ranch Hand

Joined: Apr 28, 2001
Posts: 42
Browser shows "Internal Server Error".
Console shows "An unexpected exception has been detected in native code outside the VM. #Program counter=0x.... Problematic Thread: prio=1 tid=0x... nid=0x... runnable"
When problem happens, Tomcat is revoved automatically. At the same time, there is a very large size of "core" file (70-200Mb) is created in the native code path.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: StackOverflowError