struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Gin" <Gin.C...@NielsenMedia.com>
Subject RE: JspException: Exception thrown by getter for property XXX of bean YYY?
Date Fri, 07 Mar 2003 15:30:28 GMT
Actually its in the same stack trace as what you posted but further down.
Make sure that you are looking at the console when getting the stack trace
and not the web page.
If you can't find it in the console then look into your log files.
I dont know if the root cause stack trace is application server specific but
either way, there should be something like it that will point you to a
better description of what caused the error.

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


Thanks for the responses. I'm obviously missing some basic JSP debugging
skills ;) Although I've been working on a "50% Struts" app for a year+ (i.e.
tons of scriptlet code in JSPs), I've only just started using Struts
properly with ActionForm's and taglibs so I'm still a noob when it comes to
debugging JSPs. 

When you say, "look further down the trace", do you mean the stack trace I
forwarded in my posting or some other stack dump? I don't see anything
labelled "root cause" in that trace.

-----Original Message-----
From: Chen, Gin [mailto:Gin.Chen@NielsenMedia.com]
Sent: Thursday, March 06, 2003 3:35 PM
To: 'Struts Users Mailing List'
Subject: 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

---------------------------------------------------------------------
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


Mime
View raw message