You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Raju GVRRG <gv...@gmail.com> on 2004/12/21 16:38:13 UTC
NullPointerException in ActionServlet.java:854
Hi,
I am getting a NullPointerException from ActionServlet's
getRequestProcessor() method.
This happened while my app is up and running. My application served
the requests fine for sometime and suddenly this error message is
getting poped up for all the subsequent requests.
I couldn't able to figure out what happened exactly at the moment my
Application started throwing exception.
Can anybody help me in this.
Regards,
Raju.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: NullPointerException in ActionServlet.java:854
Posted by Raju GVRRG <gv...@gmail.com>.
Hi,
I gone through the code of Action Servlet, below is the portion which
is throwing the exception.
-->
String key = Globals.REQUEST_PROCESSOR_KEY + config.getPrefix();
RequestProcessor processor = (RequestProcessor)
getServletContext().getAttribute(key);
-->
>From the code it is evident that the config.getPrefix() is becoming
null, so getAttribute(key) returns a null and the type cast is
throwing exception.
If my interpretation is not correct, please correct me.
If my interpretation is correct, then can anybody tell me why it is
happening this way (config.getPrefix() returning null)
-- Raju.
On Tue, 21 Dec 2004 21:08:13 +0530, Raju GVRRG <gv...@gmail.com> wrote:
> Hi,
>
> I am getting a NullPointerException from ActionServlet's
> getRequestProcessor() method.
>
> This happened while my app is up and running. My application served
> the requests fine for sometime and suddenly this error message is
> getting poped up for all the subsequent requests.
> I couldn't able to figure out what happened exactly at the moment my
> Application started throwing exception.
>
> Can anybody help me in this.
>
> Regards,
> Raju.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org