wood burning stoves 2.0*
The moose likes Struts and the fly likes status 500 :java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "status 500 :java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null" Watch "status 500 :java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null" New topic
Author

status 500 :java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null

guthula lakshman
Greenhorn

Joined: Sep 24, 2007
Posts: 21
Hi
i am working in struts1.3 and i am using the struts validation framework .while using i am getting the following error.


java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null
org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:70)
org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


i added the necessary plugin to the validator framework to the struts-config.xml:-


<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
</plug-in>

and in strut-config.xml in action class the i changed like this ie " validate=true" :-

<action
path="/vendorsignup"
type="com.mobitail.ui.action.VendorSignupAction"
name="VendorSignupForm"
scope="request" validate="true" >
<forward name="success" path="/vendor/vendorsignup.jsp"/>
</action>

and in ActionForm i added like this:-


import org.apache.struts.action.ValidatorForm;

public class VendorSignupForm extends ValidatorForm

{

-------------
------------------

}


and i changed the neccessary in struts - validation :-- Eventhough i getting the following error. please give me the suggestion . it's urgent to me.




with Regards
Lakshman


David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I thought if you used "validate='true'" that you needed an "input" attribute--is that no longer the case? (I haven't used Struts 1 for a few years now.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: status 500 :java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null