commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric BELLARD <>
Subject Problem using beanutils: MethodUtils.invokeMethod throw a null pointer exception
Date Thu, 01 Apr 2004 14:46:19 GMT

I'm using MethodUtils.invokeMethod(Object myObject,
String methodName, Object[] parameters) to do some
reflection in my application and I got the following

I got a null point exception when passing as
parameters a table with a null value inside like this:
 [, , null, avionCargoFret, , ]
The following code inside beanutils send me the
exception when it does getClass the null element of
the table:

       Class parameterTypes [] = new Class[arguments];
        for (int i = 0; i < arguments; i++) {
            parameterTypes[i] = args[i].getClass();

Is this a misuse of the MethodUtils.invokeMethod?
Is this a known limitation of the implementation?
Is  this a bug?
Is there any solution out there?

Thanks by advance.


mobile: 0614952791

Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message