4 Replies Latest reply on Jan 5, 2007 4:27 AM by Mark Little

    could not register synchronization with JTA TransactionManag

    sashi kumar Newbie

      Iam using hibernate 3.1 with mysql5.0 as database. Jdk version is 1.5 ,jboss 4.0 . when deploy test applicatication say test1.war,test2.war in same jboss server , i encounted following error below. Can anybody suggests ?.


      [exec] Caused by: org.springframework.dao.DataAccessResourceFailureException: Could not open Hibernate Session; nested exception is org.hibernate.TransactionException: could not register synchronizati
      on with JTA TransactionManager
      [exec] at org.springframework.orm.hibernate3.SessionFactoryUtils.getSession(SessionFactoryUtils.java:243)
      [exec] at org.springframework.orm.hibernate3.HibernateTemplate.getSession(HibernateTemplate.java:412)
      [exec] at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:354)
      [exec] at org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:445)
      [exec] at org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:439)
      [exec] at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.getStore(HibernateNodeDaoServiceImpl.java:171)
      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [exec] at java.lang.reflect.Method.invoke(Method.java:585)
      [exec] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
      [exec] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
      [exec] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
      [exec] at org.alfresco.repo.transaction.NodeDaoServiceTransactionInterceptor.invoke(NodeDaoServiceTransactionInterceptor.java:61)
      [exec] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
      [exec] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
      [exec] at $Proxy142.getStore(Unknown Source)
      [exec] at org.alfresco.repo.node.db.DbNodeServiceImpl.exists(DbNodeServiceImpl.java:107)
      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [exec] at java.lang.reflect.Method.invoke(Method.java:585)
      [exec] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
      [exec] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:165)
      [exec] at $Proxy143.exists(Unknown Source)
      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [exec] at java.lang.reflect.Method.invoke(Method.java:585)
      [exec] at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:212)
      [exec] at $Proxy144.exists(Unknown Source)
      [exec] at org.alfresco.repo.importer.ImporterBootstrap.performBootstrap(ImporterBootstrap.java:578)
      [exec] at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:323)
      [exec] ... 125 more
      [exec] Caused by: org.hibernate.TransactionException: could not register synchronization with JTA TransactionManager
      [exec] at org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:160)
      [exec] at org.hibernate.jdbc.JDBCContext.(JDBCContext.java:79)
      [exec] at org.hibernate.impl.SessionImpl.(SessionImpl.java:266)
      [exec] at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:436)
      [exec] at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:460)
      [exec] at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:468)
      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [exec] at java.lang.reflect.Method.invoke(Method.java:585)
      [exec] at org.springframework.orm.hibernate3.LocalSessionFactoryBean$TransactionAwareInvocationHandler.invoke(LocalSessionFactoryBean.java:1021)
      [exec] at $Proxy141.openSession(Unknown Source)
      [exec] at org.springframework.orm.hibernate3.SessionFactoryUtils.doGetSession(SessionFactoryUtils.java:330)
      [exec] at org.springframework.orm.hibernate3.SessionFactoryUtils.getSession(SessionFactoryUtils.java:240)
      [exec] ... 157 more
      [exec] Caused by: javax.transaction.RollbackException: Already marked for rollback TransactionImpl:XidImpl[FormatId=257, GlobalId=sasikumar/40, BranchQual=, localId=40]
      [exec] at org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.java:602)
      [exec] at org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:149)