Object returnObject=m.invoke(m,args);
                ^^^^public Object invoke(Object obj,
                     Object... args)IllegalArgumentException - if the method is an instance method and the specified object argument is not an instance of the class or interface declaring the underlying method (or of a subclass or implementor thereof);