5 Replies Latest reply on Jan 25, 2010 9:18 AM by blabno

    Seam and EntityManager problem

    Ilya Dyoshin Novice

      Hello.


      I've found a strange problem.  I have an entity and I'm going to the page to edit it. And for this case entity is managed and everything fine (I use EntityHome utility class  for all this tasks). Also I have a joined entities for this one and I'm editing joined entity in the nested conversation. When I save joined entity and  come back to the original page I receive that my original entity is currently don't managed by entityManager. thus when I  try to save it - it trys to save a new one!.


      Any idea?


      and another one problem: I have a problem with my templates. sometimes when rendering via get it doesn't want to read the managed property of entityHome - the error says entityManager is closed.


      I'm using seam-gen project with EAR structure.


      Regards,


      Ilya Dyoshin

        • 1. Re: Seam and EntityManager problem
          Arbi Sookazian Master

          Are you using SMPC with Hibernate manual flush?

          • 2. Re: Seam and EntityManager problem
            Ilya Dyoshin Novice

            Arbi Sookazian wrote on Jan 23, 2010 15:53:


            Are you using SMPC with Hibernate manual flush?


            yes. The default seam-gen project, and in the page.xml I have <begin-conversation flush="manual"/>


            Can you help me with my problem?

            • 3. Re: Seam and EntityManager problem
              Arbi Sookazian Master

              post relevant facelets/beans and stack trace.

              • 4. Re: Seam and EntityManager problem
                Ilya Dyoshin Novice

                I hope for some help. Sometimes it works perfectly. but sometimes generates error - so the system actually, isn't usable in this case :(


                the relevant facelets:


                spr_bankov/edit.xhtml:


                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                     xmlns:ui="http://java.sun.com/jsf/facelets"
                     xmlns:h="http://java.sun.com/jsf/html"
                     xmlns:f="http://java.sun.com/jsf/core"
                     xmlns:s="http://jboss.com/products/seam/taglib"
                     xmlns:rich="http://richfaces.org/rich"
                     template="/layout/template.xhtml" xmlns:a4j="http://richfaces.org/a4j">
                
                     <ui:define name="body">
                
                          <h1>Довідник банківcьких установ</h1>
                
                          <rich:panel width="500">
                          <a4j:outputPanel id="editorContent" layout="inline">      
                               <ui:decorate template="/crud/spr/contragents/edit_form.xhtml">
                                    <ui:param name="_contragentEntityHome" value="#{sprBankovEntityHome}"/>
                                    
                                    <s:decorate template="/layout/edit.xhtml">
                                         <ui:define name="label"><h:outputText value="Код ЄДРПОУ"/></ui:define>
                                         <h:inputText value="#{sprBankovEntityHome.instance.codEdrpou}" />
                                    </s:decorate>
                                    
                                    <s:decorate template="/layout/edit.xhtml">
                                         <ui:define name="label"><h:outputText value="Код МФО"/></ui:define>
                                         <h:inputText value="#{sprBankovEntityHome.instance.mfo}"/>
                                    </s:decorate>
                                    
                               </ui:decorate>                    
                          </a4j:outputPanel>
                          </rich:panel>
                     </ui:define>
                </ui:composition>
                



                edit_form.xhtml


                <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                     xmlns:ui="http://java.sun.com/jsf/facelets"
                     xmlns:h="http://java.sun.com/jsf/html"
                     xmlns:f="http://java.sun.com/jsf/core"
                     xmlns:s="http://jboss.com/products/seam/taglib"
                     xmlns:rich="http://richfaces.org/rich"
                     xmlns:a4j="http://richfaces.org/a4j">
                     
                     
                     <a4j:form id="mainContragentEditorForm">
                     
                          <h:panelGrid>
                     
                               <s:decorate template="/layout/edit.xhtml">
                                    <ui:define name="label"><h:outputText value="Код"/></ui:define>
                                    <h:outputText value="#{_contragentEntityHome.instance.id}"/>
                               </s:decorate>
                               
                               ..........
                         </a4j:form>
                </ui:composition>
                



                the page definition:


                <?xml version="1.0" encoding="UTF-8"?>
                <page xmlns="http://jboss.com/products/seam/pages"
                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                      xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd">
                
                     <param name="id" value="#{sprBankovEntityHome.id}"/>
                     <param name="cameFrom" />
                     
                     <description>Редагування банківської установи #{sprBankovEntityHome.instance.description}</description>
                     
                     <begin-conversation join="true"/>
                     
                     <navigation from-action="#{sprBankovEntityHome.save()}">
                          <end-conversation/>
                          <rule if-outcome="updated" if="#{cameFrom != null}">
                               <redirect view-id="#{cameFrom}" />
                          </rule>
                          
                          <rule if-outcome="persisted" if="#{cameFrom != null}">
                               <redirect view-id="#{cameFrom}" />
                          </rule>
                     </navigation>
                     
                     <navigation from-action="#{sprBankovEntityHome.remove()}">
                          <rule if-outcome="removed">     
                               <end-conversation/>
                          </rule>
                     </navigation>
                </page>
                



                and the beans SprBankovEntityHome.java:


                @Name("sprBankovEntityHome")
                @Scope(ScopeType.CONVERSATION)
                public class SprBankovEntityHome extends AbstractLicaController<SprBankov> {
                
                     @In
                     SprYurFizEntityQuery sprYurFizEntityQuery;
                     
                     @Override
                     public SprBankov createInstance() {
                          SprBankov instance = new SprBankov();
                          instance.setSprYurFiz(sprYurFizEntityQuery.findBank());
                          return instance;
                     }
                }
                



                and the AbstractLicaController:


                public abstract class AbstractLicaController<E extends SprLic> extends EntityHome<E> {
                     
                     @In
                     FacesMessages facesMessages;
                
                     @In(create=true)
                     LicaAddressEntityHome licaAddressEntityHome;
                     
                     @In(create=true)
                     LicaBankiEntityHome licaBankiEntityHome;
                     
                     @In(create=true)
                     LicaContactsEntityHome licaContactsEntityHome;
                     
                     @In(create=true)
                     LicaDocumentsEntityHome licaDocumentsEntityHome;
                     
                     @In(create=true)
                     SprYurFizEntityQuery sprYurFizEntityQuery;
                     
                     @Logger
                     Log logger;
                
                        ....
                
                



                the stack trace:


                17:50:18,189 SEVERE [viewhandler] Error Rendering View[/crud/spr/contragents/spr_bankov/edit.xhtml]
                javax.faces.FacesException: javax.el.ELException: /crud/spr/contragents/edit_form.xhtml @16,65 value="#{_contragentEntityHome.instance.id}": Error reading 'instance' on type com.uniqa.session.crud.spr.contragents.spr_bankov.SprBankovEntityHome_$$_javassist_seam_16
                     at javax.faces.component.UIOutput.getValue(UIOutput.java:187)
                     at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201)
                     at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:284)
                     at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:154)
                     at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
                     at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:190)
                     at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)
                     at org.jboss.seam.ui.renderkit.ValidateAllRendererBase.doEncodeChildren(ValidateAllRendererBase.java:33)
                     at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
                     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                     at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:186)
                     at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)
                     at org.jboss.seam.ui.renderkit.DecorateRendererBase.doEncodeChildren(DecorateRendererBase.java:152)
                     at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
                     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                     at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)
                     at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:180)
                     at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:127)
                     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                     at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
                     at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
                     at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:279)
                     at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
                     at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:78)
                     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                     at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
                     at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
                     at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
                     at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
                     at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
                     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
                     at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                     at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                     at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
                     at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                     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.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                     at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                     at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
                     at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
                     at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
                     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                     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:235)
                     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                     at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                     at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                     at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
                     at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)
                     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                     at java.lang.Thread.run(Thread.java:636)
                Caused by: javax.el.ELException: /crud/spr/contragents/edit_form.xhtml @16,65 value="#{_contragentEntityHome.instance.id}": Error reading 'instance' on type com.uniqa.session.crud.spr.contragents.spr_bankov.SprBankovEntityHome_$$_javassist_seam_16
                     at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
                     at javax.faces.component.UIOutput.getValue(UIOutput.java:184)
                     ... 82 more
                Caused by: java.lang.IllegalStateException: EntityManager is closed
                     at org.hibernate.ejb.EntityManagerImpl.getSession(EntityManagerImpl.java:66)
                     at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:182)
                     at org.jboss.seam.persistence.EntityManagerProxy.find(EntityManagerProxy.java:87)
                     at com.uniqa.session.crud.spr.contragents.SprYurFizEntityQuery.findBank(SprYurFizEntityQuery.java:36)
                     at sun.reflect.GeneratedMethodAccessor859.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                     at java.lang.reflect.Method.invoke(Method.java:616)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                     at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                     at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                     at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                     at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97)
                     at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
                     at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                     at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                     at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
                     at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
                     at com.uniqa.session.crud.spr.contragents.SprYurFizEntityQuery_$$_javassist_seam_6.findBank(SprYurFizEntityQuery_$$_javassist_seam_6.java)
                     at com.uniqa.session.crud.spr.contragents.spr_bankov.SprBankovEntityHome.createInstance(SprBankovEntityHome.java:22)
                     at com.uniqa.session.crud.spr.contragents.spr_bankov.SprBankovEntityHome.createInstance(SprBankovEntityHome.java:12)
                     at org.jboss.seam.framework.Home.initInstance(Home.java:176)
                     at org.jboss.seam.framework.Home.getInstance(Home.java:137)
                     at sun.reflect.GeneratedMethodAccessor861.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                     at java.lang.reflect.Method.invoke(Method.java:616)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                     at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                     at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                     at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                     at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                     at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97)
                     at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
                     at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                     at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                     at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
                     at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
                     at com.uniqa.session.crud.spr.contragents.spr_bankov.SprBankovEntityHome_$$_javassist_seam_16.getInstance(SprBankovEntityHome_$$_javassist_seam_16.java)
                     at sun.reflect.GeneratedMethodAccessor860.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                     at java.lang.reflect.Method.invoke(Method.java:616)
                     at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
                     at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
                     at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
                     at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)
                     at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
                     at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                     at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                     ... 83 more
                17:50:18,322 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
                17:50:18,323 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000101:d582:4b5b1921:1af status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000101:d582:4b5b1921:1af status: ActionStatus.ABORT_ONLY >)
                17:50:18,424 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
                17:50:18,425 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000101:d582:4b5b1921:1af status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000101:d582:4b5b1921:1af status: ActionStatus.ABORT_ONLY >)
                17:50:18,490 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
                17:50:18,490 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000101:d582:4b5b1921:1af status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000101:d582:4b5b1921:1af status: ActionStatus.ABORT_ONLY >)





                • 5. Re: Seam and EntityManager problem
                  blabno Master

                  Show your SprYurFizEntityQuery code. It is there where exception comes from. I bet it is PAGE scoped.