You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/05/31 21:01:01 UTC

DO NOT REPLY [Bug 9549] New: - "No getter method for property xxx of bean yyyy" while the bean HAS the method

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=9549>.
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=9549

"No getter method for property xxx of bean yyyy" while the bean HAS the method

           Summary: "No getter method for property xxx of bean yyyy" while
                    the bean HAS the method
           Product: Struts
           Version: 1.0.2 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Controller
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: joseluisr@consistent.com.mx


Got the next exception when called an Action in WebLogic 6.1 SP2: 

<31/05/2002 01:31:09 PM CDT> <Error> <HTTP> <[WebAppServletContext
(427239,EmisionWAR,/EmisionWAR)] Root cause of ServletException
javax.servlet.jsp.JspException: No getter method for property fEmision of bean 
datosComplemForm
        at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517)
        at org.apache.struts.taglib.html.BaseFieldTag.doStartTag
(BaseFieldTag.java:188)
        at jsp_servlet.__datoscomplemview._jspService
(__datoscomplemview.java:177)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:265)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:200)
        at weblogic.servlet.internal.RequestDispatcherImpl.forward
(RequestDispatcherImpl.java:241)
        at org.apache.struts.action.ActionServlet.processActionForward
(ActionServlet.java:1759)
        at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1596)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:265)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:200)
        at weblogic.servlet.internal.WebAppServletContext.invokeServlet
(WebAppServletContext.java:2495)
        at weblogic.servlet.internal.ServletRequestImpl.execute
(ServletRequestImpl.java:2204)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> 

The form-bean uploaded HAS both the getter and setter methods. fEmision, 
strangely, is the very first property of the bean, if I change it to fEmision2 
(and his methods to getFEmision2() and setFEmision2()) the same result happens 
now referencing the new property.

We have constructed previous Views and actions with forms with no problems.

In other forums a cache problem was depicted but in my case the proposed 
solution (changing the name) was not solved.

a section of my struts-config is:

	<form-beans>
		<!--DatosGeneralesForm-->
		<form-bean name="datosGeneralesForm" 
type="sigah.sisic.emision.form.DatosGeneralesForm"/>
		<!--DatosComplemForm-->
		<form-bean name="datosComplemForm" 
type="sigah.sisic.emision.form.DatosComplemForm"/>
	</form-beans>
	<!-- ========== Global Forward Definitions 
============================== -->
	<global-forwards>
		<forward name="index" path="/index.html"/>
	</global-forwards>
	<!-- ========== Action Mapping Definitions 
============================== -->
	<action-mappings>
		<!-- PreDatosGeneralesAction -->
		<action path="/preDatosGenEmision" 
type="sigah.sisic.emision.action.PreDatosGeneralesAction" 
name="datosGeneralesForm" scope="session" validate="false" 
input="polizarioBasicoView.jsp">
			<forward name="success" 
path="/polizarioBasicoView.jsp"/>
			<forward name="error" path="/Error.html"/>
		</action>
		<!-- DatosGeneralesAction -->
		<action path="/datosGenerales" 
type="sigah.sisic.emision.action.DatosGeneralesAction" name="datosComplemForm" 
scope="session" validate="false">
			<forward name="success" path="/datosComplemView.jsp"/>
			<forward name="error" path="/Error.html"/>
		</action>

datosComplemView.jsp is the view I want to display through 
DatosGeneralesAction. The perform method of this Action is succesfully finished 
but the exception is thrown when Struts want to create the form-bean.

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