I just checked locally and it looks good with the latest Struts 7
SNAPSHOT, I would assume you must have some Freemarker leftovers, do
you use Maven to control dependencies?

czw., 31 paź 2024 o 14:43 Greg Huber <gregh3...@gmail.com> napisał(a):
>
> Testing with v7 m9.
>
> Try with a method present but with and a missing *<allowed-methods>*
>
> I see this 404:
>
> Unable to show problem report: java.lang.NullPointerException: Cannot
> invoke "freemarker.template.Template.process(Object, java.io.Writer)"
> because "this.template" is null Class:
> org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler File:
> DefaultDispatcherErrorHandler.java Method: handleErrorInDevMode Line:
> 118 -
> org/apache/struts2/dispatcher/DefaultDispatcherErrorHandler.java:118:-1
>
> in the log
>
> 2024-10-31 13:40:19,370 ERROR org.apache.struts2.dispatcher.Dispatcher
> Dispatcher:logConfigurationException - Could not find action or result:
> /my/mySelect.action
>
> com.opensymphony.xwork2.config.ConfigurationException: Method previous
> for action mySelect is not allowed!
>
> On 31/10/2024 12:57, Lukasz Lenart wrote:
> > 404 is good, NPE is bad, let me try to reproduce this.
> >
> > pt., 25 paź 2024 o 12:56 Greg Huber<gregh3...@gmail.com>  napisał(a):
> >> I noticed, if I have a missing allowed-methods in my struts.xml for DMI,
> >> I get this 404 error
> >>
> >> Status Code 404
> >>
> >> Message: Unable to show problem report: java.lang.NullPointerException
> >> Class: org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler File:
> >> DefaultDispatcherErrorHandler.java Method: handleErrorInDevMode Line:
> >> 118 -
> >> org/apache/struts2/dispatcher/DefaultDispatcherErrorHandler.java:118:-1
> >>
> >>
> >> In the log file it shows:
> >>
> >> 2024-10-25 11:47:38,778 ERROR org.apache.struts2.dispatcher.Dispatcher
> >> Dispatcher:logConfigurationException - Could not find action or result:
> >> /me/myAction.action
> >>
> >> com.opensymphony.xwork2.config.ConfigurationException: Method previous
> >> for action myAction is not allowed!
> >>
> >> at
> >> com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:191)
> >> ~[classes/:?]
> >>
> >> Is the 404 NPE exception correct/expected?
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:dev-unsubscr...@struts.apache.org
> > For additional commands, e-mail:dev-h...@struts.apache.org
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to