jsftemplating
  1. jsftemplating
  2. JSFTEMPLATING-45

view handler throws NPE in createView method when viewId is null.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: LayoutElements
    • Labels:
      None
    • Environment:

      any

      Description

      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.

        Issue Links

          Activity

          Bhavanishankar created issue -
          Hide
          Bhavanishankar added a comment -

          Test case and exception stack trace.

          Show
          Bhavanishankar added a comment - Test case and exception stack trace.
          Bhavanishankar made changes -
          Field Original Value New Value
          Attachment jsftest.war [ 45469 ]
          Attachment server.log [ 45470 ]
          Bhavanishankar made changes -
          Link This issue blocks GLASSFISH-16336 [ GLASSFISH-16336 ]
          Hide
          rogerk added a comment -

          Thanks for the attachments - I'll take a look.

          Show
          rogerk added a comment - Thanks for the attachments - I'll take a look.
          Hide
          rogerk added a comment -

          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
          I am happy to hear that your application works in mojarra.

          Show
          rogerk added a comment - 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 I am happy to hear that your application works in mojarra.
          rogerk made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Won't Fix [ 2 ]
          Bhavanishankar made changes -
          Project glassfish [ 10231 ] jsftemplating [ 10166 ]
          Key GLASSFISH-16334 JSFTEMPLATING-45
          Affects Version/s 3.2 [ 10969 ]
          Assignee rogerk [ rogerk ]
          Component/s LayoutElements [ 10393 ]
          Component/s jsf [ 10638 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Bhavanishankar
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: