Cause: Support for Java stored procedures and user-defined functions is not installed and configured on this server.
Action: Ensure that a compatible Java Runtime Environment or Java Development Kit for the server is installed. Ensure that the "jdk11_path" configuration parameter is correctly set.
sqlcode: -4300
sqlstate: 42724
Cause: An error occurred while attempting to start or communicate with a Java interpreter. The reason codes are:
Action: Ensure that the Java database configuration parameters (jdk11_path and java_heap_sz) are correctly set. Ensure that a supported Java runtime environment is installed. Ensure that internal DB2 classes (COM.ibm.db2) are not overridden by user classes.
sqlcode: -4301
sqlstate: 58004
Cause: The Java stored procedure or user-defined function aborted with a Java exception. The First Failure Service Log (db2diag.log) contains a Java stack traceback for the aborted method.
Action: Debug the Java method to eliminate the exception.
sqlcode: -4302
sqlstate: 38501
Cause: The CREATE PROCEDURE or CREATE FUNCTION statement that declared this stored procedure or user-defined function had a badly formatted EXTERNAL NAME clause. The external name must be formatted as follows: "package.subpackage.class!method".
Action: Submit a corrected CREATE PROCEDURE or CREATE FUNCTION statement.
sqlcode: -4303
sqlstate: 42724
Cause: The Java class given by the EXTERNAL NAME clause of a CREATE PROCEDURE or CREATE FUNCTION statement could not be loaded. The reason codes are:
Action: Ensure that the compiled ".class" file is installed in the CLASSPATH, for example under "sqllib/function". Ensure it implements the required Java interfaces and is "public".
sqlcode: -4304
sqlstate: 42724
Cause: The Java method given by the EXTERNAL NAME clause of a CREATE PROCEDURE or CREATE FUNCTION statement could not be found. Its declared argument list may not match what the database expects, or it may not be a "public" instance method.
Action: Ensure that a Java instance method exists with the "public" flag and the expected argument list for this call.
sqlcode: -4306
sqlstate: 42724