Description
As pointed out here:
http://activemq.2283324.n4.nabble.com/java-lang-IllegalArgumentException-wrong-number-of-arguments-td4713290.html
Some of the logic used for reflection could lead to an IllegalArgumentException if the groupClass is set to a different object because we do not properly check the that the number of method arguments is correct before invoking the method.