commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <>
Subject Re: [BeanUtils] Handling array creation?
Date Thu, 08 Sep 2005 22:37:23 GMT
Beautiful!  Now it works perfectly!

Figures, the problem was just a stupid consequence of the way I was 
writing the test app... ironically, had I put the exact same code in the 
place it will actually wind up being, it would have worked because 
DFTestBean is public there.


Thanks Niall, you've been a huge help in this :)


Niall Pemberton wrote:
> DFTestBean needs to be a public class, otherwise the "write" method in the
> property's descriptor is null.
> Niall
> ----- Original Message ----- 
> From: "Frank W. Zammetti" <>
> Sent: Thursday, September 08, 2005 10:24 PM
>>I can give a nightly a shot when I get home tonight, no problem.  I just
>>made sure I was using 1.7.0, and I am.
>>If you or Thomas, or anyone else, might be inclined, I have a small little
>>test app:
>>It's trying to do this dynamic setting, and I have it working just fine up
>>until the point I call setProperty(), and it seems to do the same thing
>>whether it's PropertyUtils or BeanUtils (slightly different stack trace,
>>but it looks like the same root cause).  I keep getting:
>>java.lang.NoSuchMethodException: Property 'certifications' has no setter
>>So either there is still a type mismatch happening so it thinks there's no
>>appropriate setter, or the actual setter name isn't being calculated
>>properly... I followed through the BeanUtils code, and it looks to be
>>failing to get an accessible method to call to set the property... looks
>>like it gets the descriptor, then fails (returning null) for some reason
>>from the call to getWriteMethod (I'd bet it's the call from there to
>>MethodUtils.getAccessibleMethod() that's really where it breaks down).
>>Just execute go.bat if your on Windows by the way, quick compile and
>>execute with all environment setup done.
>>Ok, time to go home :)
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies

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

View raw message