Top
NetCOBOL V11.0 J Adapter Class GeneratorUser's Guide
FUJITSU Software

A.3 Messages Output during Execution

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 ";".

Java VM initialization failed.  Check the environment variables (PATH, COBJNI_CLASSPATH) and JDK or JRE install environment.

  • 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.

The current thread could not be connected to Java VM.

  • Check whether the program properly invokes the JVM-INIT method or the JVM-ATTACH method.

The current thread could not be disconnected from Java VM.

  • Check whether the program properly invokes the JVM-TERMINATE method or the JVM-DETACH method.

The adapter class generated by the J adapter class generator contains a Java class name in invalid format.  Contact the J adapter class generator supplier.

  • The J adapter class generator failed. Collect failure information. Please open a support incident to obtain assistance from a Supplier.

A same name is used for a parent and its child in the Java class/interface definition.  Use different names for the parent and child.

  • The Java class/interface definition contains an error. Check the Java class/interface.

A required Java class/interface definition is not found.  Check the environment variable (COBJNI_CLASSPATH).

  • 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.  Increase the values of environment variables (COBJNI_MAX_NSTACK, COBJNI_JAVA_STACK, COBJNI_MIN_HEAP, and COBJNI_MAX_HEAP), then retry.

  • 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.

No Java interface/abstract class instance can be generated.  Check whether the Java class/interface was changed after the J adapter class generator was executed.

  • 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.

Type conversion failed.  Check the parameter passed to the J-NARROW method.

  • The object specified in the parameter is not a subclass or object of the class. Check the parameter passed to the J-NARROW method.

No Java field is found.  Check whether the Java class/interface was changed after execution of the J adapter class generator.

  • The Java class/interface was probably changed after generation of an adapter class. Check the Java class/interface.

Java class initialization failed.  Call the J adapter class generator supplier.

  • The J adapter class generator failed. Collect failure information. Please open a support incident to obtain assistance from a Supplier.

No Java method is found.  Check whether the Java class/interface was changed after execution of the J adapter class generator.

  • The Java class/interface was probably changed after generation of an adapter class. Check the Java class/interface.

The character string could not be fetched from the String object.  Call the J adapter class generator supplier.

  • The J adapter class generator failed. Collect failure information. Please open a support incident to obtain assistance from a Supplier.

The subscript of the array object is invalid.  Specify a subscript within the array range.

  • The subscript value is outside the range from "0 to (element count - 1)." Specify a valid subscript.

The class of the set object is invalid.  Specify a subclass of the array element class.

  • 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.

An internal logical error (inconsistency between the return value and object reference) occurred.  Call the J adapter class generator supplier.

  • The J adapter class generator failed. Collect failure information. Please open a support incident to obtain assistance from a Supplier.

Java VM detected an error.  Remove the error cause.  (exception name:  supplementary information)

  • The Java VM detected an execution-time error. Determine the error cause from the exception name and supplementary information and remove it.

An internal logical error (failure of the error detecting feature) occurred.  Call the J adapter class generator supplier.

  • The J adapter class generator failed. Collect failure information. Please open a support incident to obtain assistance from a Supplier.

Could not convert character encoding. ERRNO:$1

  • 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.

    Table A.1 CHARACTER CODE CONVERSION ERROR

    $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.