I have a JSF 2 application. There is a NullPointerException
in one page. The logs and stacktrace does not give any useful information. Therefore, I wanted to debug the exact location where the NullPointerException
is thrown.
The stacktrace is here:
java.lang.NullPointerException
at javax.faces.component.UIViewRoot.getViewMap(UIViewRoot.java:1521)
at javax.faces.component.UIViewRoot.getViewMap(UIViewRoot.java:1479)
at com.sun.faces.mgbean.BeanManager$ScopeManager$ViewScopeHandler.handle(BeanManager.java:550)
at com.sun.faces.mgbean.BeanManager$ScopeManager.pushToScope(BeanManager.java:458)
...
The problem is that I cannot enter into UIViewRoot.getViewMap
using debugger.
The debugger shows that it is inside getViewMap
method:
http://dl.dropbox.com/u/103580364/temp/000496.jpg
But the source code referenced shows comment lines:
http://dl.dropbox.com/u/103580364/temp/000495.jpg
I run the application on an embedded Jetty server. Why does the debugger not enter into the real executing code?