You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/08/16 19:19:39 UTC

DO NOT REPLY [Bug 11772] New: - IllegalArgumentException when using a.b(key) in property in struts 1.1b2

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11772>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

IllegalArgumentException when using a.b(key) in property in struts 1.1b2

           Summary: IllegalArgumentException when using a.b(key) in property
                    in struts 1.1b2
           Product: Commons
           Version: 1.4 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: wei@ciscoinc.com


I have a example running Struts1.1b2 which is similar to the html-setters.jsp:

    <td align="left">
      <html:text nameid='test' property="testMapBean.mapValue(test)" />
    </td>
Where testMapBean.mapValue(test) is equivalient to a defined bean's
getTestMapBean.getMapValue("test")
This works fine in common 1.3 release. It's broken in common1.4 release. Here 
is Exception using common 1.4 release.

java.lang.IllegalArgumentException: object is not an instance of declaring class
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.commons.beanutils.PropertyUtils.getMappedProperty
(PropertyUtils.java:617)
	at org.apache.commons.beanutils.PropertyUtils.getMappedProperty
(PropertyUtils.java:555)
	at org.apache.commons.beanutils.PropertyUtils.getNestedProperty
(PropertyUtils.java:747)
	at org.apache.commons.beanutils.PropertyUtils.getProperty
(PropertyUtils.java:780)
	at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:728)
	at org.apache.struts.taglib.html.BaseFieldTag.doStartTag
(BaseFieldTag.java:194) ....

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>