You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Chen, Gin" <Gi...@NielsenMedia.com> on 2003/03/06 23:34:46 UTC

RE: JspException: Exception thrown by getter for property XXX of bean YYY?

look further down the trace.
there's a line that says root cause.
the exception after that is your true error.
-Tim

-----Original Message-----
From: Viggio, Alex [mailto:Alex.Viggio@globalcrossing.com]
Sent: Thursday, March 06, 2003 5:19 PM
To: 'Struts Users Mailing List'
Subject: JspException: Exception thrown by getter for property XXX of
bean YYY?


We've had some additions to our production Struts app out for two months,
and today is the first time I have seen this specific error (see below).
I've includded the getter method below. How could an exception be thrown by
this method? It should handle the case where previousUrl is null.

Thanks,
- Alex

*** code ***

    public String getPreviousUrl() {
        return ((null != previousUrl) ? "<a href=\"" + previousUrl +
"\">&#171;</a>" : "&#171;");
    }

*** stack ***

javax.servlet.jsp.JspException: Exception thrown by getter for property
calendar.previousUrl of bean meetingWizardForm
	at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:513)
	at
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
	at
org.apache.struts.taglib.nested.bean.NestedWriteTag.doStartTag(NestedWriteTa
g.java:93)
	at
_0002fmeetingWizardTimes_0002ejspmeetingWizardTimes_jsp_3._jspService(_0002f
meetingWizardTimes_0002ejspmeetingWizardTimes_jsp_3.java:709)
	at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
com.cfer.servlet.ChainControllerServlet.serviceChain(ChainControllerServlet.
java:201)
	at
com.cfer.servlet.ChainControllerServlet.service(ChainControllerServlet.java:
143)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
pl.java:222)
	at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:162)
	at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va: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
com.cfer.servlet.ChainControllerServlet.serviceChain(ChainControllerServlet.
java:201)
	at
com.cfer.servlet.ChainControllerServlet.service(ChainControllerServlet.java:
143)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org