0 Replies Latest reply on Jul 25, 2002 5:10 AM by Naresh Bhanotra

    EntitySynchronizationInterceptor  Store failed

    Naresh Bhanotra Newbie

      Hi ,
      i am new to this forum , i have a problem

      i am having 2 entity beans container managed and one statelessSession bean Bean managed .

      when i try to call a method of session bean named getDetail(){
      userTransaction.begin()

      --lookup 1st entity bean and called getDetail() of 1st entity bean

      --lookup 2st entity bean and called getDetail() of 2st entity bean

      userTransaction.commit()

      }

      i get error synchronisation ......can some one lend me a helping hand in fixing error ...
      i will be thankful
      -Naresh

      [13:27:54,178,Default] ejbStore Of EmployeeBean
      [13:27:54,428,Default] ejbStore Of EmployeeDetailBean
      [13:27:54,508,EntitySynchronizationInterceptor] Store failed
      javax.ejb.EJBException
      at org.jboss.ejb.plugins.BMPPersistenceManager.storeEntity(BMPPersistenceManager.java:382)
      at org.jboss.ejb.EntityContainer.storeEntity(EntityContainer.java:253)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor$InstanceSynchronization.beforeCompletion(EntitySynchronizationInterceptor.java:401)
      at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1211)
      at org.jboss.tm.TxCapsule.commit(TxCapsule.java:305)
      at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
      at org.jboss.tm.TxManager.commit(TxManager.java:122)
      at org.jboss.ejb.EnterpriseContext$UserTransactionImpl.commit(EnterpriseContext.java:453)
      at com.ewt.demo.bussinessLayer.employeeService.EmployeeServiceBean.getEmployeeDetail(EmployeeServiceBean.java:200)
      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:324)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:542)
      at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:299)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:82)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:504)
      at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
      at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
      at $Proxy9.getEmployeeDetail(Unknown Source)
      at org.apache.jsp.EmpMaster$jsp._jspService(EmpMaster$jsp.java:113)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
      at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
      at java.lang.Thread.run(Thread.java:536)
      [13:27:54,548,Default] TRANSACTION COULD NOT BE COMPLETED: Unable to commit, tx=XidImpl [FormatId=257, GlobalId=Naresh//9, BranchQual=] status=STATUS_ROLLEDBACK
      [13:27:54,548,Default] ejbRemove called
      [13:27:54,999,EmbeddedCatalinaServiceSX] jsp: init
      [13:27:54,999,Default] java.rmi.ServerException: Transaction rolled back; nested exception is:
      java.lang.IllegalStateException: No transaction.
      [13:27:55,009,Default] at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:316)
      [13:27:55,019,Default] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:82)
      [13:27:55,019,Default] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      [13:27:55,019,Default] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      [13:27:55,019,Default] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      [13:27:55,019,Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:504)
      [13:27:55,019,Default] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
      [13:27:55,019,Default] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
      [13:27:55,019,Default] at $Proxy9.getEmployeeDetail(Unknown Source)
      [13:27:55,019,Default] at org.apache.jsp.EmpMaster$jsp._jspService(EmpMaster$jsp.java:113)
      [13:27:55,029,Default] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      [13:27:55,029,Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [13:27:55,029,Default] at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
      [13:27:55,029,Default] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
      [13:27:55,029,Default] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
      [13:27:55,029,Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [13:27:55,029,Default] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      [13:27:55,029,Default] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      [13:27:55,079,Default] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      [13:27:55,089,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      [13:27:55,089,Default] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      [13:27:55,089,Default] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      [13:27:55,089,Default] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
      [13:27:55,089,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      [13:27:55,089,Default] at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      [13:27:55,089,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      [13:27:55,089,Default] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      [13:27:55,089,Default] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      [13:27:55,089,Default] at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
      [13:27:55,089,Default] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
      [13:27:55,099,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      [13:27:55,139,Default] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      [13:27:55,149,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      [13:27:55,149,Default] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      [13:27:55,159,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      [13:27:55,159,Default] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      [13:27:55,169,Default] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      [13:27:55,169,Default] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
      [13:27:55,179,Default] at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      [13:27:55,179,Default] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      [13:27:55,179,Default] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      [13:27:55,189,Default] at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
      [13:27:55,189,Default] at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
      [13:27:55,199,Default] at java.lang.Thread.run(Thread.java:536)
      [13:27:55,199,Default] Caused by: java.lang.IllegalStateException: No transaction.
      [13:27:55,209,Default] at org.jboss.tm.TransactionImpl.rollback(TransactionImpl.java:90)
      [13:27:55,209,Default] at org.jboss.tm.TxManager.rollback(TxManager.java:219)
      [13:27:55,209,Default] at org.jboss.ejb.EnterpriseContext$UserTransactionImpl.rollback(EnterpriseContext.java:459)
      [13:27:55,219,Default] at com.ewt.demo.bussinessLayer.employeeService.EmployeeServiceBean.getEmployeeDetail(EmployeeServiceBean.java:206)
      [13:27:55,219,Default] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [13:27:55,239,Default] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [13:27:55,239,Default] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [13:27:55,249,Default] at java.lang.reflect.Method.invoke(Method.java:324)
      [13:27:55,249,Default] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:542)
      [13:27:55,259,Default] at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:299)
      [13:27:55,259,Default] ... 43 more