Make sure that the SQL and Java signatures that the CREATE FUNCTION or CREATE PROCEDURE statement has provided specify the same number of parameters.