Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

StackOverflowError

 
Xinyi Zhang
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
karl koch
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the entire stack trace.. that should give us info on the cause of this problem.
 
Xinyi Zhang
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic