In this blog post, let’s learn about the error message “11231 The method method-name(signature) was not found in or is not a public method of class-name.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
11231 The method method-name(signature) was not found in or is not a public method of class-name.
Reason for the Error
During the execution of a CREATE PROCEDURE statement, the SPJ method 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 matching 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 then resubmit