In this blog post, let’s learn about the error message “11230 Multiple compatible methods named method-name were found in 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
11230 Multiple compatible methods named method-name were found in class class-name.
Reason for the Error
During the execution of a CREATE PROCEDURE statement, multiple SPJ methods were found in the specified Java class. Each SPJ method was named class-name.method-name and had a Java type signature matching the declared SQL parameter types. If the DYNAMIC RESULT SETS clause specified a value greater than zero, each method also had one or more trailing java.sql.ResultSet[]parameters.
Solution
You have two options. Ensure that exactly one SPJ method with the required attributes exists in the specified class file. Or, direct SQL/MX to choose a specific SPJ method by specifying that method’s Java type signature in the EXTERNAL NAME clause. Resubmit the statement