Re: SEVERE: JSF1005: Cannot instantiate validator of type shortConverter

Splash Forums PrettyFaces Users SEVERE: JSF1005: Cannot instantiate validator of type shortConverter Re: SEVERE: JSF1005: Cannot instantiate validator of type shortConverter

#23310

In you first post there are two exception that are logged. I’m not really sure if one causes the other or if they are independent from each other.

The first exception is:

java.lang.IllegalStateException
at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:506)
at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:164)
at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:164)
at com.ocpsoft.pretty.faces.application.PrettyRedirector.send404(PrettyRedirector.java:110)
at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:108)
at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:109)
at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)

The stacktrace tells us the following storry. It seems like an exception is thrown during invocation of your dynaview method. PrettyFaces catches this exception and tries to send a 404, which fails for some reason. Unfortunately the root cause (the exception thrown during processing dynaview) isn’t logged and therefore hidden by the other error. So perhaps you could try to set a breakpoint in DynaviewEngine:207 to find what is happening there.

Perhaps the ContextNotActiveException is only thrown because of the first error?

@lincoln: So your idea is to execute it either in APPLY_REQUEST_VALUES or RENDER_RESPONSE depending on what follows RESTORE_VIEW?