I have a stored procedure which is calling a java jar using "SYSTEM" command. This jar is returning an error code on exception using the "exit(errorCode)" command.
If the error code is lower than 256, I can find in the stored procedure the correct error code (in a smallint variable). Otherwise, a random error code is returned. Is there any limitation causing this behavior ?