This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Struts and the fly likes Null Pointer Exception in StrutsActionProxy on running application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Null Pointer Exception in StrutsActionProxy on running application" Watch "Null Pointer Exception in StrutsActionProxy on running application" New topic
Author

Null Pointer Exception in StrutsActionProxy on running application

Shikha Dhawan
Greenhorn

Joined: Jun 07, 2011
Posts: 10
Hi,

When I run my web application (struts2) , the index page is displayed correctly. When I click the button on the index page, the following error occurs:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
org.apache.struts2.impl.StrutsActionProxy.getErrorMessage(StrutsActionProxy.java:69)
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185)
org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:500)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:434)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.

I'm not able to understand the reason. I'm new to web app development, please help..

Struts.xml :



POM.xml:





Thanks,
Shikha


Best Regards,
Shikha
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9126
    
    9

The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.


Can you show us the complete stack trace?


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Null Pointer Exception in StrutsActionProxy on running application
 
jQuery in Action, 3rd edition