Informix Error -9442
-9442 Error loading Java UDR class (%s).
Make the following checks to ensure that the class that contains the Java UDR is loaded: o The directory that contains the class must be specified in the CLASSPATH environment variable.
o The jar that contains the class must be correctly installed with the built-in procedure install_jar().
o The jar file has been created correctly, with the proper path to the class.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-9442 fires when the class containing a Java UDR can't be loaded — per the official guidance.
- The class's directory missing from the CLASSPATH environment variable, per the official guidance — the first named cause.
- The jar containing the class not correctly installed with
install_jar(), per the official guidance — the second named cause. - The jar file not created correctly, with the wrong path to the class, per the official guidance — the third named cause.
Solutions / Resolution
- Check that the class's directory is in CLASSPATH, per the official guidance.
- Check that the jar was correctly installed with the
install_jar()built-in procedure, per the official guidance. - Check that the jar file's path to the class is correct, per the official guidance.
Examples
Installing a jar containing a Java UDR class
EXECUTE FUNCTION install_jar('file:/path/to/myudr.jar', 'MyUDRJar', 0);
Diagnostic Checks
- Check CLASSPATH, the jar's
install_jar()registration, and the jar's internal class path, and correct whichever is wrong.
Related Errors / Related Topics
- -9443 — "Cannot find class for type (%s)." A related Java-class-loading error, for UDT type mappings rather than a UDR's implementing class.
- -9449 — "Java UDR method not found or is not static: (%s)." A related Java-UDR registration error, on the method within the class rather than loading the class itself.
The class containing a Java UDR couldn't be loaded — check CLASSPATH, the jar's
install_jar() registration, and the jar's internal class path.