1 Reply Latest reply on Mar 5, 2002 6:21 AM by raj_skromis

    exceptions when multiple threads invoke create on the bean

    nishantv

      Hi all,
      I have run into the following problem:
      My client program starts multiple thread each creating
      'n' number of components. Each thread invokes create method on the bean. However I get exceptions. I guess i need to make some configurational changes in my jboss.jcml where I am creating connection pool.
      However I do not know what?
      Any pointers?
      BTW, when I run with single thread, it works just fine. When no. of threads is 2 or more exceptions are thrown.
      I am including the stack trace below:

      [StateComponentBean] XAException: tx=XidImpl [FormatId=257, GlobalId=cassini//5,
      BranchQual=] errorCode=XAER_NOTA
      [StateComponentBean] javax.transaction.xa.XAException
      [StateComponentBean] at org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl.
      start(XAResourceImpl.java:258)
      [StateComponentBean] at org.jboss.tm.TxCapsule.startResource(TxCapsule.java:1
      087)
      [StateComponentBean] at org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:
      614)
      [StateComponentBean] at org.jboss.tm.TransactionImpl.enlistResource(Transacti
      onImpl.java:111)
      [StateComponentBean] at org.jboss.pool.jdbc.xa.XAConnectionFactory.prepareObj
      ect(XAConnectionFactory.java:290)
      [StateComponentBean] at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:5
      66)
      [StateComponentBean] at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:5
      38)
      [StateComponentBean] at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection
      (XAPoolDataSource.java:178)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getConnec
      tion(JDBCCommand.java:680)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecu
      te(JDBCCommand.java:152)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityComman
      d.execute(JDBCStoreEntityCommand.java:97)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.sto
      reEntity(JAWSPersistenceManager.java:168)
      [StateComponentBean] at org.jboss.ejb.plugins.CMPPersistenceManager.storeEnti
      ty(CMPPersistenceManager.java:397)
      [StateComponentBean] at org.jboss.ejb.EntityContainer.storeEntity(EntityConta
      iner.java:252)
      [StateComponentBean] at org.jboss.ejb.plugins.EntitySynchronizationIntercepto
      r$InstanceSynchronization.beforeCompletion(EntitySynchronizationInterceptor.java
      :400)
      [StateComponentBean] at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.j
      ava:1210)
      [StateComponentBean] at org.jboss.tm.TxCapsule.commit(TxCapsule.java:304)
      [StateComponentBean] at org.jboss.tm.TransactionImpl.commit(TransactionImpl.j
      ava:76)
      [StateComponentBean] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
      tions(TxInterceptorCMT.java:364)
      [StateComponentBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxI
      nterceptorCMT.java:86)
      [StateComponentBean] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(
      SecurityInterceptor.java:103)
      [StateComponentBean] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogIn
      terceptor.java:106)
      [StateComponentBean] at org.jboss.ejb.EntityContainer.invokeHome(EntityContai
      ner.java:420)
      [StateComponentBean] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
      r.invokeHome(JRMPContainerInvoker.java:370)
      [StateComponentBean] at java.lang.reflect.Method.invoke(Native Method)
      [StateComponentBean] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Sour
      ce)
      [StateComponentBean] at sun.rmi.transport.Transport$1.run(Unknown Source)
      [StateComponentBean] at java.security.AccessController.doPrivileged(Native Me
      thod)
      [StateComponentBean] at sun.rmi.transport.Transport.serviceCall(Unknown Sourc
      e)
      [StateComponentBean] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unk
      nown Source)
      [StateComponentBean] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.
      run(Unknown Source)
      [StateComponentBean] at java.lang.Thread.run(Unknown Source)
      [StateComponentBean] XAException: tx=XidImpl [FormatId=257, GlobalId=cassini//4,
      BranchQual=] errorCode=XAER_NOTA
      [StateComponentBean] javax.transaction.xa.XAException
      [StateComponentBean] at org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl.
      start(XAResourceImpl.java:258)
      [StateComponentBean] at org.jboss.tm.TxCapsule.startResource(TxCapsule.java:1
      087)
      [StateComponentBean] at org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:
      614)
      [StateComponentBean] at org.jboss.tm.TransactionImpl.enlistResource(Transacti
      onImpl.java:111)
      [StateComponentBean] at org.jboss.pool.jdbc.xa.XAConnectionFactory.prepareObj
      ect(XAConnectionFactory.java:290)
      [StateComponentBean] at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:5
      66)
      [StateComponentBean] at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:5
      38)
      [StateComponentBean] at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection
      (XAPoolDataSource.java:178)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getConnec
      tion(JDBCCommand.java:680)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecu
      te(JDBCCommand.java:152)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityComman
      d.execute(JDBCStoreEntityCommand.java:97)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.sto
      reEntity(JAWSPersistenceManager.java:168)
      [StateComponentBean] at org.jboss.ejb.plugins.CMPPersistenceManager.storeEnti
      ty(CMPPersistenceManager.java:397)
      [StateComponentBean] at org.jboss.ejb.EntityContainer.storeEntity(EntityConta
      iner.java:252)
      [StateComponentBean] at org.jboss.ejb.plugins.EntitySynchronizationIntercepto
      r$InstanceSynchronization.beforeCompletion(EntitySynchronizationInterceptor.java
      :400)
      [StateComponentBean] at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.j
      ava:1210)
      [StateComponentBean] at org.jboss.tm.TxCapsule.commit(TxCapsule.java:304)
      [StateComponentBean] at org.jboss.tm.TransactionImpl.commit(TransactionImpl.j
      ava:76)
      [StateComponentBean] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
      tions(TxInterceptorCMT.java:364)
      [StateComponentBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxI
      nterceptorCMT.java:86)
      [StateComponentBean] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(
      SecurityInterceptor.java:103)
      [StateComponentBean] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogIn
      terceptor.java:106)
      [StateComponentBean] at org.jboss.ejb.EntityContainer.invokeHome(EntityContai
      ner.java:420)
      [StateComponentBean] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
      r.invokeHome(JRMPContainerInvoker.java:370)
      [StateComponentBean] at java.lang.reflect.Method.invoke(Native Method)
      [StateComponentBean] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Sour
      ce)
      [StateComponentBean] at sun.rmi.transport.Transport$1.run(Unknown Source)
      [StateComponentBean] at java.security.AccessController.doPrivileged(Native Me
      thod)
      [StateComponentBean] at sun.rmi.transport.Transport.serviceCall(Unknown Sourc
      e)
      [StateComponentBean] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unk
      nown Source)
      [StateComponentBean] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.
      run(Unknown Source)
      [StateComponentBean] at java.lang.Thread.run(Unknown Source)
      [StateComponentBean] XAException: tx=XidImpl [FormatId=257, GlobalId=cassini//4,
      BranchQual=] errorCode=XAER_PROTO
      [StateComponentBean] javax.transaction.xa.XAException
      [StateComponentBean] at org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl.
      end(XAResourceImpl.java:124)
      [StateComponentBean] at org.jboss.tm.TxCapsule.endResource(TxCapsule.java:112
      9)
      [StateComponentBean] at org.jboss.tm.TxCapsule.delistResource(TxCapsule.java:
      523)
      [StateComponentBean] at org.jboss.tm.TransactionImpl.delistResource(Transacti
      onImpl.java:99)
      [StateComponentBean] at org.jboss.pool.jdbc.xa.XAConnectionFactory$2.closeCon
      nection(XAConnectionFactory.java:104)
      [StateComponentBean] at org.jboss.pool.jdbc.xa.XAConnectionFactory$2.connecti
      onClosed(XAConnectionFactory.java:89)
      [StateComponentBean] at org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImp
      l.clientConnectionClosed(XAConnectionImpl.java:126)
      [StateComponentBean] at org.opentools.minerva.jdbc.xa.wrapper.XAClientConnect
      ion.close(XAClientConnection.java:250)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecu
      te(JDBCCommand.java:180)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityComman
      d.execute(JDBCStoreEntityCommand.java:97)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.sto
      reEntity(JAWSPersistenceManager.java:168)
      [StateComponentBean] at org.jboss.ejb.plugins.CMPPersistenceManager.storeEnti
      ty(CMPPersistenceManager.java:397)
      [StateComponentBean] at org.jboss.ejb.EntityContainer.storeEntity(EntityConta
      iner.java:252)
      [StateComponentBean] at org.jboss.ejb.plugins.EntitySynchronizationIntercepto
      r$InstanceSynchronization.beforeCompletion(EntitySynchronizationInterceptor.java
      :400)
      [StateComponentBean] at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.j
      ava:1210)
      [StateComponentBean] at org.jboss.tm.TxCapsule.commit(TxCapsule.java:304)
      [StateComponentBean] at org.jboss.tm.TransactionImpl.commit(TransactionImpl.j
      ava:76)
      [StateComponentBean] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
      tions(TxInterceptorCMT.java:364)
      [StateComponentBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxI
      nterceptorCMT.java:86)
      [StateComponentBean] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(
      SecurityInterceptor.java:103)
      [StateComponentBean] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogIn
      terceptor.java:106)
      [StateComponentBean] at org.jboss.ejb.EntityContainer.invokeHome(EntityContai
      ner.java:420)
      [StateComponentBean] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
      r.invokeHome(JRMPContainerInvoker.java:370)
      [StateComponentBean] at java.lang.reflect.Method.invoke(Native Method)
      [StateComponentBean] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Sour
      ce)
      [StateComponentBean] at sun.rmi.transport.Transport$1.run(Unknown Source)
      [StateComponentBean] at java.security.AccessController.doPrivileged(Native Me
      thod)
      [StateComponentBean] at sun.rmi.transport.Transport.serviceCall(Unknown Sourc
      e)
      [StateComponentBean] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unk
      nown Source)
      [StateComponentBean] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.
      run(Unknown Source)
      [StateComponentBean] at java.lang.Thread.run(Unknown Source)
      [StateComponentBean] XAException: tx=XidImpl [FormatId=257, GlobalId=cassini//5,
      BranchQual=] errorCode=XAER_PROTO
      [StateComponentBean] javax.transaction.xa.XAException
      [StateComponentBean] at org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl.
      end(XAResourceImpl.java:124)
      [StateComponentBean] at org.jboss.tm.TxCapsule.endResource(TxCapsule.java:112
      9)
      [StateComponentBean] at org.jboss.tm.TxCapsule.delistResource(TxCapsule.java:
      523)
      [StateComponentBean] at org.jboss.tm.TransactionImpl.delistResource(Transacti
      onImpl.java:99)
      [StateComponentBean] at org.jboss.pool.jdbc.xa.XAConnectionFactory$2.closeCon
      nection(XAConnectionFactory.java:104)
      [StateComponentBean] at org.jboss.pool.jdbc.xa.XAConnectionFactory$2.connecti
      onClosed(XAConnectionFactory.java:89)
      [StateComponentBean] at org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImp
      l.clientConnectionClosed(XAConnectionImpl.java:126)
      [StateComponentBean] at org.opentools.minerva.jdbc.xa.wrapper.XAClientConnect
      ion.close(XAClientConnection.java:250)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecu
      te(JDBCCommand.java:180)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityComman
      d.execute(JDBCStoreEntityCommand.java:97)
      [StateComponentBean] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.sto
      reEntity(JAWSPersistenceManager.java:168)
      [StateComponentBean] at org.jboss.ejb.plugins.CMPPersistenceManager.storeEnti
      ty(CMPPersistenceManager.java:397)
      [StateComponentBean] at org.jboss.ejb.EntityContainer.storeEntity(EntityConta
      iner.java:252)
      [StateComponentBean] at org.jboss.ejb.plugins.EntitySynchronizationIntercepto
      r$InstanceSynchronization.beforeCompletion(EntitySynchronizationInterceptor.java
      :400)
      [StateComponentBean] at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.j
      ava:1210)
      [StateComponentBean] at org.jboss.tm.TxCapsule.commit(TxCapsule.java:304)
      [StateComponentBean] at org.jboss.tm.TransactionImpl.commit(TransactionImpl.j
      ava:76)
      [StateComponentBean] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
      tions(TxInterceptorCMT.java:364)
      [StateComponentBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxI
      nterceptorCMT.java:86)
      [StateComponentBean] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(
      SecurityInterceptor.java:103)
      [StateComponentBean] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogIn
      terceptor.java:106)
      [StateComponentBean] at org.jboss.ejb.EntityContainer.invokeHome(EntityContai
      ner.java:420)
      [StateComponentBean] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
      r.invokeHome(JRMPContainerInvoker.java:370)
      [StateComponentBean] at java.lang.reflect.Method.invoke(Native Method)
      [StateComponentBean] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Sour
      ce)
      [StateComponentBean] at sun.rmi.transport.Transport$1.run(Unknown Source)
      [StateComponentBean] at java.security.AccessController.doPrivileged(Native Me
      thod)
      [StateComponentBean] at sun.rmi.transport.Transport.serviceCall(Unknown Sourc
      e)
      [StateComponentBean] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unk
      nown Source)
      [StateComponentBean] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.
      run(Unknown Source)
      [StateComponentBean] at java.lang.Thread.run(Unknown Source)
      [StateComponentBean] XAException: tx=XidImpl [FormatId=257, GlobalId=cassini//5,
      BranchQual=] errorCode=XAER_NOTA
      [StateComponentBean] javax.transaction.xa.XAException
      [StateComponentBean] at org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl.
      rollback(XAResourceImpl.java:210)
      [StateComponentBean] at org.jboss.tm.TxCapsule.rollbackResources(TxCapsule.ja
      va:1539)
      [StateComponentBean] at org.jboss.tm.TxCapsule.commit(TxCapsule.java:346)
      [StateComponentBean] at org.jboss.tm.TransactionImpl.commit(TransactionImpl.j
      ava:76)
      [StateComponentBean] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
      tions(TxInterceptorCMT.java:364)
      [StateComponentBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxI
      nterceptorCMT.java:86)
      [StateComponentBean] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(
      SecurityInterceptor.java:103)
      [StateComponentBean] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogIn
      terceptor.java:106)
      [StateComponentBean] at org.jboss.ejb.EntityContainer.invokeHome(EntityContai
      ner.java:420)
      [StateComponentBean] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
      r.invokeHome(JRMPContainerInvoker.java:370)
      [StateComponentBean] at java.lang.reflect.Method.invoke(Native Method)
      [StateComponentBean] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Sour
      ce)
      [StateComponentBean] at sun.rmi.transport.Transport$1.run(Unknown Source)
      [StateComponentBean] at java.security.AccessController.doPrivileged(Native Me
      thod)
      [StateComponentBean] at sun.rmi.transport.Transport.serviceCall(Unknown Sourc
      e)
      [StateComponentBean] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unk
      nown Source)
      [StateComponentBean] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.
      run(Unknown Source)
      [StateComponentBean] at java.lang.Thread.run(Unknown Source)
      [EntitySynchronizationInterceptor] Store failed
      java.rmi.ServerException: Store failed; nested exception is:
      java.sql.SQLException: [ARES]Your transaction (process ID #7) was deadlo
      cked with another process and has been chosen as the deadlock victim. Rerun your
      transaction.
      java.sql.SQLException: [ARES]Your transaction (process ID #7) was deadlocked wit
      h another process and has been chosen as the deadlock victim. Rerun your transac
      tion.
      at com.inet.tds.a.a(Unknown Source)
      at com.inet.tds.b.for(Unknown Source)
      at com.inet.tds.b.executeUpdate(Unknown Source)
      at org.opentools.minerva.jdbc.PreparedStatementInPool.executeUpdate(Prep
      aredStatementInPool.java:82)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand.executeStatementAnd
      HandleResult(JDBCUpdateCommand.java:49)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.j
      ava:160)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.execute(JDBCSt
      oreEntityCommand.java:97)
      at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.storeEntity(JAWSPer
      sistenceManager.java:168)
      at org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenc
      eManager.java:397)
      at org.jboss.ejb.EntityContainer.storeEntity(EntityContainer.java:252)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor$InstanceSynchr
      onization.beforeCompletion(EntitySynchronizationInterceptor.java:400)
      at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1210)
      at org.jboss.tm.TxCapsule.commit(TxCapsule.java:304)
      at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:364)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.ja
      va:86)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercep
      tor.java:103)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1
      06)
      at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:420)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRM
      PContainerInvoker.java:370)
      at java.lang.reflect.Method.invoke(Native Method)
      at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
      at sun.rmi.transport.Transport$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Unknown Source)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour
      ce)
      at java.lang.Thread.run(Unknown Source)

        • 1. Re: exceptions when multiple threads invoke create on the be
          raj_skromis

          Hello,
          My problem is almost the same.I have two virual directory created in IIS server.Now the browser gets a link to the JBoss server.If one virtual directory is accessing the server there is no problem.
          But if two are accessing simultaneously then often I am getting the following Exception:

          ingmateDS] Pool LearningmateDS [0/2/Unlimited] returned object org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@39e5b5 to the pool.
          lt] In loadcourse
          lt] ejbFindByUserName.FindByUserID 555 called for schoolabhi0301 and course L001_CO_73533 and schoolChain abhi0301and batchID= Course_T1
          ntCoursePosition] XAException: tx=XidImpl [FormatId=257, GlobalId=dte//38, BranchQual=] errorCode=XAER_PROTO
          ntCoursePosition] javax.transaction.xa.XAException
          ntCoursePosition] at org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl.start(XAResourceImpl.java:255)
          ntCoursePosition] at org.jboss.tm.TxCapsule.startResource(TxCapsule.java:1087)
          ntCoursePosition] at org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:614)
          ntCoursePosition] at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:111)
          ingmateDS] java.lang.IllegalArgumentException: null xaRes
          ntCoursePosition] at org.jboss.pool.jdbc.xa.XAConnectionFactory.prepareObject(XAConnectionFactory.java:290)
          ntCoursePosition] at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:566)
          lt] PageInfoEJB.Inside EJB Load()
          ntCoursePosition] at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:538)
          ntCoursePosition] at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:178)
          ntCoursePosition] at lmate.Util.ConnectionMgr.getConnection(ConnectionMgr.java:33)
          ntCoursePosition] at lmate.EJB.Entity.CurrentCoursePositionEJB.ejbFindByUserName(CurrentCoursePositionEJB.java:139)
          ntCoursePosition] at java.lang.reflect.Method.invoke(Native Method)
          ntCoursePosition] at org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod(BMPPersistenceManager.java:474)
          ntCoursePosition] at org.jboss.ejb.plugins.BMPPersistenceManager.findEntity(BMPPersistenceManager.java:227)
          lt] PageInfoEJB.Data Loaded
          ntCoursePosition] at org.jboss.ejb.EntityContainer.find(EntityContainer.java:594)
          lt] PageInfoEJB.Values set
          ntCoursePosition] at java.lang.reflect.Method.invoke(Native Method)
          lt] PageInfoEJB.Inside EJB Load()
          ntCoursePosition] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:843)
          lt] PageInfoEJB.Data Loaded
          ntCoursePosition] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:231)
          lt] PageInfoEJB.Values set
          ntCoursePosition] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:154)
          lt] PageInfoEJB.Inside EJB Load()
          ntCoursePosition] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:108)
          lt] PageInfoEJB.Data Loaded
          ntCoursePosition] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
          lt] PageInfoEJB.Values set
          ntCoursePosition] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:307)
          lt] PageInfoEJB.Inside EJB Load()
          ntCoursePosition] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
          lt] PageInfoEJB.Data Loaded
          ntCoursePosition] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:103)
          lt] PageInfoEJB.Values set
          ntCoursePosition] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
          lt] EJBStore of pageinfo : L001_PA_60650
          ntCoursePosition] at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:420)
          ntCoursePosition] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:441)
          ntCoursePosition] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:237)
          ntCoursePosition] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
          ntCoursePosition] at $Proxy58.findByUserName(Unknown Source)
          ntCoursePosition] at lmate.EJB.Session.SessionControllerEJB.loadCourse(SessionControllerEJB.java:121)
          ntCoursePosition] at java.lang.reflect.Method.invoke(Native Method)
          ntCoursePosition] at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:650)
          ntCoursePosition] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
          ntCoursePosition] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:243)
          ntCoursePosition] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
          ntCoursePosition] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:307)
          ntCoursePosition] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
          ntCoursePosition] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
          ntCoursePosition] at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:341)
          ntCoursePosition] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:489)
          lt] EJBStore of pageinfo : L001_PA_60651
          ntCoursePosition] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
          ntCoursePosition] at org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSessionProxy.java:136)
          ntCoursePosition] at $Proxy51.loadCourse(Unknown Source)
          lt] EJBStore of pageinfo : L001_PA_60652
          ntCoursePosition] at lmate.EJB.Session.NavigatorEJB.startCourse(NavigatorEJB.java:185)
          ntCoursePosition] at lmate.EJB.Session.NavigatorEJB.getLastLoginPosition(NavigatorEJB.java:3452)
          ntCoursePosition] at java.lang.reflect.Method.invoke(Native Method)
          ntCoursePosition] at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:650)
          ntCoursePosition] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
          lt] EJBStore of pageinfo : L001_PA_60653
          ntCoursePosition] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:243)
          ntCoursePosition] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
          ntCoursePosition] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:307)
          ntCoursePosition] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
          ntCoursePosition] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
          ntCoursePosition] at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:341)
          ntCoursePosition] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:395)
          ingmateDS] Pool LearningmateDS [0/2/Unlimited] returned object org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@39e5b5 to the pool.
          ntCoursePosition] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:476)
          lt] stopSessionTimer...........sessionTimeThread..Thread[0zr2tvxrb1,5,main]
          ntCoursePosition] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
          ntCoursePosition] at org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSessionProxy.java:136)
          ntCoursePosition] at $Proxy53.getLastLoginPosition(Unknown Source)
          ntCoursePosition] at lmate.Util.NavigatorHandler.getLastLoginPosition(NavigatorHandler.java:90)
          ntCoursePosition] at _0002fContent_0002ejspContent_jsp_1._jspService(_0002fContent_0002ejspContent_jsp_1.java:489)
          ntCoursePosition] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
          ntCoursePosition] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          ntCoursePosition] at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
          ntCoursePosition] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          ntCoursePosition] at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
          ntCoursePosition] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
          ntCoursePosition] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
          ntCoursePosition] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          ntCoursePosition] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
          ntCoursePosition] at org.apache.tomcat.core.Handler.service(Handler.java:287)
          ntCoursePosition] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
          ntCoursePosition] at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
          ntCoursePosition] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
          ntCoursePosition] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
          ntCoursePosition] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
          ntCoursePosition] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
          ntCoursePosition] at java.lang.Thread.run(Unknown Source)
          ingmateDS] Resource 'org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl@34d39c' enlisted for 'org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@39e5b5'.
          ingmateDS] Pool LearningmateDS [0/2/Unlimited] gave out pooled object: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@39e5b5
          lt] ejbFindByUser.in finder After Executing the Query
          lt] ejbFindByUser.in finder73695
          lt] in try loadcourse
          lt] Inside EJB Load()
          lt] ejbLoad().Before print pk
          lt] 73695
          lt] ejbLoad().Before query
          lt] ejbLoad().After query
          lt] ejbLoad().Data Loaded CurrentCoursePosition
          lt] Data Loaded1
          lt] ejbLoad().Values set CurrentCoursePositionID=73695
          lt] COURSE_END
          lt] In loadcourse
          lt] MaxPosition.ejbFindByUserName.FindByUserID 555 called for schoolabhi0301 and course L001_CO_73533 and schoolChain abhi0301and batchID= Course_T1
          lt] MaxPosition.ejbFindByUser.in finder After Executing the Query
          lt] ejbFindByUser.in finder73696
          lt] in try loadMaximumPosition
          lt] MaxPosition.Inside EJB Load()
          lt] MaxPosition.ejbLoad().Before print pk
          lt] 73696
          lt] MaxPosition.ejbLoad().Before query
          lt] MaxPosition.ejbLoad().After query
          lt] MaxPosition.ejbLoad().Data Loaded CurrentCoursePosition
          lt] Data Loaded1
          lt] MaxPosition.ejbLoad().Values set MaxPositionID=73696
          lt] loadMaximumPosition=COURSE_AFTER
          lt] after calling loadCourse
          lt] Getting currentposition
          lt] COURSE_END
          lt] Getting courseId
          lt] Getting currentposition
          lt] Inside NAvigator.getLastLoginPosition.course_end
          lt] Getting currentposition
          lt] getCourseEnd Entered..................................................CP..COURSE_END
          lt] Getting courseId
          lt] Getting currentposition
          lt] getCourseEnd Entered..................................................CP..2.......COURSE_END
          lt] Getting currentposition
          lt] getCourseEnd Entered..................................................CP..3....COURSE_END
          lt] Getting currentposition
          lt] getCourseEnd Entered..................................................CP..7....COURSE_END
          lt] NAV.isTestAlreadyComplete : Inside TestID =L001_TE_73529
          lt] TestInfoLogForCourseTest............................................
          lt] Getting courseId
          lt] TestInfoLog.ejbFindTestInfoLogForCourseTest.TEst ID= L001_TE_73529schoolID= abhi0301SchoolChainID= abhi0301 AdmissionNumber= 555 BatchID = Course_T1 BatchType = C COurseID=L001_CO
          lt] TestInfoLog.ejbFindTestInfoLogForCourseTest.Data Loaded rs= org.jboss.pool.jdbc.ResultSetInPool@5ac5f
          lt] TestInfoLog.Inside EJB Load()
          lt] TestInfoLog.EJBLOAD.Data Loaded
          lt] Values set
          lt] TestInfoLogForCourseTest...........................................returning with true.........
          lt] IsTestAlreadyComplete.returning with Value= true
          lt] Inside CourseEnd Course PostTest is NOT ........ nullTest

          Please let me know if you get any solution.