[jboss-user] [JBoss Seam] - SeamExtendedManagedPersistencePhaseListener ?

lcoetzee do-not-reply at jboss.com
Mon Jun 18 06:46:38 EDT 2007


Hi,

I am tracking Seam's CVS. Some changes done very recently (over the weekend or Friday 15/06/2007) is creating some weird things.

I see that there is no more SeamExtendedManagedPersistencePhaseListener. I have taken that out from my faces-config.xml. I assume that the normal SeamPhaseListener will do al of these things automatically. However, since I have taken it out I get the following exception:

12:37:09,956 ERROR [SeamPhaseListener] uncaught exception
  | java.lang.NullPointerException
  |         at org.jboss.seam.persistence.HibernatePersistenceProvider.getVersion(HibernatePersistenceProvider.java:62)
  |         at org.jboss.seam.contexts.PassivatedEntity.createPassivatedEntity(PassivatedEntity.java:129)
  |         at org.jboss.seam.contexts.EntityBeanList.clearDirty(EntityBeanList.java:57)
  |         at org.jboss.seam.contexts.Lifecycle.isAttributeDirty(Lifecycle.java:576)
  |         at org.jboss.seam.contexts.ServerConversationContext.flush(ServerConversationContext.java:242)
  |         at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:478)
  |         at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:341)
  |         at org.jboss.seam.jsf.SeamPhaseListener.afterRender(SeamPhaseListener.java:513)
  |         at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:230)
  |         at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:183)
  |         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.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:70)
  |         at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:64)
  |         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
  |         at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:81)
  |         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
  |         at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:62)
  |         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
  |         at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47)
  |         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:56)
  |         at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:127)
  |         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)
  | 


Looking at the Seam example I see that they use 
@PersistenceContext(type=EXTENDED)
  |    private EntityManager em;
  | 

while I use 
  |  @In(create = true, value = "napEntityManager")
  |         private EntityManager em;
  | 

Is the above part of my problem ? 

Regards

Louis


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

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



More information about the jboss-user mailing list