[jboss-user] [JBoss Seam] - entityManager goes null on form submit?

wesleyhales do-not-reply at jboss.com
Thu Aug 9 18:23:24 EDT 2007


have no idea what's going on here:

I am using a custom servlet filter that renders my xhtml to pdf. After the PDF is created I can hit the back button and refresh the page (or go to another page) and still view data from the database on the other seam pages. 
But, when I submit a search or any form in my app I get the following stack trace with entityManager null...


  | 
  | Aug 9, 2007 6:12:35 PM com.sun.faces.lifecycle.LifecycleImpl phase
  | WARNING: executePhase(RESTORE_VIEW 1,org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit@
  | 
  | java.lang.IllegalStateException: entityManager is null
  |   at org.jboss.seam.framework.EntityQuery.validate(EntityQuery.java:33)
  |   at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:585)
  |   at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  |   at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  |   at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
  |   at org.jboss.seam.util.Work.workInTransaction(Work.java:39)
  |   at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
  |   at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
  |   at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
  |   at com.autotrader.empmst.BusinessUnitList_$$_javassist_0.validate(BusinessUnitList_$$_javassist_0.java)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:585)
  |   at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  |   at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
  |   at org.jboss.seam.Component.callComponentMethod(Component.java:2067)
  |   at org.jboss.seam.Component.callCreateMethod(Component.java:1990)
  |   at org.jboss.seam.Component.newInstance(Component.java:1961)
  |   at org.jboss.seam.Component.getInstance(Component.java:1858)
  |   at org.jboss.seam.Component.getInstance(Component.java:1825)
  |   at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
  |   at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
  |   at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
  |   at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
  |   at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  |   at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  |   at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
  |   at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
  |   at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  |   at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  |   at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:196)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:243)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:243)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:243)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:243)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:163)
  |   at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:212)
  |   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  |   at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  |   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  |   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  |   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |   at com.autotrader.filter.RendererFilter.doFilter(RendererFilter.java:195)
  |   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |   at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:253)
  |   at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:210)
  |   at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:164)
  |   at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
  |   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:82)
  |   at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
  |   at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
  |   at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
  |   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.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  |   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  |   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  |   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
  |   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  |   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
  |   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  |   at java.lang.Thread.run(Thread.java:595)
  | ERROR 09-08 18:12:36,337 (ExceptionFilter.java:doFilter:68)  -handling uncaught exception
  | javax.servlet.ServletException: entityManager is null
  |   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
  |   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  |   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |   at com.autotrader.filter.RendererFilter.doFilter(RendererFilter.java:195)
  |   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |   at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:253)
  |   at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:210)
  |   at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:164)
  |   at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
  |   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:82)
  |   at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
  |   at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
  |   at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
  |   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.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  |   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  |   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  |   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
  |   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  |   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
  |   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  |   at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.lang.IllegalStateException: entityManager is null
  |   at org.jboss.seam.framework.EntityQuery.validate(EntityQuery.java:33)
  |   at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:585)
  |   at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  |   at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  |   at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
  |   at org.jboss.seam.util.Work.workInTransaction(Work.java:39)
  |   at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
  |   at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
  |   at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
  |   at com.autotrader.empmst.BusinessUnitList_$$_javassist_0.validate(BusinessUnitList_$$_javassist_0.java)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:585)
  |   at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  |   at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
  |   at org.jboss.seam.Component.callComponentMethod(Component.java:2067)
  |   at org.jboss.seam.Component.callCreateMethod(Component.java:1990)
  |   at org.jboss.seam.Component.newInstance(Component.java:1961)
  |   at org.jboss.seam.Component.getInstance(Component.java:1858)
  |   at org.jboss.seam.Component.getInstance(Component.java:1825)
  |   at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
  |   at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
  |   at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
  |   at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
  |   at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  |   at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  |   at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
  |   at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
  |   at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  |   at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  |   at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:196)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:243)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:243)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:243)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:243)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:163)
  |   at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:212)
  |   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  |   at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  |   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  |   ... 39 more
  | ERROR 09-08 18:12:37,018 (ExceptionFilter.java:doFilter:69)  -exception root cause
  | java.lang.IllegalStateException: entityManager is null
  |   at org.jboss.seam.framework.EntityQuery.validate(EntityQuery.java:33)
  |   at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:585)
  |   at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  |   at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  |   at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
  |   at org.jboss.seam.util.Work.workInTransaction(Work.java:39)
  |   at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
  |   at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
  |   at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
  |   at com.autotrader.empmst.BusinessUnitList_$$_javassist_0.validate(BusinessUnitList_$$_javassist_0.java)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:585)
  |   at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  |   at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
  |   at org.jboss.seam.Component.callComponentMethod(Component.java:2067)
  |   at org.jboss.seam.Component.callCreateMethod(Component.java:1990)
  |   at org.jboss.seam.Component.newInstance(Component.java:1961)
  |   at org.jboss.seam.Component.getInstance(Component.java:1858)
  |   at org.jboss.seam.Component.getInstance(Component.java:1825)
  |   at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
  |   at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
  |   at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
  |   at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
  |   at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  |   at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  |   at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
  |   at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
  |   at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  |   at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  |   at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:196)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:243)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:243)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:243)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:243)
  |   at com.sun.faces.util.DebugUtil.printTree(DebugUtil.java:163)
  |   at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:212)
  |   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  |   at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  |   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  |   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  |   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |   at com.autotrader.filter.RendererFilter.doFilter(RendererFilter.java:195)
  |   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |   at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:253)
  |   at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:210)
  |   at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:164)
  |   at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
  |   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:82)
  |   at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
  |   at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
  |   at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  |   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  |   at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
  |   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.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  |   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  |   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  |   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
  |   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  |   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
  |   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  |   at java.lang.Thread.run(Thread.java:595)
  | 

My components.xml:
<persistence:managed-persistence-context name="dealerProfileEntityManager"
  |                                              auto-create="true"
  |                                              persistence-unit-jndi-name="java:/freedomEntityManagerFactory"/>
  | 
  |     <persistence:managed-persistence-context name="empmstEntityManager"
  |                                              auto-create="true"
  |                                              persistence-unit-jndi-name="java:/empmstEntityManagerFactory"/>

Like I said, I am viewing new data from the database upon visiting different pages in my nav (after getting the stack trace and visiting the good ol' debug page), the entityManager only comes up null when I submit a form.


Any ideas? Thanks! PS: I just checked out the latest from CVS and am still getting the same thing.

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

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



More information about the jboss-user mailing list