This section explains the messages output during execution of programs using adapter classes, including the operator responses to the messages.
Messages given while execution is underway are output to the same target output as that of the DISPLAY statement that is specified by UPON SYSERR of COBOL. Refer to "NetCOBOL User's Guide" for the target output of the DISPLAY statement that is specified by UPON SYSERR of COBOL.
Output of the messages given while execution is underway can be suppressed by setting "YES" to the environment variable COBJNI_NOMESSAGE.
The message format is shown below:
Class name information: Message text
Class name information indicates the adapter class in which an error occurred. The format of class name information varies depending on the class type.
Adapter class type | Format | Explanation | |
---|---|---|---|
Class/interface | package-name/ ... /class-name | Class name fully qualified by a package name. Package and class names are separated by "/". | |
Array of basic data type | boolean | [Z | The number of "[" indicates the number of dimensions. For instance, "[[Z" is used for a 2-dimensional array. |
byte | [B | The number of "[" indicates the number of dimensions. | |
char | [C | The number of "[" indicates the number of dimensions. | |
short | [S | The number of "[" indicates the number of dimensions. | |
int | [I | The number of "[" indicates the number of dimensions. | |
long | [J | The number of "[" indicates the number of dimensions. | |
float | [F | The number of "[" indicates the number of dimensions. | |
double | [D | The number of "[" indicates the number of dimensions. | |
Class/interface array | [L package-name/ ... /class-name; | The number of "[" indicates the number of dimensions. A class name fully qualified by a package name is enclosed between "L" and ";". |
The JDK, J2SDK, JRE, or J2RE environment contains an error. Check whether the environment variables PATH and COBJNI_CLASSPATH are correct or whether JDK, J2SDK, JRE, or J2RE is installed properly.
Check whether the program properly invokes the JVM-INIT method or the JVM-ATTACH method.
Check whether the program properly invokes the JVM-TERMINATE method or the JVM-DETACH method.
The J adapter class generator failed. Collect failure information. Please open a support incident to obtain assistance from a Supplier.
The Java class/interface definition contains an error. Check the Java class/interface.
No Java class/interface is found on the search path. Check whether the value of the environment variable (COBJNI_CLASSPATH) is valid.
A memory space shortage occurred in the Java VM. Increase the values of environment variables (COBJNI_MAX_NSTACK, COBJNI_JAVA_STACK, COBJNI_MIN_HEAP, and COBJNI_MAX_HEAP) to increase memory space available for the Java VM.
A constructor was executed in an abstract class. The Java class/interface was probably changed after generation of an adapter class. Check the Java class/interface.
The object specified in the parameter is not a subclass or object of the class. Check the parameter passed to the J-NARROW method.
The Java class/interface was probably changed after generation of an adapter class. Check the Java class/interface.
The J adapter class generator failed. Collect failure information. Please open a support incident to obtain assistance from a Supplier.
The Java class/interface was probably changed after generation of an adapter class. Check the Java class/interface.
The J adapter class generator failed. Collect failure information. Please open a support incident to obtain assistance from a Supplier.
The subscript value is outside the range from "0 to (element count - 1)." Specify a valid subscript.
An attempt was made to set an invalid class object in an array element. Set an object of a valid class. An object of the array element class or its subclass must be set.
The J adapter class generator failed. Collect failure information. Please open a support incident to obtain assistance from a Supplier.
The Java VM detected an execution-time error. Determine the error cause from the exception name and supplementary information and remove it.
The J adapter class generator failed. Collect failure information. Please open a support incident to obtain assistance from a Supplier.
A character code conversion failed while executing the method of the java-lang-String class. Remove the cause of the error by referring to the error code set in $1.
$1 | Description | Programmer response |
---|---|---|
7 | The code row region was insufficient for the converted data. | Ensure the length of the data item is large enough to handle the converted data. |
12 | Not enough space. | Refer to "NetCOBOL Messages"-"B.1 Virtual Memory Shortages". |
22 | There is an inappropriate code in the origin conversion data row. | Check if the character data of the origin conversion data is not incomplete when moved or partially referred. |
42 | There is a non-existent code set in the origin conversion data row. | The origin conversion data is outside of code set. Check whether the data item that use different encoding method is not used by overlapping (REDEFINES phrase) or the binary data is stored other than the character-code. |
Refer to the system errno explanation for the error code other than the table "$1 of CHARACTER CODE CONVERSION ERROR".
Refer to "NetCOBOL User's Guide" for detail of CONVCHR compile option and environment variable
@CBR_CONVERT_CHARACTER.