Java's reflection API does not play well with classes vs. types. Some autoboxing can cause runtime errors on this account.
The bean session should anticipate that users might use a wrong type (e.g. Long.class where Long.TYPE corresponding to a long's java type is meant) and catch runtime exceptions, then throw an OperatorException with a useful diagnostic message.