Oracle8i SQLJ Developer's Guide and Reference Release 8.1.5 A64684-01 |
|
This section provides an overview of SQLJ translator messages and exit codes.
There are three major levels of SQLJ messages you may encounter during the translation phase: error, warning, and information. Warning messages can be further broken down into two levels: non-suppressable and suppressable. Therefore, there are four message categories (in order of seriousness):
You can control suppressable warnings and information by using the SQLJ -warn
option, as described below.
Error messages, prefixed by Error:
, indicate that one of the following has been encountered:
VARCHAR
into a java.util.Vector
, using an Oracle JDBC driver)
If errors are encountered during SQLJ translation, then no output is produced (.java
file or profiles) and compilation and customization are not executed.
Non-suppressable warning messages, prefixed by Warning:
, indicate that one of the following has been encountered:
SELECT
statement whose output is not assigned to anything)
SQLJ translation will complete if a non-suppressable warning is encountered but you should analyze the problem and determine if it should be fixed before running the application. If online checking is specified but cannot be completed, offline checking is performed instead.
Suppressable warning messages, also prefixed by Warning:
, indicate that there is a problem with a particular aspect of your application, such as portability. For example, retrieving data from a nullable column into a primitive int
variable. These messages can be suppressed by using the various -warn
option flags:
precision/noprecision
--The noprecision
setting suppresses warnings regarding possible loss of data precision during conversion.
nulls/nonulls
--The nonulls
setting suppresses warnings about possible runtime errors that are due to nullable columns or types.
portable/noportable
--The noportable
setting suppresses warnings regarding SQLJ code that uses Oracle-specific features or may otherwise be non-standard and, therefore, not portable to other environments.
strict/nostrict
--The nostrict
setting suppresses warnings issued if there are fewer columns in a named iterator than in the selected data that is to populate the iterator.
See "Translator Warnings (-warn)" for more information about the -warn
option and how to set the flags.
If you receive warnings during your SQLJ translation, then you can try running the translator again with -warn=none
to see if any of the warnings are of the more serious (non-suppressable) variety.
Informational or status messages prefixed by Info:
do not indicate an error condition. They merely provide additional information about what occurred during the translation phase. These messages can be suppressed by using the -warn
option verbose
flag, as follows:
verbose/noverbose
--The noverbose
setting suppresses status messages that are merely informational and do not indicate error or warning conditions.
Notes: For information about particular error, warning, and information messages, see "Translation Time Messages" and "Runtime Messages". |
Table 9-1 summarizes the categories of error and status messages generated by the SQLJ translator.
In addition to the translator's error, warning, and information messages, SQLJ can produce status messages throughout all phases of SQLJ operation--translation, compilation, and customization. Status messages are output as each file is processed and at each phase of SQLJ operation.
You can control status messages by using the SQLJ -status
option. This option is also discussed in "Real-Time Status Messages (-status)".
The following exit codes are returned by the SQLJ translator to the operating system upon completion:
.sqlj
source file to the resulting .class
file)
ser2class
conversion (the optional conversion of profile files from .ser
files to .class
files)
Notes:
|