Details
Description
If compressDOM is enabled, the following Exception is thrown:
Dec 10, 2010 9:44:30 AM org.icefaces.impl.context.DOMResponseWriter getOldDocument
SEVERE: Failed to restore old DOM
java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.DocumentImpl cannot be cast to [B
at org.icefaces.impl.context.DOMResponseWriter.getOldDocument(DOMResponseWriter.java:459)
at org.icefaces.impl.context.DOMResponseWriter.getOldDocument(DOMResponseWriter.java:446)
at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:157)
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:968)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1643)
Dec 10, 2010 9:44:30 AM org.icefaces.impl.context.DOMResponseWriter getOldDocument
SEVERE: Failed to restore old DOM
java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.DocumentImpl cannot be cast to [B
at org.icefaces.impl.context.DOMResponseWriter.getOldDocument(DOMResponseWriter.java:459)
at org.icefaces.impl.context.DOMResponseWriter.getOldDocument(DOMResponseWriter.java:446)
at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:157)
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:968)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1643)
Issue Links
- blocks
-
ICE-5756 Google App Engine support
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Bug was introduced when switching from DOM storage in window scope to propagated ViewScope.
+++ src/main/java/org/icefaces/impl/context/DOMResponseWriter.java (working copy)
@@ -439,7 +439,7 @@
serializer.setOutputStream(out);
serializer.serialize(document);
data = out.toByteArray();
+ facesContext.getViewRoot().getViewMap().put(OLD_DOM, data);
}