Hi i am trying to figure out stackoverflow error.
All i know is the error comes from
org.apache.catalina.core.ApplicationDispatcher.setAttribute on line
278
But I have no idea whats causing it.
What is the best way to trace the error? This is like finding a needle in a hay stack since there are over 50 classes.
How do I know which method is calling this to get an error? (like which method do I want to turn debug mode on to trace this stackoverflow).
It’s hard to nail down the real cause without seeing the stacktrace and interpreting/understanding the repeating patterns.
However, the most common beginner’s mistakes which can cause a
StackOverflowErrorin a JSF webapplication are the following:An invalid
FacesServletmapping. E.g. mapped on*.jspwhile views are by itself already*.jsp. You should map it on something else, e.g.*.jsf. This is not necessary when you’re using JSF2 with Facelets. Both the views and mapping can be*.xhtml.A JSF view file with an invalid file extension. E.g. actually having a
page.jsffile instead of apage.jsporpage.xhtmlwhile theFacesServletis mapped on*.jsf.I dare to bet that yours is caused by either of those causes. Other possible causes usually boils down to own bad code in backing bean classes, but it would usually not have involved container’s internal classes such as
org.apache.catalina.core.ApplicationDispatcherin the repeating part of the trace.