-20212   USER-DEFINED ROUTINE name ENCOUNTERED AN EXCEPTION ATTEMPTING TO LOAD JAVA CLASS class-name FROM JAR jar-name. ORIGINAL EXCEPTION: exception-string

Explanation

A Java exception occurred while DB2® was trying to load a Java class. The error can occur when loading the class that is identified in the EXTERNAL NAME clause, or a referenced class.

The error can also occur when accessing the installed JAR identified in the EXTERNAL NAME clause, or an installed JAR in the Java path of the installed JAR that referenced this class. Possible reasons why this message could occur include:

  • A class was not found.
  • An I/O error occurred when the class loader reads the JAR file.
  • An SQL error occurred when the BLOB that contains the JAR file from the DB2 catalog is being read by the class loader.
name
The specific name of the external Java function or procedure that caused the ClassNotFoundException.
class-name
The Java class that DB2 was trying to load when the error occurred.
jar-name
The JAR file that the class was being loaded from (if any JAR files happen to be involved in the class loading process).
exception-string
The partial text of the underlying JAVA exception of the toString(), which resulted in this ClassNotFoundException (if any class is found in the search).

System action

The statement cannot be processed. A DSNX961 message describing the error will be displayed on the z/OS® system console.

Programmer response

Correct the condition that is reported by the exception-string.

SQLSTATE

46103