Hi,

I have run into the following Exception:

  | 12:03:57,002 ERROR [SeamPhaseListener] uncaught exception
  | java.lang.NullPointerException
  |         at 
org.jboss.seam.contexts.PassivatedEntity.passivateEntity(PassivatedEntity.java:155)
  |         at org.jboss.seam.contexts.EntityBean.passivate(EntityBean.java:50)
  |         at 
org.jboss.seam.contexts.ServerConversationContext.isAttributeDirty(ServerConversationContext.java:286)
  |         at 
org.jboss.seam.contexts.ServerConversationContext.flush(ServerConversationContext.java:256)
  |         at 
org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:371)
  |         at 
org.jboss.seam.contexts.FacesLifecycle.endRequest(FacesLifecycle.java:83)
  |         at 
org.jboss.seam.jsf.SeamPhaseListener.afterRender(SeamPhaseListener.java:515)
  |         at 
org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:230)
  |         at 
org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
  |         at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
  |         at 
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  |         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  |         at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
  |         at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
  |         at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
  |         at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
  |         at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  |         at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  |         at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  |         at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
  |         at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  |         at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  |         at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  |         at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  |         at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  |         at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
  |         at 
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:853)
  |         at 
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
  |         at 
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1513)
  |         at java.lang.Thread.run(Thread.java:619)
  | 12:03:57,003 ERROR [SeamPhaseListener] swallowing exception
  | java.lang.NullPointerException
  |         at 
org.jboss.seam.contexts.PassivatedEntity.passivateEntity(PassivatedEntity.java:155)
  |         at org.jboss.seam.contexts.EntityBean.passivate(EntityBean.java:50)
  |         at 
org.jboss.seam.contexts.ServerConversationContext.isAttributeDirty(ServerConversationContext.java:286)
  |         at 
org.jboss.seam.contexts.ServerConversationContext.flush(ServerConversationContext.java:256)
  |         at 
org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:371)
  |         at 
org.jboss.seam.contexts.FacesLifecycle.endRequest(FacesLifecycle.java:83)
  |         at 
org.jboss.seam.jsf.SeamPhaseListener.afterRender(SeamPhaseListener.java:515)
  |         at 
org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:230)
  |         at 
org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
  |         at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
  |         at 
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  |         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  |         at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
  |         at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
  |         at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
  |         at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
  |         at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  |         at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  |         at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  |         at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
  |         at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  |         at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  |         at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  |         at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  |         at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  |         at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
  |         at 
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:853)
  |         at 
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
  |         at 
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1513)
  |         at java.lang.Thread.run(Thread.java:619)
  | 

I have traced it in the debugger. The Nullpointer is generated in the 
.ServerConversationContext.flush....

Slightly painful to try and explain, but in essence I am trying to do a 
redirect (by capturing the url through a phase listener) and then redirecting 
through:


  | logger.info("Redirecting to page: " + page);
  |                     facesContext.getExternalContext().redirect(page);
  |                     facesContext.responseComplete();

This is something that used to work quite well in the earlier Seams.

Any suggestions ?

Thanks

Louis

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057631
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to