Reply To: DynaView causes NPE in PrimeExceptionHandler

Splash Forums PrettyFaces Users DynaView causes NPE in PrimeExceptionHandler Reply To: DynaView causes NPE in PrimeExceptionHandler

#26664

I’ve no idea what is causing this. The stacktrace clearly shows, that the PrimeExceptionHandler is invoked during the JSF lifecycle. So I see no reason why FacesContext.getCurrentInstance() could return null. Which application server are you deploying to. Perhaps some JSF implementation specific bug?

However, as you may or may not know, PrettyFaces is now part of the Rewrite framework. I strongly recommend to migrate your app to Rewrite. This is very easy if you use the PrettyFaces Compatibility Module as described here:

http://ocpsoft.org/rewrite/docs/migration/prettyfaces3

With Rewrite you can do such things as determining to which URL you want to forward very easily. See the examples here:

http://ocpsoft.org/rewrite/examples/