File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jvm error code

 
sarveswaran meenakshi sundaram
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

My application quits with a return value of 134. There is not System.exit(..) in the application. Need to find what it means.

Where can one find the list of jvm return codes and their meaning?
Googling didnt help much. Can't find the error list in jvm specification either.

Thanks in advance.
[ August 03, 2007: Message edited by: sarveswaran meenakshi sundaram ]
 
Peter Chase
Ranch Hand
Posts: 1970
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds highly improbable. I've never experienced the JVM exiting silently with a strange error code.

Normally, the JVM exits when all non-daemon threads finish. Under these circumstances, the exit code is zero. If you System.exit(), then the exit code is the argument of exit().

When the JVM crashes, a screed of diagnostics gets sent to the console. So, unless your Java is running in a way where you wouldn't see console output, it does not sound like your JVM has crashed.

I am guessing that in fact your code does System.exit(), but maybe via some third-party library. Or maybe you use something with native code in it, which maybe does a C-library exit().

If it is some library that's calling exit(), then it's an illustration of why calling exit() is generally evil. In my view, only code that is definitely in control of the whole Java program should ever exit(). Library code should not exit(), but should throw, or indicate an error in some other appropriate way.
 
sarveswaran meenakshi sundaram
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks peter !!
Am posting the logs.

All messages to standard o/p are re-directed to a file named stdout2.txt
This is the message I get when the application crashes.

stdout2.txt-Another exception has been detected while we were handling last error.
stdout2.txt-Dumping information about last error:
stdout2.txt-ERROR REPORT FILE = (N/A)
stdout2.txt-PC = 0x0x401ffd99
stdout2.txt-SIGNAL = 11
stdout2.txt-FUNCTION NAME = (N/A)
stdout2.txt-LIBRARY NAME = (N/A)
stdout2.txt-Please check ERROR REPORT FILE for further information, if there is any.
stdout2.txt-Good bye.

Any idea about who logs this n the reason for the crash.

When ever the application crashes,the exit value is 134,137 or 143.
Any idea what these error codes mean?
Am still searching for a comprehensive list of jvm return values.

Thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic