Error in getMethod for type now try to instantiate an object without argument and list method on this object