posted 15 years ago
I'm trying to use reflection to call various methods based on values in a properties files.
Here is what I'm trying to accomplish:
Here is my code:
I keep getting an IllegalArgumentException from my method.invoke call. I have put in output statements, and the methods being called look right. I have tried using to pass the parameter types in the getMethod call and then using an Object[] as the 2nd param in the method2.invoke, but that does not work either. I can't figure out what is wrong. The parameter types match what I'm declaring. What could be causing this exception?
Thanks for any help you can provide.