[jboss-user] [JBoss Seam] - Re: NullPointerException in D2DViewHandler.calculateRenderKi

JessicaSant do-not-reply at jboss.com
Tue Jan 16 10:50:37 EST 2007


I reproduced this using the "icefaces" seam example

environment:
Seam 1.1.GA
JBoss 4.0.5.GA
Sun RI 1.2

I followed the "Running the booking example on JBoss with the JSF 1.2 RI" sticky (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=94738), namely:

1- setup a configuration of JBossAS 4.0.5 to use the SunRI instead of myFaces
2- modified the iceFaces\resources\META-INF\application.xml, commented out the el-api.jar and el-ri.jar:

  | <!-- <module>
  |         <java>el-api.jar</java>
  |     </module>
  |     <module>
  |         <java>el-ri.jar</java>
  |     </module> -->
  |     
3- modified iceFaces\resources\WEB-INF\faces-config.xml to use the SeamELResolver

  | <application>
  |     <el-resolver>org.jboss.seam.jsf.SeamELResolver</el-resolver>
  | </application>
  | 
4- modified iceFaces\resources\WEB-INF\web.xml to use SunRI:

  |     <!-- MyFaces -->
  |     <!--    <listener>
  |         <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  |     </listener> -->
  |     
  |     <!-- JSF RI -->
  |     <listener>
  |         <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
  |     </listener> 
  | 

5- built the ear, then removed the el-ri.jar and el-api.jar from the generated ear.
6- deployed jboss-seam-icefaces.ear and icefaces-ds.xml to the SunRI configured JBossAS
7- when I run, I get a NullPointerException


  | 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 at 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
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002322#4002322

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002322



More information about the jboss-user mailing list