Description
Java reflection fails to find the method invoked by the client due to incorrect parameter types.
This issue arises when a message request field has a UNION type where one type is "null" and the other type is a primitive like "int". In this case, the class type returned by the getClass(Schema) method in SpecificData is int instead of java.lang.Integer which results in a NoSuchMethodException.