Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

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

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'm not sure if I approve of this interruption. But this tiny ad checks out:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic