NPE with SunRI + Seam + ICEfaces
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
NPE with SunRI + Seam + ICEfaces  XML
Forum Index -> JBoss Seam Integration
Author Message
jessicasant

Joined: 15/01/2007 00:00:00
Messages: 4
Offline


When I try to integrate ICEfaces with my Seam + SunRI application I get the NullPointerException listed below.

The problem can be reproduced using the "icefaces" example bundled witih SEAM 1.1.GA. Reproduction steps are detailed here on the JBoss Seam forum.

This thread mentions that 1.5.2 will address a bunch of Seam integration issues. Any chance this one is included?

Thanks.

- Jess

Jessica Sant
JBoss Operations Network

Code:
 10:41:31,890 ERROR [STDERR] Jan 16, 2007 10:41:31 AM com.sun.faces.config.ConfigureListener isJspTwoOne
 WARNING: Incorrect JSP version found, method getJspApplicationContext does not exist.
 10:41:31,906 ERROR [STDERR] Jan 16, 2007 10:41:31 AM com.sun.faces.config.ConfigureListener contextInitialized
 INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context 'null'
 10:41:31,921 INFO  [ResponseStateManager] using response state manager: com.icesoft.faces.webapp.xmlhttp.ResponseStateManager
 10:41:32,000 INFO  [EARDeployer] Started J2EE application: file:/F:/jboss-4.0.5.GA-ejb3/server/default/deploy/jboss-seam-icefaces.ear
 10:41:37,531 ERROR [STDERR] Jan 16, 2007 10:41:37 AM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
 INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the JSP container.
 10:41:37,531 INFO  [Events] no events.xml file found
 10:41:37,531 ERROR [STDERR] Jan 16, 2007 10:41:37 AM com.sun.faces.lifecycle.LifecycleImpl phase
 WARNING: executePhase(RESTORE_VIEW 1,com.icesoft.faces.context.BridgeFacesContext@1155013) threw exception
 java.lang.NullPointerException
         at com.icesoft.faces.application.D2DViewHandler.calculateRenderKitId(D2DViewHandler.java:696)
         at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:241)
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:170)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
         at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:389)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 ....
 10:41:37,546 ERROR [PersistentFacesServlet] Exception executing lifecycle or setting up persistent context. java.lang.NullPointerException
 javax.faces.FacesException: java.lang.NullPointerException
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:305)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
         at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:389)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 ...
 10:41:37,562 ERROR [SeamExceptionFilter] uncaught exception handled by Seam
 javax.servlet.ServletException: java.lang.NullPointerException
         at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:437)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 10:41:37,562 ERROR [[Persistent Faces Servlet]] Servlet.service() for servlet Persistent Faces Servlet threw exception
 javax.faces.FacesException: java.lang.NullPointerException
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:305)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
         at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:389)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 ...
 Caused by: java.lang.NullPointerException
         at com.icesoft.faces.application.D2DViewHandler.calculateRenderKitId(D2DViewHandler.java:696)
         at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:241)
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:170)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
         ... 25 more
 
ted.goddard

Joined: 26/10/2004 00:00:00
Messages: 684
Offline



This appears to be a JSF 1.2 compatibility issue; we'll reproduce the configuration and investigate (although JSF 1.2 is not yet officially supported with ICEfaces).
[Email]
ted.goddard

Joined: 26/10/2004 00:00:00
Messages: 684
Offline


Adding the constructor as mentioned on the JBoss forum appears sufficient to get the application running (other fixes present in ICEfaces 1.5.2 are likely also required).

--- core/src/com/icesoft/faces/facelets/D2DSeamFaceletViewHandler.java (revision 12910)
+++ core/src/com/icesoft/faces/facelets/D2DSeamFaceletViewHandler.java (working copy)
@@ -1,5 +1,6 @@
package com.icesoft.faces.facelets;

+import javax.faces.application.ViewHandler;

import com.sun.facelets.compiler.Compiler;
import com.sun.facelets.compiler.SAXCompiler;
@@ -17,6 +18,10 @@
// Log instance for this class
private static Log log = LogFactory.getLog(D2DSeamFaceletViewHandler.class);

+ public D2DSeamFaceletViewHandler(ViewHandler delegate) {
+ super(delegate);
+ }
+
protected void faceletInitialize() {

[Email]
 
Forum Index -> JBoss Seam Integration
Go to:   
Powered by JForum 2.1.7ice © JForum Team