You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My goal was to have the /404 route treated by some controller. Unfortunately, this mapping causes a NullPointerException.
After some research I figure out that the problem is that the /404 request fired by the ERROR dispatcher is beeing missed along VRaptor code.
You can check the problem inspecting RequestInfo instance located at VRaptor class and RequestInfo instance located at DefaultResourceTranslator class. Usually they are the same instance with the same id. But when handling 404 error mapping URL, these 2 instances are different from each other.
The text was updated successfully, but these errors were encountered:
In order to create a custom 404 page I made the following mapping inside web.xml:
My goal was to have the /404 route treated by some controller. Unfortunately, this mapping causes a NullPointerException.
After some research I figure out that the problem is that the /404 request fired by the ERROR dispatcher is beeing missed along VRaptor code.
You can check the problem inspecting RequestInfo instance located at VRaptor class and RequestInfo instance located at DefaultResourceTranslator class. Usually they are the same instance with the same id. But when handling 404 error mapping URL, these 2 instances are different from each other.
The text was updated successfully, but these errors were encountered: