Hi,
getting the following exeception while using executeAndWait filter

@ line Number 186 i have  the following line of code, which causing the
NPE,
without executeAndWait this Action works pretty much fine.
final HttpServletRequest req = ServletActionContext.getRequest();



[0m13:03:43,031 WARN
 [org.apache.struts2.interceptor.ExecuteAndWaitInterceptor]
(http-localhost/127.0.0.1:8080-1) ExecuteAndWait interceptor has detected
that no result named 'wait' is available. Defaulting to a plain built-in
wait page. It is highly recommend you provide an action-specific or global
result named 'wait'.
13:03:43,043 ERROR [org.egov.web.actions.common.HomepageAction]
(homepageBackgroundThread) Error occurred while preparing Portal Home Page,
Cause : null: java.lang.NullPointerException
at
org.apache.struts2.ServletActionContext.getRequest(ServletActionContext.java:112)
[struts2-core-2.3.15.jar:2.3.15]
at
org.egov.web.actions.common.HomepageAction.execute(HomepageAction.java:186)
[egov-egi.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[rt.jar:1.7.0_25]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_25]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_25]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]
at
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
[xwork-core-2.3.15.jar:2.3.15]
at
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
[xwork-core-2.3.15.jar:2.3.15]
at
org.apache.struts2.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:57)
[struts2-core-2.3.15.jar:2.3.15]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

-- 
Thanks & Regards
Srikanth
Software Developer
--------------------------------
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
--------------------------------

Reply via email to