[ 
https://issues.apache.org/struts/browse/STR-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42611
 ] 

paul4christ79 edited comment on STR-3094 at 11/8/07 11:46 PM:
--------------------------------------------------------------

I cannot reproduce the problem in the original or second posting with a 
snapshot of 1.4. I simply get a blank page and no log message as I stated above.

When I do not include a path for a forward tag, I get:
javax.servlet.UnavailableException: Missing path value for input action forward
  o.a.s.ActionServlet.handleValueRequiredException(ActionServlet.java:828)
  o.a.s.ActionServlet.initModuleActions(ActionServlet.java:1393)

When I include a path but leave it blank:
java.lang.IllegalArgumentException: Path  does not start with a "/" character
  at 
o.a.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:373)
  at 
o.a.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:196)
  at 
o.a.s.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:107)

I do not know what could the forward path be null to make PerformForward fail. 
I need to know how to exactly reproduce this.

      was (Author: paul4christ79):
    I cannot reproduce the problem in the original or second posting with a 
snapshot of 1.4. I simply get a blank page and no log message as I stated above.
  
> provide background info on "The path of an ForwardConfig cannot be null"
> ------------------------------------------------------------------------
>
>                 Key: STR-3094
>                 URL: https://issues.apache.org/struts/browse/STR-3094
>             Project: Struts 1
>          Issue Type: Improvement
>    Affects Versions: 1.3.8
>         Environment: linux, j2se v1.6
>            Reporter: Ralf Hauser
>             Fix For: 1.4.0
>
>
> this happens for example if the action in a html:form tag is not existing in 
> the struts-config.xml 
> A reasons for this could be due to a typo.
> Suggestion: if the ForwardConfig lookup in struts-config.xml results in 
> "null", please cite the action string that was used for the lookup .
> The below error message is currently not particularly helpful. Or at least 
> mention something like, "please check your struts-config.xml"
> javax.servlet.ServletException: java.lang.IllegalArgumentException: The path 
> of an ForwardConfig cannot be null
>       
> org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
>       org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
>       org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> root cause
> 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:190)
>       
> org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
>       org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
>       
> org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
>       org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
>       org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to