3 Replies Latest reply on Apr 30, 2010 7:44 PM by Ali Aga

    Caused by java.lang.IllegalStateException with message: "entityManager is null"

    Chico Chen Newbie
      I can open projectList.xhtml page, but can not execute the query by click the search button.
      <h:commandButton id="search" value="Search" action="/ProjectList.xhtml"/>

      I generate the project using seam-gen,(seam 2.2)
      and change
         <persistence:managed-persistence-context name="entityManager" auto-create="true"
                            persistence-unit-jndi-name="@puJndiName@"/>
      to
         <persistence:managed-persistence-context name="entityManager" auto-create="true"
                            persistence-unit-jndi-name="java:/recruitmentEntityManagerFactory"/>
      ===
      Exception during request processing:
      Caused by javax.servlet.ServletException with message: "Could not instantiate Seam component: departmentList"
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
      org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
      org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
      org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
      org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:872)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
      java.lang.Thread.run(Thread.java:619)Caused by org.jboss.seam.InstantiationException with message: "Could not instantiate Seam component: departmentList"
      org.jboss.seam.Component.newInstance(Component.java:2156)
      org.jboss.seam.Component.getInstance(Component.java:2021)
      org.jboss.seam.Component.getInstance(Component.java:1983)
      org.jboss.seam.Component.getInstance(Component.java:1977)
      org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
      org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
      org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:148)
      org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:51)
      javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
      com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
      org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
      org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
      org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
      com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
      javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190)
      javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:178)
      javax.faces.component.UIData.getValue(UIData.java:554)
      org.ajax4jsf.component.UIDataAdaptorBase.getValue(UIDataAdaptorBase.java:1647)
      org.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)
      org.ajax4jsf.component.SequenceDataAdaptor.createDataModel(SequenceDataAdaptor.java:59)
      org.richfaces.component.UIDataTable.createDataModel(UIDataTable.java:121)
      org.ajax4jsf.component.UIDataAdaptorBase.getExtendedDataModel(UIDataAdaptorBase.java:621)
      org.ajax4jsf.component.UIDataAdaptorBase.getRowIndex(UIDataAdaptorBase.java:311)
      javax.faces.component.UIData.visitTree(UIData.java:1183)
      javax.faces.component.UIComponent.visitTree(UIComponent.java:1457)
      javax.faces.component.UIComponent.visitTree(UIComponent.java:1457)
      javax.faces.component.UIViewRoot.processRestoreState(UIViewRoot.java:869)
      org.ajax4jsf.component.AjaxViewRoot.processRestoreState(AjaxViewRoot.java:761)
      org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:456)
      com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:131)
      com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:143)
      org.jboss.seam.jsf.SeamViewHandler.restoreView(SeamViewHandler.java:93)
      com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
      org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:107)
      com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:199)
      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
      com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
      org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
      org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
      org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
      org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:872)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
      java.lang.Thread.run(Thread.java:619)Caused by java.lang.IllegalStateException with message: "entityManager is null"
      org.jboss.seam.framework.EntityQuery.validate(EntityQuery.java:41)
      sun.reflect.GeneratedMethodAccessor629.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
      org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
      org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
      org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
      org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97)
      org.jboss.seam.util.Work.workInTransaction(Work.java:61)
      org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
      org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
      org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
      org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
      org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
      com.eastidea.recruitment.action.DepartmentList_$$_javassist_seam_20.validate(DepartmentList_$$_javassist_seam_20.java)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
      org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
      org.jboss.seam.Component.callComponentMethod(Component.java:2261)
      org.jboss.seam.Component.callCreateMethod(Component.java:2184)
      org.jboss.seam.Component.newInstance(Component.java:2144)
      org.jboss.seam.Component.getInstance(Component.java:2021)
      org.jboss.seam.Component.getInstance(Component.java:1983)
      org.jboss.seam.Component.getInstance(Component.java:1977)
      org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
      org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
      org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:148)
      org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:51)
      javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
      com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
      org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
      org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
      org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
      com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
      javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190)
      javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:178)
      javax.faces.component.UIData.getValue(UIData.java:554)
      org.ajax4jsf.component.UIDataAdaptorBase.getValue(UIDataAdaptorBase.java:1647)
      org.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)
      org.ajax4jsf.component.SequenceDataAdaptor.createDataModel(SequenceDataAdaptor.java:59)
      org.richfaces.component.UIDataTable.createDataModel(UIDataTable.java:121)
      org.ajax4jsf.component.UIDataAdaptorBase.getExtendedDataModel(UIDataAdaptorBase.java:621)
      org.ajax4jsf.component.UIDataAdaptorBase.getRowIndex(UIDataAdaptorBase.java:311)
      javax.faces.component.UIData.visitTree(UIData.java:1183)
      javax.faces.component.UIComponent.visitTree(UIComponent.java:1457)
      javax.faces.component.UIComponent.visitTree(UIComponent.java:1457)
      javax.faces.component.UIViewRoot.processRestoreState(UIViewRoot.java:869)
      org.ajax4jsf.component.AjaxViewRoot.processRestoreState(AjaxViewRoot.java:761)
      org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:456)
      com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:131)
      com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:143)
      org.jboss.seam.jsf.SeamViewHandler.restoreView(SeamViewHandler.java:93)
      com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
      org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:107)
      com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:199)
      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
      com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
      org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
      org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
      org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
      org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:872)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
      java.lang.Thread.run(Thread.java:619)
        • 1. Re: Caused by java.lang.IllegalStateException with message: "entityManager is null"
          Ali Aga Newbie

          I too have this issue with seam generator. The initial entity list page works fine but the subsequent search button fails. I have no idea why the entityManager is null. Anyone care to enlighten us?


          Thanks in advance.


          Exception during request processing:
          Caused by javax.servlet.ServletException with message: Could not instantiate Seam component: jobList
          javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)
          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.j ...
          Caused by org.jboss.seam.InstantiationException with message: Could not instantiate Seam component: jobList
          org.jboss.seam.Component.newInstance(Component.java:2156)
          org.jboss.seam.Component.getInstance(Component.java:2021)
          org.jboss.seam.Component.getInstance(Component.java:1983)
          org.jboss.seam.Component.getInstance(Component.java:1977)
          org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
          org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
          ...
          Caused by java.lang.IllegalStateException with message: entityManager is null
          org.jboss.seam.framework.EntityQuery.validate(EntityQuery.java:41)
          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          java.lang.reflect.Method.invoke(Method.java:597)
          org.jboss.seam.util.Reflections.invoke(Reflections.java:22)


          • 3. Re: Caused by java.lang.IllegalStateException with message: "entityManager is null"
            Ali Aga Newbie

            My problem was solved by adding the conversation scope on the entity list. Apparently, the seam component was not retaining the conversation when the search button was clicked. I think this should have the default behavior.


            So the following did the trick for me --


            @Name("jobList")
            @Scope(ScopeType.CONVERSATION)
            public class JobList extends EntityQuery<Job> {
            ...
            }





            Does that add up? Let me know.


            Thanks for your response.