ICEfaces
  1. ICEfaces
  2. ICE-1678

Parser throws NullPointerException when a .jspx page contains HTML markup when using just-ice.jar

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.1, 1.7DR#2
    • Fix Version/s: 1.6.2, 1.7DR#3, 1.7
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Win XP / JDK 1.4 / Tomcat 5.5.17 / Liferay 4.3.0-RC1

      Description

      I don't think this is portlet-specific, but the only way I could reproduce it quickly was to introduce the problem into a portlet I was working with.

      The attached portlet uses just-ice.jar instead of icefaces.jar

      In addition, the JobApplication.jspx page contains the following HTML fragment;
              <p>hello</p>

      And when the portlet is loaded on the page, the portlet is not displayed, and the following stacktrace appears in the console log:

      18:07:23,040 ERROR [Parser:139] Failed to execute JSP lifecycle.
      java.lang.NullPointerException
              at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:703)
              at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:613)
              at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:500)
              at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:162)

      Recommend that the a Log4J warning be logged instead, and that any markup other than <ice: and <f: simply be ignored by the parser.

        Activity

        Neil Griffin created issue -
        Neil Griffin made changes -
        Field Original Value New Value
        Attachment sample-icefaces-sun-portlet.zip [ 10455 ]
        tjohnson made changes -
        Sam Xiao made changes -
        Fix Version/s 1.6.2 [ 10111 ]
        Fix Version/s 1.7DR#3 [ 10112 ]
        Ted Goddard made changes -
        Affects Version/s 1.7DR#2 [ 10110 ]
        Affects Version/s 1.6.1 [ 10070 ]
        Affects Version/s 1.6DR#5 [ 10071 ]
        Ted Goddard made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 1.7 [ 10080 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: