Details
Description
When attempting to bring up the main page of the attached test app, an exception is thrown in the server logs:
09:08:25,254 ERROR [[Persistent Faces Servlet]] Servlet.service() for servlet Persistent Faces Servlet threw exception
java.lang.RuntimeException: Failed to append element[tag: html; attributes: ] into #document
at com.icesoft.faces.context.DOMResponseWriter.appendToCursor(DOMResponseWriter.java:528)
at com.icesoft.faces.context.DOMResponseWriter.startElement(DOMResponseWriter.java:169)
..............
Caused by: org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.insertBefore(CoreDocumentImpl.java:419)
The attached test case is a very basic web app. It has the required ICEfaces jar and myFaces jars along with this context param which tells jboss that the war bundles the JSF implementation:
<context-param>
<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
<param-value>true</param-value>
</context-param>
09:08:25,254 ERROR [[Persistent Faces Servlet]] Servlet.service() for servlet Persistent Faces Servlet threw exception
java.lang.RuntimeException: Failed to append element[tag: html; attributes: ] into #document
at com.icesoft.faces.context.DOMResponseWriter.appendToCursor(DOMResponseWriter.java:528)
at com.icesoft.faces.context.DOMResponseWriter.startElement(DOMResponseWriter.java:169)
..............
Caused by: org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.insertBefore(CoreDocumentImpl.java:419)
The attached test case is a very basic web app. It has the required ICEfaces jar and myFaces jars along with this context param which tells jboss that the war bundles the JSF implementation:
<context-param>
<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
<param-value>true</param-value>
</context-param>
Activity
Tyler Johnson
created issue -
Tyler Johnson
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [50070000008Iz6w] |
Tyler Johnson
made changes -
Attachment | TestIcefacesMyfaces.war [ 11628 ] |
Tyler Johnson
made changes -
Attachment | TestIcefacesMyfaces.war [ 11628 ] |
Tyler Johnson
made changes -
Attachment | TestIcefacesMyfaces.war [ 11634 ] |
Ken Fyten
made changes -
Assignee Priority | P1 | |
Assignee | Ted Goddard [ ted.goddard ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #18825 | Fri May 01 09:05:13 MDT 2009 | ted.goddard | successful detection of MyFaces disabled JSF1.2 behaviors ( |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/parser/ImplementationUtil.java
|
Ted Goddard
made changes -
Fix Version/s | 1.8.1 [ 10170 ] |
Ted Goddard
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P1 |
The DOMException is with 1.7.2 SP1. Here is the beginning of the exception when using 1.8 RC2:
23:38:44,356 INFO [MainServlet] Adapting to Push environment.
23:38:46,184 ERROR [[Persistent Faces Servlet]] Servlet.service() for servlet Pe
rsistent Faces Servlet threw exception
java.lang.NullPointerException
at com.icesoft.faces.context.DOMResponseWriter.startElement(DOMResponseW
riter.java:199)
at com.icesoft.faces.renderkit.dom_html_basic.XMLRenderer.encodeBegin(XM
LRenderer.java:51)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.jav
a:515)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHa
ndler.java:514)