Código:
me salta este error entityManager esta injectado no me da null, como anteriormente.Cliente cli= (Cliente)entityManager.createNamedQuery("findCliente").setParameter("nCli", noCli).getSingleResult();
El error que me da es este:
Código:
Haber si me podeis echar una manita pleases 40984 [http-8080-3] DEBUG com.jeveris.pl.navigation.executor.NavigationController - Using spring-defined bean: service2F12 for action service: com.bankeveris.flujo1DemoBankeveris.Service2F12 40984 [http-8080-3] INFO com.jeveris.pl.navigation.model.ActionService - Before executing ActionService: com.bankeveris.flujo1DemoBankeveris.Service2F12|flowInstanceId: 35733233768402690|flowId: Flujo1DemoBankeveris|lastNodeId: BuscarCliente|requiredTransitionId: mandarDatos|nextNodeId: BuscarDatos|containerId: container_1 67953 [http-8080-3] DEBUG org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler - Creating new EntityManager for shared EntityManager invocation 68203 [http-8080-3] DEBUG org.springframework.orm.jpa.EntityManagerFactoryUtils - Closing JPA EntityManager javax.persistence.PersistenceException: org.hibernate.SessionException: Session is closed! at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:637) at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:107) at com.bankeveris.dao.ClienteDaoImpl.findCliente(ClienteDaoImpl.java:47) at com.bankeveris.service.ServiceClienteImpl.cliente(ServiceClienteImpl.java:29) at com.bankeveris.flujo1DemoBankeveris.Service2F12.execute(Service2F12.java:29) at com.jeveris.pl.navigation.model.ActionService.service(ActionService.java:41) at com.jeveris.pl.navigation.executor.NavigationController.processNavigation(NavigationController.java:149) at com.jeveris.pl.navigation.jsfintegration.PLNavigationHandler.handleNavigation(PLNavigationHandler.java:108) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130) at javax.faces.component.UICommand.broadcast(UICommand.java:387) at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321) at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296) at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253) at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) 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:100) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177) at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267) at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 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:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) Caused by: org.hibernate.SessionException: Session is closed! at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1110) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79) at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:81) ... 40 more 68219 [http-8080-3] ERROR com.jeveris.pl.navigation.executor.NavigationController - Handle error for exception id=1308064536048: javax.persistence.PersistenceException: org.hibernate.SessionException: Session is closed! 68219 [http-8080-3] ERROR com.jeveris.pl.navigation.executor.NavigationController - Flow information for exception id=1308064536048: flowInstanceId: 35733233768402690|flowId: Flujo1DemoBankeveris|lastNodeId: BuscarCliente|requiredTransitionId: mandarDatos|nextNodeId: BuscarDatos|containerId: container_1 68219 [http-8080-3] ERROR com.jeveris.pl.navigation.executor.NavigationController - Go to error flow 68219 [http-8080-3] INFO com.jeveris.pl.navigation.executor.NavigationHelper - Access to node errorService in flow error for resource com.jeveris.pl.core.services.ErrorService is granted 68219 [http-8080-3] INFO com.jeveris.pl.navigation.executor.NavigationHelper - Flow started|flowInstanceId: 1630240432162023492|flowId: error|lastNodeId: null|requiredTransitionId: init|nextNodeId: errorService|containerId: container_1 68219 [http-8080-3] DEBUG com.jeveris.pl.navigation.executor.NavigationController - Searching for spring-defined bean errorService 68219 [http-8080-3] WARN com.jeveris.pl.businesslogic.control.BusinessLogicCaller - Service (spring bean) with id errorService was not found. Returning null reference 68219 [http-8080-3] WARN com.jeveris.pl.navigation.executor.NavigationController - Spring-defined bean not found for action service: com.jeveris.pl.core.services.ErrorService. Instantiating brand-new action service... 68219 [http-8080-3] INFO com.jeveris.pl.navigation.model.ActionService - Before executing ActionService: com.jeveris.pl.core.services.ErrorService|flowInstanceId: 1630240432162023492|flowId: error|lastNodeId: null|requiredTransitionId: init|nextNodeId: errorService|containerId: container_1 68219 [http-8080-3] INFO MONITOR - PLResource: com.jeveris.pl.core.services.ErrorService; Time: 0; Active Flow Info: flowInstanceId: 1630240432162023492|flowId: error|lastNodeId: null|requiredTransitionId: init|nextNodeId: errorService|containerId: container_1