Informix Error -9450
-9450 Java method invocation failed (%s).
Make sure that the Java method is accessible. That is, it must either be public or be in the same package as the caller.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-9450 fires when a Java method invocation fails — per the official guidance.
- The Java method not being accessible to the caller, per the official
guidance — the direct, named cause; it must be either
publicor in the same package as the caller.
Solutions / Resolution
- Make sure the Java method is accessible — public, or in the same package as the caller, per the official guidance.
Examples
An inaccessible (package-private) method
class MyClass {
static int myMethod(int a) { ... } // -9450: not public, caller in a different package
}
Corrected
public class MyClass {
public static int myMethod(int a) { ... }
}
Diagnostic Checks
- Check the Java method's access modifier and package relative to the calling code, and make it public if needed.
Related Errors / Related Topics
- -9449 — "Java UDR method not found or is not static: (%s)." A related Java-method- invocation error, on the method not existing/being non-static rather than access permissions.
A Java method invocation failed because the method wasn't accessible — make it public or move it into the same package as the caller.