Error code 143 on JVM exit

Hello,

I have a program (with multiple threads, running under MS-Windows) which works fine almost all the time.

In one case, it terminated unexpectedly, and the exit code (via ERRORLEVEL) is 143.

There are no other outputs in order to diagnose the problem.

I would like to know what the error code 143 exactly means.

Can anybody give me an advice?

Regards,

Sabrina Werscheid

[423 byte] By [sabrinawerscheida] at [2007-11-26 18:28:31]
# 1
Note: my program doesn't set the error code 143 via System.exit(0) itself, so it must come via the JVM.
sabrinawerscheida at 2007-7-9 6:02:42 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
143 - "Internal field must be valid" http://java.sun.com/javame/reference/docs/cldc-hi-1.1.3-web/doc/porting/html/ErrorCodes.html
zadoka at 2007-7-9 6:02:42 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3

It might be:

1. Some java code was calling System.exit() - Did you search for System.exit in your code (You will be amazed what you will find when other people are invloved...)

2. Some jni code was calling exit(); do you have JNI in your code?

3. An external process was killing the process - Do you have any type of monitor on your process?

4. And the most common I had is when the JVM watches for consol control events by default (such as CTRL_LOGOFF_EVENT) and shuts down if it receives these events... You can prevent this by simply using the -Xrs option at startup.

Hope it helped...

moti_karmonaa at 2007-7-9 6:02:42 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...