SQL/MX Programming Manual for Java
SQLJ Error Messages
HP NonStop SQL/MX Programming Manual for Java—523726-003
D-62
Java Syntax Checking (0500-000400—0500-
005000)
0300-001500
Cause. SQLJ received an error while trying to rename the profile.
Effect. SQLJ cannot rename the profile.
Recovery. Report the entire message to your service provider.
Java Syntax Checking (0500-000400—0500-005000)
These messages occur during the verification of the Java syntax during translation.
0500-000400
Cause. SQLJ encountered a #sql construct that did not result in a class declaration.
For example, you placed a #sql statement that is neither an iterator declaration clause
nor a context declaration clause outside a method.
Effect. SQLJ cannot parse the statement in the SQLJ source file.
Recovery. If the statement is an executable clause, like a SELECT or INSERT
statement, instead of a declaration clause, verify that the statement exists inside a
method. See Executable Clauses on page 3-2.
0500-000500
Cause. The class class-name was public, but the name of the SQLJ source file
was something else. The file name must be class-name.sqlj or class-
name.java.
Effect. SQLJ cannot parse the input SQLJ source file.
Recovery. Check the name of the SQLJ source file and resubmit with a name that
matches the public class.
0500-001000
Cause. You tried to index a data field that was not an array type.
[0300-001500] unable to move old-profile-name to
new-profile-name
[0500-000400] Badly placed #sql construct -- not a class
declaration.
[0500-000500] Public class
class-name must be defined in a
file called
class-name.sqlj or class-name.java
[0500-001000] A non-array type cannot be indexed.