commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <>
Subject Re: Digester :- Skipping Read Only Property under jdk 1.3.1_09
Date Fri, 05 Dec 2003 00:09:52 GMT
Hi Narinder,

That message is coming out of the BeanUtils library. The message implies
that BeanUtils thinks that the java property is a read-only property,
and therefore cannot be set by Digester.

What's probably happening is that the class you are setting properties
on does not correctly implement the JavaBeans standard, and that earlier
versions of BeanUtils just didn't enforce this.

Given this class:

class Foo {
  public String getAlpha() {...}

  public String getBeta() {...}
  public void setBeta(int betaval) {...}

Alpha is a read-only property.
Beta may well be seen as a "read-only" property too, because it doesn't
comply with the Java Beans standard: the datatype used to "set" the
property is different from the datatype used to "get" the property.

If this is indeed the case, then your options are:
(a) Make the class compliant with the JavaBeans standard, or
(b) Use the CallMethodRule rather than the SetPropertiesRule.

I hope this helps,


On Fri, 2003-12-05 at 12:42, Narinder Gaheer wrote:
> Hi ,
>      We have been successfully using Digester to read in our
> configuration files (under jdk 1.3.1_06).
> We recently moved to jdk 1.3.1_09 and are seeing "Skipping Read Only"
> property
> messages when we turn the debug logging on. Anybody out there who can
> throw
> some light on this message.
> Thanks in advance.
> Narinder

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

View raw message