|<< Back to previous view|
[JSFTEMPLATING-45] view handler throws NPE in createView method when viewId is null. Created: 10/Apr/11 Updated: 11/Apr/11 Resolved: 11/Apr/11
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|File Attachments:||jsftest.war server.log|
|Participants:||Bhavanishankar and rogerk|
As per the API documentation of ViewHandler (http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/javax/faces/application/ViewHandler.html), createView method is NOT supposed throw NPE when viewId is null.
But the jsftemplating does not seem to be compliant with the specification. It throws NPE when createView(facesContext, null) is called.
The other view handler implementation in com.sun.faces:jsf-impl works fine with null viewId. So, it is evident that jsftemplating should also follow the specification.
I have attached a simple application for reproducing the issue. The application bundles jsftemplating.jar and has a Servlet that invokes viewHandler.createView(context, null); When the application is deployed and servlet is accessed, it results in NPE. (You can deploy to GlassFish and access http://localhost:8080/hellojsf/JSFTestServlet).
I have also attached the exception stack trace.
|Comment by Bhavanishankar [ 10/Apr/11 11:16 PM ]|
Test case and exception stack trace.
|Comment by rogerk [ 11/Apr/11 10:01 AM ]|
Thanks for the attachments - I'll take a look.
|Comment by rogerk [ 11/Apr/11 10:56 AM ]|
Hello. This is not a GlassFish bug. In addition, there is no one here that is supporting jsftemplating project. Your best bet is to file an issue in the jsftemplating project: http://java.net/jira/browse/JSFTEMPLATING