I would like to invoke a method, using Java Reflection.
The problem is that this method (which I wrote) throws an Exception (I created a myCustomException).
If you are trying to add a catch clause in the method that executes myMethod.invoke(null, myParam), then that's obviously not the right way of doing it. In this case you're invoking the method via reflection and this is not the place to be catching the exception, as the invoke method throws other exceptions. Once you invoke the method that throws the exception, if there is an exception, it will get thrown and wrapped in an InvocationTargetException, if I recall correctly.
Check the last part of this explanation concerning the InvocationTargetException.