commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Radhika Menon" <radsfor...@lycos.com>
Subject Re: Jakarta Commons:Digester - Getting IllegalAccessException
Date Tue, 01 Jul 2003 13:31:18 GMT
Hi ,
I have a bean called RulesConfig which has getters/setters for properties "appName" and "precedenceClass".This
class has "default" access.
Before parsing,I create an object of this bean and push it onto the digester's stack.Then
I call the rule
digester.setProperties matching a pattern, which has to call the setters of appName and precedenceClass.
But,the call to "setAppName" or "setPrecedenceClass" gives the IllegalAccessException.
When I make the class "public", I am not getting this exception.

Any ideas on why I am getting this behaviour ?
Thanks
RM



--------- Original Message ---------

DATE: 01 Jul 2003 10:35:59 +120
From: Simon Kitching <simon@ecnetwork.co.nz>
To: radsforyou@lycos.com
Cc: commons-user@jakarta.apache.org

>Hi,
>
>On Tue, 2003-07-01 at 02:10, Radhika Menon wrote:
>> I am using Digester for parsing xml files in my application.I encounter a "IllegalAccessException"
when it tries to invoke a public method on a "default" access class.
>
>>From memory, I think this happens when the method being called throws an
>exception. You should make sure this is not happening.
>
>If this guess isn't right, please provide more details, like:
>* the digester rules
>* the class being invoked.
>
>Regards,
>
>Simon
>
>



____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

Mime
View raw message