struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Young, Wayne" <WYo...@metasolv.com>
Subject RE: Digester/BeanUtils weirdness?
Date Thu, 05 Jul 2001 12:58:43 GMT
James,

Not sure if this is your problem, but I had an issue with the wrong property
descriptor being returned for a bean.

Check out the bug report.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1843

Hope this helps.

Wayne
wyoung@metasolv.com



-----Original Message-----
From: james.webster@cardsetc.com [mailto:james.webster@cardsetc.com]
Sent: Tuesday, July 03, 2001 7:09 PM
To: struts-dev@jakarta.apache.org
Subject: Digester/BeanUtils weirdness?


Hello all,

I'm currently using the Digester to instantiate and populate a hierarchy of
JavaBeans from an XML file. I'm noticing some very peculiar behaviour with
the SetProperties rule. Under certain circumstances, the Digester appears
to be ignoring a particular instance of the SetProperties rule that is used
to populate the graph.

When I run my code in a simple command-line test, everything works fine. I
have run it against both the Xerces and JAXP parsers, with identical
results.

When I run my code in an application server (I have tested both Weblogic
and Tomcat with identical outcomes), the SetProperties rule fails to
populate the bean with the values of the corresponding XML element's
attributes. It seems that the problem may actually be with
BeanUtils.populate(), as I have run a modified version of the SetProperties
class that provides more debug output; the names and value of all
attributes in the AttributeList.

I'll continue investigating shortly, by adding some debug code to
BeanUtils.populate(). In the meantime, does anyone have any explanations as
to why BeanUtils.populate() (and perhaps the introspection code it uses to
obtain the setters for the bean's properties) won't work in an application
server environment, but does within a plain JVM environment?

Regards,
James W.

Mime
View raw message