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

        Hide
        Neil Griffin added a comment -

        Forgot to mention that the attachment should simply be unzipped and placed in the "webapps" folder. Don't try and hot-deploy it.

        Show
        Neil Griffin added a comment - Forgot to mention that the attachment should simply be unzipped and placed in the "webapps" folder. Don't try and hot-deploy it.
        Hide
        Sam Xiao added a comment -

        icefaces 1.6 branch has problem loading plain jsf page.
        svn -r 15176: checked in the change of delegating to another view handler before create its own view to 1.6 branch.
        trunk seems fine.

        Show
        Sam Xiao added a comment - icefaces 1.6 branch has problem loading plain jsf page. svn -r 15176: checked in the change of delegating to another view handler before create its own view to 1.6 branch. trunk seems fine.
        Hide
        Ted Goddard added a comment -

        Fix verified in both 1.6 branch and trunk. Note that verification of the ICEfaces-only functionality can be tested by simply replacing icefaces.jar with just-ice.jar in auctionMonitor.

        Show
        Ted Goddard added a comment - Fix verified in both 1.6 branch and trunk. Note that verification of the ICEfaces-only functionality can be tested by simply replacing icefaces.jar with just-ice.jar in auctionMonitor.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: