You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by akash agrawal <ak...@yahoo.co.uk> on 2008/04/23 21:12:58 UTC
execAndWait interceptor and setting request attribute throws NPException
Hi,
When I use execAndWait interceptor and set some request attribute in my action, I get NPE:
java.lang.NullPointerException
at org.apache.catalina.connector.Request.setAttribute(Request.java:1376)
at org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:500)
at javax.servlet.ServletRequestWrapper.setAttribute(ServletRequestWrapper.java:283)
Ideas?
Thx,
-Akash
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: execAndWait interceptor and setting request attribute throws
NPException
Posted by Laurie Harper <la...@holoweb.net>.
akash agrawal wrote:
> Hi,
>
> When I use execAndWait interceptor and set some request attribute in my action, I get NPE:
>
> java.lang.NullPointerException
> at org.apache.catalina.connector.Request.setAttribute(Request.java:1376)
> at org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:500)
> at javax.servlet.ServletRequestWrapper.setAttribute(ServletRequestWrapper.java:283)
>
> Ideas?
Don't set that request attribute?... You really need to provide more
information than this. For starters:
- how are you using the execAndWait interceptor (how do you have it
configured)
- what does your action mapping look like?
- how are you setting the request attribute? where? (in your action?)
- what is the request attribute you're setting? what are you setting it
to? and, since it's an NPE, have you *confirmed* that neither the
attribute name nor the value are null?
- *where* is this exception occurring? (we can't tell, because you
truncated the stack trace)
- what does the *complete* stack trace look like?
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org