In this blog post, let’s learn about the error message “11239 No compatible methods method-name were found in Java class class-name.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
11239 No compatible methods method-name were found in Java class class-name.
Reason for the Error
During the execution of a CREATE PROCEDURE statement that includes a DYNAMIC RESULT SETS clause that specifies a value greater than 0 (zero), an SPJ method having one or more trailing result sets could not be found in the specified Java class. The SPJ method must be named class-name.method-name and must have a Java type signature that matches the declared SQL parameter types. If the DYNAMIC RESULT SETS clause specifies a value greater than zero, the SPJ method must also have one or more trailing java.sql.ResultSet[] parameters.
Solution
Ensure that the SPJ method exists in the specified class file, and resubmit