It appears it is a parameter/object type problem just by guessing at your error message. I cant tell if it’s in the pcml or in the java code.
Check you parm list in your program and make your it jives with the pcmc code generated. FYI, the RPG compiler will generate pcml code for you.
Check the data types your using for your java method arguments and make sure it is compatible with the method signature.