DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=32009>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32009 java.lang.IllegalArgumentException: PropertyUtils is describing the wrong class. Summary: java.lang.IllegalArgumentException: PropertyUtils is describing the wrong class. Product: Commons Version: 1.0 Alpha Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Major Priority: Other Component: Bean Utilities AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] hi! BTW, my email is now [EMAIL PROTECTED], if you need to get ahold of me. I didn't have time to go through that whole re-enrollmet process Faked me out big-time. I tried this in 1.6.1 and 1.7 Beanutils. When I try and describe descendants of my class twbg.glide.model.Component, BeanUtils tries to describe java.awt.Component instead. Notice it trying to access "java.awt.Component.getForeground". AWT is not imported into any of my classes. Throws the following exception: java.lang.IllegalArgumentException: Cannot invoke java.awt.Component.getForeground - object is not an instance of declaring class at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1778) at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1132) at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686) at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715) at org.apache.commons.beanutils.PropertyUtilsBean.describe(PropertyUtilsBean.java:280) at org.apache.commons.beanutils.PropertyUtils.describe(PropertyUtils.java:156) at twbg.glide.xml.Xmler.createElement(Xmler.java:92) at twbg.notify.model.ViewMprAuditIsbnTest.testToXml(ViewMprAuditIsbnTest.java:70) at twbg.notify.model.ViewMprAuditIsbnTest.main(ViewMprAuditIsbnTest.java:36) ========================================================================== Here's the test I'm executing: public class ViewMprAuditIsbn extends twbg.glide.model.Component { ... public class ViewMprAuditIsbnTest extends TestCase { public void testToXml() { ViewMprAuditIsbn view = createTestView(); String xml = Xmler.createElement(view); ... public class Xmler { public static String createElement(Value value) { try { Map props = PropertyUtils.describe(value); ... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
