wood burning stoves 2.0*
The moose likes Struts and the fly likes NullPointerException when validate= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "NullPointerException when validate="true" in action mapping" Watch "NullPointerException when validate="true" in action mapping" New topic
Author

NullPointerException when validate="true" in action mapping

Mathur Neni
Ranch Hand

Joined: May 10, 2004
Posts: 33
When I change the validate="true" from validate="false" in the action mapping in struts-config.xml, application is throwing NullPointerException as follows:
TilesRequestP I org.apache.struts.tiles.TilesRequestProcessor Tiles definition factory found for request processor ''.
WebGroup E SRVE0026E: [Servlet Error]-[action]: java.lang.NullPointerException
at org.apache.struts.validator.DynaValidatorForm.validate(DynaValidatorForm.java:141)
at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:942)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
.................
.................
Is there any relation of validate="true" to Tiles/Menus?
Any guess, please?
Stas Sokolov
Ranch Hand

Joined: Apr 13, 2004
Posts: 117

You should add one more method to your form bean
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {


Good luck for yourself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NullPointerException when validate="true" in action mapping