The following table provides an overview of the error messages that may be output by the tool Cobol2Java:
No |
Errors |
Error handling |
1 |
|
Check whether all the required JAR files are present in the Cobol2Java |
2 |
|
See 1. |
3 |
|
Please make sure that you possess the necessary data access authorizations for the data medium. |
4 |
|
The name of the data structure is incorrect. Please check. |
5 |
|
The document contains multiple structures with the specified name. In this case, there is no generation. |
If a data element that is not supported by Cobol2Java is encountered then a generic data element of type PicU
is generated. Developers can access the information relating to this element by means of getBytes/setBytes
.
Error handling in the Cobol2Java classes is based on COBOL and is extremely tolerant. Input data longer than the field it is to be stored in is truncated to the destination field length. Invalid inputs, for example the input of an invalid number, result in the generation of a NumberFormatException
.