wood burning stoves 2.0*
The moose likes Java in General and the fly likes Error code 137 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error code 137" Watch "Error code 137" New topic
Author

Error code 137

Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Anyone know what
<java> exited with status: 137
might mean or where to find the explanation for certain error codes?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

It's very OS- and implementation- specific. For some UNIX JVMs, the exit codes are errno values. 137 is a little big for that, though.


[Jess in Action][AskingGoodQuestions]
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
It could be something internal in the JVM, but it could also mean that the Java code contained

in which case it's up to whoever wrote the program to decide what 137 means. Generally 0 is success and anything else is some sort of error. Unless someone decides to assign different meanings to the numbers - nothing really prevents them from doing so. So I'd look at the source code, if available, and find out where they call System.exit(), and what values they use.
[ December 13, 2007: Message edited by: Jim Yingst ]

"I'm not back." - Bill Harding, Twister
Gaurav Arora
Ranch Hand

Joined: Aug 13, 2007
Posts: 35
Originally posted by Ernest Friedman-Hill:
It's very OS- and implementation- specific. For some UNIX JVMs, the exit codes are errno values. 137 is a little big for that, though.


It means there are two errors so the code becomes 127 + 10 afaik.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
127 means ?
10 means ?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

I really think that Jim's answer is what's happening: the Java program you're running exits with a value 137 by doing System.exit(137).

What the 137 means, depends on the program, so I would start looking in the documentation and/or the source code for that program if you want to know what it means.

As far as I know the errno-values are system-specific, so if it is a Unix errno value, then it's hard to tell what it is without knowing on what system you get this. I have no idea why Gaurav thinks that there are two error codes that are somehow added together. I looked in the C header files on my Linux system and there is nothing that suggests that values larger than 127 means that there are two errors. In fact, the values go up to 131 in my header files.

What program are you running that does this?
[ December 14, 2007: Message edited by: Jesper Young ]

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
It may be a moot point, since the error doesn't seem to be repeatable. We were running a shell script to start WAS and then start an app on WAS. The app has no System.exit(137) in it.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
But does it have System.exit(someVariable) in it?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error code 137
 
Similar Threads
'section' is an unexpected token. Expecting white space. Line 1, position 137.
Errors in Code
f:convertDateTime converter error
J2EE developer guide example"Cart" can not work
session bean -classcast exception