:
- the issue was with default implementation of UnknownHandler which
was throwing NPE by default (throw null)
- that's why everything was fine before 2.3.20,
DefaultActionInvocation always got an exception when was calling
UnknownHandlers
- because of NPE it wasn't possible to have
Thanks Tim!
Great that you was able to find the same solution as described here [1] -
to put some more details here:
- the issue was with default implementation of UnknownHandler which was
throwing NPE by default (throw null)
- that's why everything was fine before 2.3.20, DefaultActionInvoc
After a little fiddling we succeeded to migrate from 2.3.16 to 2.3.20.
Everything seemed fine until we had an exception in one action and
noticed that something had changed.
Exception thrown from an action got lost. It did not reach the
interceptor in charge of exception handling because...
Hi Kal,
The UnknownHandler needs to be defined in struts.xml or
struts-plugin.xml as a bean.
See the struts-plugin.xml file included in the CodeBehind plugin for an
example.
Declaring the bean in struts.xml registers the implementation with the
Struts 2 Container (an XWork Container). It is
I have been trying to implement an UnknownHandler, and I can not seem to
find any documentation on how to integrate it into the framework.
I am using spring for DependencyInjection, so I thought that I could just
add a bean named unknownHandler, but that did not work.
I could not find an example
5 matches
Mail list logo