[ 
https://issues.apache.org/struts/browse/STR-3003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40216
 ] 

Joanna Chan commented on STR-3003:
----------------------------------

Hi,
We are facing the same issue when upgrading from JRE 1.3.1_04 to 1.3.1_19. Do 
you know if BeanUtils has the fix in their nighly build? Have you found any 
solutions other than re-write the code? Thanks.

> Having Normal getter and setter methods and Indexed getter method for a same 
> property 
> --------------------------------------------------------------------------------------
>
>                 Key: STR-3003
>                 URL: https://issues.apache.org/struts/browse/STR-3003
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0 Final
>         Environment: OS - Windows XP
>            Reporter: Sasidharan Vijayakumar
>            Priority: Blocker
>
> Application : WEb application
> Struts version : 1.0
> JRE : 1.3.1_03
>       
>          Currently we are moving our apllication to JRE 1.3.1_19 from 
> existing JRE 1.3.1_03.  The code part we are facing problem is  as below
>       public RepeatingRow getRows(int index)
>       {
>           return (RepeatingRow)rows.get(index);
>       }
>      public void setRows(ArrayList al)
>      {
>         if(al == null)
>             return;
>         if(al.size() == 0)
>             return;
>         rows = al;
>         numRows = al.size();
>      }
>      public void setRows(int index, RepeatingRow repeatingRow)
>      {
>             if(rows != null)
>              rows.set(index,repeatingRow);
>      }
> So for the property "rows" we are having normal getter/setter methods and on 
> indexed getter method. The stack trace of the error is given as
> java.lang.NoSuchMethodException: Property 'rows' has no getter method
>         at 
> org.apache.struts.util.PropertyUtils.getSimpleProperty(PropertyUtils.
> java:713)
>         at 
> org.apache.struts.util.PropertyUtils.getNestedProperty(PropertyUtils.
> java:426)
>         at 
> org.apache.struts.util.PropertyUtils.getProperty(PropertyUtils.java:4
> 53)
>         at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:503)
>         at 
> org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:
> 302)
>         at 
> com.gcre.facworld.jsp._jsp._struts._guts._submission.__propertyguts._
> jspService(__propertyguts.java:5882)
>         at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
>         at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:120)
>         at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:138)
>         at 
> weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
> cherImpl.java:293)
>         at 
> weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
> cherImpl.java:196)
>         at 
> weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:117
> )
>         at 
> org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:189)
>         at 
> com.gcre.facworld.jsp._jsp._struts._template.__facworldformpagetempla
> te._jspService(__facworldformpagetemplate.java:817)
>         at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
>         at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:120)
>         at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:138)
>         at 
> weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
> cherImpl.java:293)
>         at 
> weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
> cherImpl.java:196)
>         at 
> weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:117
> )
>         at 
> org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:1
> 45)
>         at 
> com.gcre.facworld.jsp._jsp._struts._frame._submission.__property._jsp
> Service(__property.java:197)
>         at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
>         at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:120)
>         at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:138)
>         at 
> weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
> cherImpl.java:169)
>         at 
> org.apache.struts.action.ActionServlet.processActionForward(ActionSer
> vlet.java:1758)
>         at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:159
> 5)
>         at 
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>         at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:120)
>         at 
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
> textImpl.java:946)
>         at 
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
> textImpl.java:910)
>         at 
> weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
> ContextManager.java:277)
>         at 
> weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
> a:403)
>         at 
> weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:285)
>         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:130)
> Kindly look into it and let me know the workaround or resolution for this. 
> Thanks in advance,
> Sasidharan. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to