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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #15178 Wed Nov 14 11:43:53 MST 2007 ted.goddard using renderer-type com.icesoft.faces.Xhtml (ICE-1678)
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/conf/just-ice/faces-config.xml
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #15176 Wed Nov 14 10:23:31 MST 2007 sam.xiao ICE-1678 delegate to other view handler before create its own view
        Files Changed
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/core/src/com/icesoft/faces/application/D2DViewHandler.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #15174 Wed Nov 14 10:04:08 MST 2007 ted.goddard using renderer-type com.icesoft.faces.Xhtml (ICE-1678)
        Files Changed
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/core/conf/just-ice/faces-config.xml

          People

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

            Dates

            • Created:
              Updated:
              Resolved: